[gnome-themes-standard] infobar: improve theming for GtkInfoBar



commit ca4b023df71ab1a0254f7aac486825d4030f3d15
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Sep 4 13:10:42 2012 -0400

    infobar: improve theming for GtkInfoBar
    
    - don't ever set a border on the infobar for now; setting it on the
      bottom when it's the last child is not working correctly
    - don't override style for buttons and entries on non-colored
      GtkInfoBars

 themes/Adwaita/gtk-3.0/gtk-widgets.css |   85 ++++++++++++++------------------
 1 files changed, 37 insertions(+), 48 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 42e457a..cfb5ae9 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -2994,12 +2994,40 @@ GtkCalendar.highlight {
     border-width: 0;
 }
 
-/* Use different button and entry borders on infobars */
-GtkInfoBar .entry,
-GtkInfoBar .entry:focus,
-GtkInfoBar .button,
-GtkInfoBar .button:insensitive,
-GtkInfoBar .button:active,
+/**************
+ * GtkInfoBar *
+ **************/
+GtkInfoBar {
+    border-width: 0;
+    border-style: none;
+}
+
+.info {
+    text-shadow: 0 1px @info_text_shadow;
+}
+
+.warning {
+    text-shadow: 0 1px @warning_text_shadow;
+}
+
+.question {
+    text-shadow: 0 1px @question_text_shadow;
+}
+
+.error {
+    text-shadow: 0 1px @error_text_shadow;
+}
+
+.info:backdrop,
+.warning:backdrop,
+.question:backdrop,
+.error:backdrop {
+    text-shadow: none;
+    background-color: @theme_base_color;
+    color: @theme_unfocused_fg_color;
+    border-color: @theme_unfocused_fg_color;
+}
+
 .info .entry,
 .info .entry:focus,
 .info .button,
@@ -3034,10 +3062,6 @@ GtkInfoBar .button:active,
     border-width: 1px;
 }
 
-GtkInfoBar .entry:backdrop,
-GtkInfoBar .button:backdrop,
-GtkInfoBar .button:insensitive:backdrop,
-GtkInfoBar .button:active:backdrop,
 .info .entry:backdrop,
 .info .button:backdrop,
 .info .button:insensitive:backdrop,
@@ -3062,44 +3086,6 @@ GtkInfoBar .button:active:backdrop,
 }
 
 .info {
-    text-shadow: 0 1px @info_text_shadow;
-}
-
-.warning {
-    text-shadow: 0 1px @warning_text_shadow;
-}
-
-.question {
-    text-shadow: 0 1px @question_text_shadow;
-}
-
-.error {
-    text-shadow: 0 1px @error_text_shadow;
-}
-
-GtkInfoBar:backdrop,
-.info:backdrop,
-.warning:backdrop,
-.question:backdrop,
-.error:backdrop {
-    text-shadow: none;
-    background-color: @theme_base_color;
-    color: @theme_unfocused_fg_color;
-    border-color: @theme_unfocused_fg_color;
-}
-
-GtkInfoBar:last-child,
-.info:last-child,
-.warning:last-child,
-.question:last-child,
-.error:last-child {
-    /* only apply a border on the last infobar if
-     * there's more than one packed in */
-    border-bottom-width: 1px;
-    border-style: solid;
-}
-
-.info {
     background-color: @info_bg_color;
     color: @info_fg_color;
 
@@ -3127,6 +3113,9 @@ GtkInfoBar:last-child,
     border-color: darker(@error_bg_color);
 }
 
+/**************
+ * Dim labels *
+ **************/
 .view.dim-label,
 .dim-label,
 .dim-label:hover,



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