[gtk+] Adwaita: reset entry props on horizontal spinbuttons



commit 20a8ac5542736e7f96c916982ac969b160a59e2d
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Sat Mar 19 18:09:22 2016 +0100

    Adwaita: reset entry props on horizontal spinbuttons
    
    the spinbutton node is where the styling is applied, the leftover
    properties on the entry node make a backdrop transition bad.

 gtk/theme/Adwaita/_common.scss           |    3 +++
 gtk/theme/Adwaita/gtk-contained-dark.css |    2 ++
 gtk/theme/Adwaita/gtk-contained.css      |    2 ++
 3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 1da27c1..6036bc7 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -987,9 +987,12 @@ spinbutton {
 
     entry {
       min-width: 28px;
+      // reset all the other props since the spinbutton node is styled here
       margin: 0;
       background: none;
+      background-color: transparent;
       border: none;
+      border-radius: 0;
       box-shadow: none;
     }
 
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index ab6fbde..e4495ed 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -1215,7 +1215,9 @@ spinbutton:not(.vertical) {
     min-width: 28px;
     margin: 0;
     background: none;
+    background-color: transparent;
     border: none;
+    border-radius: 0;
     box-shadow: none; }
   spinbutton:not(.vertical) button {
     min-height: 16px;
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 33e08fb..ccdac89 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1221,7 +1221,9 @@ spinbutton:not(.vertical) {
     min-width: 28px;
     margin: 0;
     background: none;
+    background-color: transparent;
     border: none;
+    border-radius: 0;
     box-shadow: none; }
   spinbutton:not(.vertical) button {
     min-height: 16px;


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