[gnome-themes-standard] entry: fixup progressbar in entries, and non-focused entry border



commit d380bd0f1aed4aeed469896e1cd8fb044b7d1fcb
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 7 15:23:35 2011 -0500

    entry: fixup progressbar in entries, and non-focused entry border
    
    Progressbar in entries still need a design for proper colors, but this
    is better than nothing.

 themes/Adwaita/gtk-3.0/gtk.css |   46 ++++++++++++++++++++++++++++++++++-----
 1 files changed, 40 insertions(+), 6 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index da92c81..4a7d0d4 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -60,10 +60,7 @@
 @define-color switch_slider_color #eeeeec;
 @define-color switch_slider_border #2a79cb;
 
- define-color selected_row_bg_color_a #1f72c6;
- define-color selected_row_bg_color_b shade (@theme_selected_bg_color, 1.22);
-
- define-color progressbar_background_a @selected_row_bg_color_a;
+ define-color progressbar_background_a #1f72c6;
 @define-color progressbar_background_b #76b0ec;
 @define-color progressbar_border #3277bf;
 
@@ -206,10 +203,21 @@ GtkWindow > GtkVBox > GtkToolbar .entry {
     background-color: @theme_base_color;
     background-image: none;
 
-    border-color: @focused_entry_border;
-    border-radius: 3;
+    border-radius: 2;
     border-width: 1;
     border-style: solid;
+    border-color: @button_border;
+
+    padding: 2;
+}
+
+.entry:focused,
+.toolbar .entry:focused,
+.primary-toolbar .entry:focused,
+GtkWindow > GtkVBox > EggEditableToolbar > GtkHBox > GtkToolbar .entry:focused, /* eog etc */
+GtkWindow > GtkVBox > GtkVBox > EggEditableToolbar > GtkHBox > GtkToolbar .entry:focused, /* epiphany */
+GtkWindow > GtkVBox > GtkToolbar .entry:focused {
+    border-color: @focused_entry_border;    
 }
 
 .entry:insensitive {
@@ -217,6 +225,32 @@ GtkWindow > GtkVBox > GtkToolbar .entry {
     border-color: shade (@inactive_frame_color, 0.945);
 }
 
+.entry.progressbar,
+.toolbar .entry.progressbar {
+    /* FIXME: need correct colors/gradient */
+    background-color: @theme_selected_bg_color;
+    color: @theme_selected_fg_color;
+
+    border-width: 1;
+    border-radius: 1;
+    border-color: @progressbar_border;
+}
+
+.primary-toolbar .entry.progressbar,
+GtkWindow > GtkVBox > EggEditableToolbar > GtkHBox > GtkToolbar .entry.progressbar, /* eog etc */
+GtkWindow > GtkVBox > GtkVBox > EggEditableToolbar > GtkHBox > GtkToolbar .entry.progressbar, /* epiphany */
+GtkWindow > GtkVBox > GtkToolbar .entry.progressbar {
+    /* FIXME: need correct colors/gradient */
+    background-image: -gtk-gradient (linear,
+                                     left top, left bottom,
+                                     from (@trough_bg_color_a),
+                                     to (@trough_bg_color_b));
+
+    border-width: 0;
+    border-radius: 2;
+    border-color: shade (@inactive_frame_color, 0.925);
+}
+
 /*****************
  * GtkSpinButton *
  *****************/



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