[gnome-themes-standard] Widget theme: add a 2px transparent border to primary toolbar buttons (fixes jumpy toolbars), proper



commit 0a6528f142d56c03d6133f8c8d692905053957f4
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Wed Dec 21 04:16:32 2011 +0100

    Widget theme: add a 2px transparent border to primary toolbar buttons (fixes jumpy toolbars), properly center combobox-entry button decoration.

 themes/Adwaita/gtk-3.0/gtk-widgets.css |   26 +++++++++++++++++++++++---
 1 files changed, 23 insertions(+), 3 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index d661124..41a5cee 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -195,11 +195,12 @@ GtkTreeView .separator:window-unfocused,
  ****************/
 .entry {
     border-style: solid;
+    padding: 0;
 
     /* we use inner-border instead of padding because padding
      * also applies to the progressbar.
      */
-    padding: 0;
+
     -GtkEntry-inner-border: 5;
     -GtkEntry-progress-border: 0;
 
@@ -570,7 +571,7 @@ GtkComboBox.combobox-entry .button {
      * we set in gtk-widget-borders.css to zero.
      */
     border-style: solid;
-    border-width: 0;
+    border-width: 2;
     border-color: transparent;
 }
 
@@ -1117,7 +1118,7 @@ GtkComboBox {
 }
 
 GtkComboBox.combobox-entry {
-    padding-right: 0;
+    padding-right: 0; /* does it work for rtl? */
 }
 
 GtkComboBox *:insensitive {
@@ -1131,6 +1132,25 @@ GtkComboBox .separator {
     -GtkWidget-vertical-separator: 0;
 }
 
+GtkComboBox.combobox-entry .button:first-child,
+GtkComboBox.combobox-entry .button:focus:first-child,
+GtkComboBox.combobox-entry .button:active:first-child,
+GtkComboBox.combobox-entry .button:active:focus:first-child,
+GtkComboBox.combobox-entry .button:insensitive:first-child,
+GtkComboBox.combobox-entry .button:window-unfocused:first-child {
+    padding-right: 5;
+}
+
+GtkComboBox.combobox-entry .button:last-child,
+GtkComboBox.combobox-entry .button:focus:last-child,
+GtkComboBox.combobox-entry .button:active:last-child,
+GtkComboBox.combobox-entry .button:active:focus:last-child,
+GtkComboBox.combobox-entry .button:insensitive:last-child,
+GtkComboBox.combobox-entry .button:window-unfocused:last-child {
+    padding-left: 5;
+}
+
+
 GtkComboBox.combobox-entry .entry:first-child,
 GtkComboBox.combobox-entry .entry:focus:first-child,
 GtkComboBox.combobox-entry .entry:window-unfocused:first-child,



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