From eb4bb8f5baa53e2ced893993aaff9c23588de2c6 Mon Sep 17 00:00:00 2001 From: Marco Betschart Date: Mon, 5 Oct 2020 20:04:21 +0200 Subject: [PATCH 1/3] Fixed Entry styles --- data/TaskRow.css | 9 ++++----- src/ListView.vala | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/data/TaskRow.css b/data/TaskRow.css index 792c9c1887..110ca7b93b 100644 --- a/data/TaskRow.css +++ b/data/TaskRow.css @@ -32,17 +32,12 @@ row { transition: all 250ms ease-in-out; } -row:focus:not(.card) { - background-color: shade (@base_color, 0.8); -} - .past-due .due-date { background: alpha (@error_color, 0.2); color: @error_color; } row.card { - background-color: @base_color; margin-bottom: 12px; margin-top: 1px; padding-top: 6px; @@ -53,6 +48,7 @@ row entry.flat { border-style: solid; border-color: transparent; padding: 0; + box-shadow: none; } row entry.flat:focus { @@ -61,4 +57,7 @@ row entry.flat:focus { row:not(.card) entry.add-task { border-color: alpha (@text_color, 0.25); + border-top-style: none; + border-right-style: none; + border-left-style: none; } diff --git a/src/ListView.vala b/src/ListView.vala index 6e6201c307..da789e0365 100644 --- a/src/ListView.vala +++ b/src/ListView.vala @@ -115,7 +115,7 @@ public class Tasks.ListView : Gtk.Grid { add_task_list = new Gtk.ListBox (); add_task_list.selection_mode = Gtk.SelectionMode.NONE; add_task_list.margin_top = 24; - add_task_list.get_style_context ().add_class (Gtk.STYLE_CLASS_BACKGROUND); + //add_task_list.get_style_context ().add_class (Gtk.STYLE_CLASS_BACKGROUND); task_list = new Gtk.ListBox (); task_list.selection_mode = Gtk.SelectionMode.NONE; @@ -123,7 +123,7 @@ public class Tasks.ListView : Gtk.Grid { task_list.set_placeholder (placeholder); task_list.set_sort_func (sort_function); task_list.set_header_func (header_function); - task_list.get_style_context ().add_class (Gtk.STYLE_CLASS_BACKGROUND); + //task_list.get_style_context ().add_class (Gtk.STYLE_CLASS_BACKGROUND); var scrolled_window = new Gtk.ScrolledWindow (null, null); scrolled_window.expand = true; From 00d62ab926b0f85b580e4922e5ba9ca89b91085c Mon Sep 17 00:00:00 2001 From: Marco Betschart Date: Mon, 5 Oct 2020 20:12:15 +0200 Subject: [PATCH 2/3] Dropped commented background styles --- src/ListView.vala | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ListView.vala b/src/ListView.vala index da789e0365..f82cdcacd8 100644 --- a/src/ListView.vala +++ b/src/ListView.vala @@ -115,7 +115,6 @@ public class Tasks.ListView : Gtk.Grid { add_task_list = new Gtk.ListBox (); add_task_list.selection_mode = Gtk.SelectionMode.NONE; add_task_list.margin_top = 24; - //add_task_list.get_style_context ().add_class (Gtk.STYLE_CLASS_BACKGROUND); task_list = new Gtk.ListBox (); task_list.selection_mode = Gtk.SelectionMode.NONE; @@ -123,7 +122,6 @@ public class Tasks.ListView : Gtk.Grid { task_list.set_placeholder (placeholder); task_list.set_sort_func (sort_function); task_list.set_header_func (header_function); - //task_list.get_style_context ().add_class (Gtk.STYLE_CLASS_BACKGROUND); var scrolled_window = new Gtk.ScrolledWindow (null, null); scrolled_window.expand = true; From 8c11364dfbaf15c7f867033a2586f3e8fcb6f4a7 Mon Sep 17 00:00:00 2001 From: Marco Betschart Date: Tue, 6 Oct 2020 08:38:12 +0200 Subject: [PATCH 3/3] Re-Added needed background styles --- src/ListView.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ListView.vala b/src/ListView.vala index f82cdcacd8..6e6201c307 100644 --- a/src/ListView.vala +++ b/src/ListView.vala @@ -115,6 +115,7 @@ public class Tasks.ListView : Gtk.Grid { add_task_list = new Gtk.ListBox (); add_task_list.selection_mode = Gtk.SelectionMode.NONE; add_task_list.margin_top = 24; + add_task_list.get_style_context ().add_class (Gtk.STYLE_CLASS_BACKGROUND); task_list = new Gtk.ListBox (); task_list.selection_mode = Gtk.SelectionMode.NONE; @@ -122,6 +123,7 @@ public class Tasks.ListView : Gtk.Grid { task_list.set_placeholder (placeholder); task_list.set_sort_func (sort_function); task_list.set_header_func (header_function); + task_list.get_style_context ().add_class (Gtk.STYLE_CLASS_BACKGROUND); var scrolled_window = new Gtk.ScrolledWindow (null, null); scrolled_window.expand = true;