[gnome-themes-standard/wip/jimmac/updated-gtk2: 47/106] No hover effect on pressed buttons.



commit 4dba394ba71d5600fcbcf9d06707f904346d75c8
Author: Juraj Fiala <doctorjellyface riseup net>
Date:   Tue Feb 9 11:43:35 2016 +0100

    No hover effect on pressed buttons.
    
    Makes toggle buttons usable again.

 themes/Adwaita/gtk-2.0/main.rc |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-2.0/main.rc b/themes/Adwaita/gtk-2.0/main.rc
index 4d79c87..688ccaa 100644
--- a/themes/Adwaita/gtk-2.0/main.rc
+++ b/themes/Adwaita/gtk-2.0/main.rc
@@ -1033,11 +1033,22 @@ style "button" {
     image {
       function = BOX
       state    = PRELIGHT
+      shadow   = OUT
       file     = "assets/button-hover.png"
       border   = {4, 4, 4, 4}
       stretch  = TRUE
     }
 
+    # Don't add hover effect on pressed buttons
+    image {
+      function = BOX
+      state    = PRELIGHT
+      shadow   = IN
+      file     = "assets/button-active.png"
+      border   = {4, 4, 4, 4}
+      stretch  = TRUE
+    }
+
     image {
       function = BOX
       state    = ACTIVE


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