[gnome-tweak-tool] fix background color of startup applications



commit 3b6ef69dc4b45da263fd0c9c1fb9363fca9fd633
Author: Alex Munoz <amunoz src gnome org>
Date:   Tue Jan 7 01:23:27 2014 -0300

    fix background color of startup applications
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720960

 data/shell.css                       |   11 +++++++++++
 gtweak/tweaks/tweak_group_startup.py |    8 +++++---
 2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/data/shell.css b/data/shell.css
index 9796e00..c4ae112 100644
--- a/data/shell.css
+++ b/data/shell.css
@@ -47,6 +47,17 @@
     background-color: white;
 }
 
+.tweak-startup,
+.tweak-startup:hover {
+    background-color: lighter(shade(@theme_bg_color, 0.9));
+}
+
+.tweak-group-startup
+{
+    background-color: @view_separators;
+}
+
+
 /* NOT WORKING 
 .main-container {
     padding: 20px;
diff --git a/gtweak/tweaks/tweak_group_startup.py b/gtweak/tweaks/tweak_group_startup.py
index 96ab479..da79d7c 100644
--- a/gtweak/tweaks/tweak_group_startup.py
+++ b/gtweak/tweaks/tweak_group_startup.py
@@ -135,8 +135,9 @@ class _StartupTweak(Gtk.ListBoxRow, Tweak):
 
         self.add(grid)
 
-        self.props.margin = 5
-        self.get_style_context().add_class('tweak-white')
+        self.props.margin_left = 1
+        self.props.margin_right = 1
+        self.get_style_context().add_class('tweak-startup')
 
         self.btn = btn
 
@@ -154,6 +155,7 @@ class AddStartupTweak(Gtk.ListBoxRow, Tweak):
         self.btn.set_image(img)
         self.btn.props.always_show_image = True
         self.add(self.btn)
+        self.get_style_context().add_class('tweak-startup')
 
 class AutostartListBoxTweakGroup(ListBoxTweakGroup):
     def __init__(self):
@@ -179,7 +181,7 @@ class AutostartListBoxTweakGroup(ListBoxTweakGroup):
         ListBoxTweakGroup.__init__(self,
             _("Startup Applications"),
             *tweaks,
-            css_class='tweak-group-white')
+            css_class='tweak-group-startup')
         self.set_header_func(_list_header_func, None)
 
     def _on_remove_clicked(self, btn, widget, df):


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