Set dim-label for secondary labels of EpisodeWidget in Glade.

This commit is contained in:
Constantin Nickel
2017-12-17 13:17:04 +01:00
parent 4b0a6ea0f7
commit 681b91d368
2 changed files with 18 additions and 16 deletions
-16
View File
@@ -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,