[gnome-builder] recent: tweak styling when row is selected



commit 4cbbab6c7c137391e636da26733846bd9466229c
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 11 16:08:24 2019 -0800

    recent: tweak styling when row is selected

 src/plugins/recent/gbp-recent-section.ui | 2 +-
 src/plugins/recent/recent.gresource.xml  | 5 +++--
 src/plugins/recent/themes/shared.css     | 5 +++++
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/recent/gbp-recent-section.ui b/src/plugins/recent/gbp-recent-section.ui
index 0a6e84bd5..a3a52d589 100644
--- a/src/plugins/recent/gbp-recent-section.ui
+++ b/src/plugins/recent/gbp-recent-section.ui
@@ -58,7 +58,7 @@
                     <child>
                       <object class="GtkListBox" id="listbox">
                         <property name="visible">true</property>
-                        <property name="selection-mode">none</property>
+                        <property name="selection-mode">browse</property>
                         <signal name="row-activated" swapped="true" object="GbpRecentSection" 
handler="gbp_recent_section_row_activated"/>
                       </object>
                     </child>
diff --git a/src/plugins/recent/recent.gresource.xml b/src/plugins/recent/recent.gresource.xml
index d875645e8..1e584a5ec 100644
--- a/src/plugins/recent/recent.gresource.xml
+++ b/src/plugins/recent/recent.gresource.xml
@@ -2,7 +2,8 @@
 <gresources>
   <gresource prefix="/plugins/recent">
     <file>recent.plugin</file>
-    <file>gbp-recent-project-row.ui</file>
-    <file>gbp-recent-section.ui</file>
+    <file preprocess="xml-stripblanks">gbp-recent-project-row.ui</file>
+    <file preprocess="xml-stripblanks">gbp-recent-section.ui</file>
+    <file>themes/shared.css</file>
   </gresource>
 </gresources>
diff --git a/src/plugins/recent/themes/shared.css b/src/plugins/recent/themes/shared.css
new file mode 100644
index 000000000..a9fde5283
--- /dev/null
+++ b/src/plugins/recent/themes/shared.css
@@ -0,0 +1,5 @@
+recent row:selected dzlpillbox {
+  background: alpha(shade(@theme_selected_bg_color, 0.6), 0.4);
+  color: @theme_selected_fg_color;
+  text-shadow: 1px 1px alpha(@theme_selected_fg_color, 0.3);
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]