From 681b91d36800c2ee1c61b6cc67a60a8b784a300b Mon Sep 17 00:00:00 2001 From: Constantin Nickel Date: Sun, 17 Dec 2017 13:17:04 +0100 Subject: [PATCH] Set dim-label for secondary labels of EpisodeWidget in Glade. --- hammond-gtk/resources/gtk/episode_widget.ui | 18 ++++++++++++++++++ hammond-gtk/src/widgets/episode.rs | 16 ---------------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/hammond-gtk/resources/gtk/episode_widget.ui b/hammond-gtk/resources/gtk/episode_widget.ui index cc2d9d5..12d7dcb 100644 --- a/hammond-gtk/resources/gtk/episode_widget.ui +++ b/hammond-gtk/resources/gtk/episode_widget.ui @@ -58,6 +58,9 @@ 1970/01/01 True False + False @@ -71,6 +74,9 @@ True · False + False @@ -85,6 +91,9 @@ 42 min True False + False @@ -98,6 +107,9 @@ False · False + False @@ -112,6 +124,9 @@ 42 MB True False + False @@ -126,6 +141,9 @@ 12 MB / 42 MB True False + False diff --git a/hammond-gtk/src/widgets/episode.rs b/hammond-gtk/src/widgets/episode.rs index 921696f..a7cadbe 100644 --- a/hammond-gtk/src/widgets/episode.rs +++ b/hammond-gtk/src/widgets/episode.rs @@ -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,