[gimp/gimp-2-10] themes: fix check/radio buttons in tree views



commit 32c2aa11dfe25054fc5f6d97148a4c67deca6868
Author: Ell <ell_se yahoo com>
Date:   Thu Oct 4 21:33:26 2018 -0400

    themes: fix check/radio buttons in tree views
    
    Apply the check/radio-button style to GtkTreeView, so that
    GtkCellRendererToggle picks the right check/radio-button graphic.
    Otherwise, it falls back to a graphic that depends on the system
    theme, and which may not play well with the current theme colors.
    
    Note that this only affects the Dark theme; in the Light and Gray
    themes, one of the KDE-hack styles "takes care" of this, but this
    commit applies the same change to these themes anyway.

 themes/Dark/gtkrc  | 2 ++
 themes/Gray/gtkrc  | 2 ++
 themes/Light/gtkrc | 2 ++
 3 files changed, 6 insertions(+)
---
diff --git a/themes/Dark/gtkrc b/themes/Dark/gtkrc
index 30d19118b9..a31ba339e0 100644
--- a/themes/Dark/gtkrc
+++ b/themes/Dark/gtkrc
@@ -1340,6 +1340,7 @@ style "gimp-dark-radio-button" = "gimp-dark-default-style"
 
 class "GtkRadioButton"   style "gimp-dark-radio-button"
 class "GtkRadioMenuItem"  style "gimp-dark-radio-button"
+class "GtkTreeView"  style "gimp-dark-radio-button"
 
 ###########################################################
 
@@ -1381,6 +1382,7 @@ style "gimp-dark-check-button" = "gimp-dark-default-style"
 
 class "GtkCheckButton"   style "gimp-dark-check-button"
 class "GtkCheckMenuItem"   style "gimp-dark-check-button"
+class "GtkTreeView"   style "gimp-dark-check-button"
 
 ###########################################################
 
diff --git a/themes/Gray/gtkrc b/themes/Gray/gtkrc
index 86c6ef0b09..3a05bcbe1f 100644
--- a/themes/Gray/gtkrc
+++ b/themes/Gray/gtkrc
@@ -1415,6 +1415,7 @@ style "sogg-radio-button" = "sogg-default-style"
 
 class "GtkRadioButton"   style "sogg-radio-button"
 class "GtkRadioMenuItem"  style "sogg-radio-button"
+class "GtkTreeView"  style "sogg-radio-button"
 
 ###########################################################
 
@@ -1456,6 +1457,7 @@ style "sogg-check-button" = "sogg-default-style"
 
 class "GtkCheckButton"   style "sogg-check-button"
 class "GtkCheckMenuItem"   style "sogg-check-button"
+class "GtkTreeView"   style "sogg-check-button"
 
 ###########################################################
 
diff --git a/themes/Light/gtkrc b/themes/Light/gtkrc
index 03e9591c3e..f54c941ed3 100644
--- a/themes/Light/gtkrc
+++ b/themes/Light/gtkrc
@@ -1413,6 +1413,7 @@ style "tlsog-radio-button" = "tlsog-default-style"
 
 class "GtkRadioButton"   style "tlsog-radio-button"
 class "GtkRadioMenuItem"  style "tlsog-radio-button"
+class "GtkTreeView"  style "tlsog-radio-button"
 
 ###########################################################
 
@@ -1454,6 +1455,7 @@ style "tlsog-check-button" = "tlsog-default-style"
 
 class "GtkCheckButton"   style "tlsog-check-button"
 class "GtkCheckMenuItem"   style "tlsog-check-button"
+class "GtkTreeView"   style "tlsog-check-button"
 
 ###########################################################
 


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