[gtk+] Adwaita: Try harder to fix arrow rendering



commit f0fba02dca17e38146cfcc8b288ecfe0572e2eb9
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Dec 19 20:46:26 2015 -0500

    Adwaita: Try harder to fix arrow rendering
    
    Fiddle with specificity to keep hovered modelbutton arrows
    from rendering background.

 gtk/theme/Adwaita/_common.scss           |    3 ++-
 gtk/theme/Adwaita/gtk-contained-dark.css |    8 +++++---
 gtk/theme/Adwaita/gtk-contained.css      |    8 +++++---
 3 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 9fd219c..52429d0 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -741,8 +741,9 @@ modelbutton.flat,
   }
 }
 
-modelbutton arrow {
+modelbutton.flat arrow {
   background: none;
+  &:hover { background: none; }
   &.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
   &.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
 }
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 60c0bc1..bd67454 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -1241,11 +1241,13 @@ modelbutton.flat,
   .menuitem.button.flat:hover {
     background-color: #4b5150; }
 
-modelbutton arrow {
+modelbutton.flat arrow {
   background: none; }
-  modelbutton arrow.left {
+  modelbutton.flat arrow:hover {
+    background: none; }
+  modelbutton.flat arrow.left {
     -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
-  modelbutton arrow.right {
+  modelbutton.flat arrow.right {
     -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
 
 button.color, headerbar button.color.titlebutton,
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 8199fb7..78fc0f6 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1241,11 +1241,13 @@ modelbutton.flat,
   .menuitem.button.flat:hover {
     background-color: #d5d6d5; }
 
-modelbutton arrow {
+modelbutton.flat arrow {
   background: none; }
-  modelbutton arrow.left {
+  modelbutton.flat arrow:hover {
+    background: none; }
+  modelbutton.flat arrow.left {
     -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
-  modelbutton arrow.right {
+  modelbutton.flat arrow.right {
     -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
 
 button.color, headerbar button.color.titlebutton,


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