[gnome-todo/wip/gbsneto/css-nodes: 3/4] task-list-item: set a css name
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/wip/gbsneto/css-nodes: 3/4] task-list-item: set a css name
- Date: Wed, 9 Dec 2015 02:24:12 +0000 (UTC)
commit 8538ee6e935c813b35b609b2d53fde46fb9ba4b7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Dec 9 00:20:01 2015 -0200
task-list-item: set a css name
data/theme/Adwaita.css | 8 ++++----
src/gtd-task-list-item.c | 2 ++
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/data/theme/Adwaita.css b/data/theme/Adwaita.css
index 00498fd..82a277a 100644
--- a/data/theme/Adwaita.css
+++ b/data/theme/Adwaita.css
@@ -6,7 +6,7 @@ task-row {
border-bottom: 1px solid alpha(@borders, 0.4);
}
-GtdTaskListItem.thumbnail {
+task-list-item.thumbnail {
margin-left: 10px;
margin-right: 10px;
margin-top: 8px;
@@ -14,11 +14,11 @@ GtdTaskListItem.thumbnail {
font-size: 9px;
}
-GtdTaskListItem {
+task-list-item {
background-color: transparent;
}
-GtdTaskListItem,
+task-list-item,
task-list-view task-row {
color: #000003;
}
@@ -27,7 +27,7 @@ task-list-view task-row:hover {
background-color: alpha(#ededed, 0.4);
}
-GtdTaskListItem.dark,
+task-list-item.dark,
task-list-view.dark task-row {
color: #eeeeec;
}
diff --git a/src/gtd-task-list-item.c b/src/gtd-task-list-item.c
index 9d9dac9..6ea4f3e 100644
--- a/src/gtd-task-list-item.c
+++ b/src/gtd-task-list-item.c
@@ -526,6 +526,8 @@ gtd_task_list_item_class_init (GtdTaskListItemClass *klass)
gtk_widget_class_bind_template_child_private (widget_class, GtdTaskListItem, title_label);
gtk_widget_class_bind_template_callback (widget_class, gtd_task_list_item__button_press_event_cb);
+
+ gtk_widget_class_set_css_name (widget_class, "task-list-item");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]