[gnome-themes-standard] fix GtkLinkButton blinking borders on hover in backdrop - shouldn't be needed, but explicitelly se



commit 35809a1116f33e69f3f19ac1e2285c238650bb74
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Wed Jun 11 03:36:19 2014 +0200

    fix GtkLinkButton blinking borders on hover in backdrop
      - shouldn't be needed, but explicitelly setting no borders and background
        for backdrop state fixes the weird transition

 themes/Adwaita/gtk-3.0/_common.scss           |    3 +++
 themes/Adwaita/gtk-3.0/gtk-contained-dark.css |    2 +-
 themes/Adwaita/gtk-3.0/gtk-contained.css      |    2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/_common.scss b/themes/Adwaita/gtk-3.0/_common.scss
index 799c8e6..864b2bd 100644
--- a/themes/Adwaita/gtk-3.0/_common.scss
+++ b/themes/Adwaita/gtk-3.0/_common.scss
@@ -379,6 +379,9 @@ GtkLinkButton.button {
   }
   &:backdrop {
     color: $selected_bg_color;
+    @extend %undecorated_button; //This shouldn't be needed but avoids
+                                 //a weird transition which for some reason
+                                 //makes borders blink on hover
   }
 }
 
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
index d37a1a3..222a950 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
@@ -419,7 +419,7 @@
     border-radius: 3px;
     border-style: solid; }
 
-GtkLinkButton.button, GtkLinkButton.button:hover, GtkLinkButton.button:active {
+GtkLinkButton.button, GtkLinkButton.button:hover, GtkLinkButton.button:active, GtkLinkButton.button:backdrop 
{
   border-color: transparent;
   background-color: transparent;
   background-image: none;
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained.css b/themes/Adwaita/gtk-3.0/gtk-contained.css
index 195d98e..687b27a 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained.css
@@ -419,7 +419,7 @@
     border-radius: 3px;
     border-style: solid; }
 
-GtkLinkButton.button, GtkLinkButton.button:hover, GtkLinkButton.button:active {
+GtkLinkButton.button, GtkLinkButton.button:hover, GtkLinkButton.button:active, GtkLinkButton.button:backdrop 
{
   border-color: transparent;
   background-color: transparent;
   background-image: none;


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