Set dim-label for secondary labels of EpisodeWidget in Glade.
This commit is contained in:
@@ -65,22 +65,6 @@ impl EpisodeWidget {
|
||||
let size: gtk::Label = builder.get_object("size_label").unwrap();
|
||||
let progress_label: gtk::Label = builder.get_object("progress_label").unwrap();
|
||||
|
||||
let sep1: gtk::Label = builder.get_object("separator1").unwrap();
|
||||
let sep2: gtk::Label = builder.get_object("separator2").unwrap();
|
||||
|
||||
// Dim(grey out) the labels.
|
||||
// If it's possible through glade, feel free to open a PR.
|
||||
duration
|
||||
.get_style_context()
|
||||
.map(|c| c.add_class("dim-label"));
|
||||
progress_label
|
||||
.get_style_context()
|
||||
.map(|c| c.add_class("dim-label"));
|
||||
date.get_style_context().map(|c| c.add_class("dim-label"));
|
||||
size.get_style_context().map(|c| c.add_class("dim-label"));
|
||||
sep1.get_style_context().map(|c| c.add_class("dim-label"));
|
||||
sep2.get_style_context().map(|c| c.add_class("dim-label"));
|
||||
|
||||
EpisodeWidget {
|
||||
container,
|
||||
progress,
|
||||
|
||||
Reference in New Issue
Block a user