[gnome-todo] task-list-view: fix empty widgets color
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] task-list-view: fix empty widgets color
- Date: Fri, 22 Sep 2017 03:05:48 +0000 (UTC)
commit 6c4fb4b30818e2f4080c761cb586ef9ce33d3b79
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Sep 22 00:05:25 2017 -0300
task-list-view: fix empty widgets color
data/theme/Adwaita.css | 13 +++++++++++++
src/gtd-empty-list-widget.c | 2 ++
src/gtd-task-list-view.c | 2 +-
3 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/data/theme/Adwaita.css b/data/theme/Adwaita.css
index 93a64af..3d68465 100644
--- a/data/theme/Adwaita.css
+++ b/data/theme/Adwaita.css
@@ -110,3 +110,16 @@ editpane entry.title {
font-size: 1.1rem;
font-weight: bold;
}
+
+/*
+ * Tasklist view
+ */
+tasklistview.dark emptylistwidget label,
+tasklistview.dark emptylistwidget image {
+ color: white;
+}
+
+tasklistview.light emptylistwidget label,
+tasklistview.light emptylistwidget image {
+ color: black;
+}
diff --git a/src/gtd-empty-list-widget.c b/src/gtd-empty-list-widget.c
index f7980b4..7c91d7d 100644
--- a/src/gtd-empty-list-widget.c
+++ b/src/gtd-empty-list-widget.c
@@ -125,6 +125,8 @@ gtd_empty_list_widget_class_init (GtdEmptyListWidgetClass *klass)
gtk_widget_class_bind_template_child (widget_class, GtdEmptyListWidget, icon);
gtk_widget_class_bind_template_child (widget_class, GtdEmptyListWidget, subtitle_label);
gtk_widget_class_bind_template_child (widget_class, GtdEmptyListWidget, title_label);
+
+ gtk_widget_class_set_css_name (widget_class, "emptylistwidget");
}
static void
diff --git a/src/gtd-task-list-view.c b/src/gtd-task-list-view.c
index 2cabc21..cd25eb6 100644
--- a/src/gtd-task-list-view.c
+++ b/src/gtd-task-list-view.c
@@ -1614,7 +1614,7 @@ gtd_task_list_view_class_init (GtdTaskListViewClass *klass)
gtk_widget_class_bind_template_callback (widget_class, task_row_entered_cb);
gtk_widget_class_bind_template_callback (widget_class, task_row_exited_cb);
- gtk_widget_class_set_css_name (widget_class, "task-list-view");
+ gtk_widget_class_set_css_name (widget_class, "tasklistview");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]