[gnome-themes-standard/wip/jimmac/updated-gtk2: 31/106] Fixed prelight colour in notebooks.



commit 50dc53e3e450e148bb31d17edf6ee57a37807a58
Author: Juraj Fiala <doctorjellyface riseup net>
Date:   Wed Jan 6 20:44:55 2016 +0100

    Fixed prelight colour in notebooks.

 themes/Adwaita/gtk-2.0/main.rc |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/themes/Adwaita/gtk-2.0/main.rc b/themes/Adwaita/gtk-2.0/main.rc
index 3cd5e6a..4ece49e 100644
--- a/themes/Adwaita/gtk-2.0/main.rc
+++ b/themes/Adwaita/gtk-2.0/main.rc
@@ -81,7 +81,7 @@ style "default" {
   ##########
 
   bg[NORMAL]      = @bg_color
-  bg[PRELIGHT]    = @bg_color # Problem on white background
+  bg[PRELIGHT]    = @bg_color
   bg[SELECTED]    = @selected_bg_color
   bg[INSENSITIVE] = mix (0.6, @bg_color, @base_color)
   bg[ACTIVE]      = "red" #shade (0.9, @bg_color) # I just can't find out where this is used
@@ -2173,6 +2173,10 @@ style "notebook_viewport" {
   bg[NORMAL] = @base_color
 }
 
+style "notebook_prelight" {
+  bg[PRELIGHT] = @base_color
+}
+
 style "tooltips" {
 
   xthickness = 8
@@ -2235,6 +2239,9 @@ widget_class "*<GtkNotebook>*<GtkScrolledWindow>*<GtkViewport>"  style "notebook
 widget_class "*<GtkNotebook>*<GtkEntry>"               style "notebook_entry"
 widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkEntry>" style "entry"
 
+# We need the prelight colour inside notebooks to be white so it won't change on hover
+widget_class "*<GtkNotebook>*"                         style "notebook_prelight"
+
 #widget_class "*<GtkNotebook>*<GtkComboBoxEntry>*<GtkEntry>" style "notebook_combobox_entry"
 widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkComboBoxEntry>*<GtkEntry>" style "combobox_entry"
 


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