From 99f73ba8432ee887054d6237851d08c5ec886eaf Mon Sep 17 00:00:00 2001 From: Morgan Hardwood Date: Thu, 1 Feb 2018 13:55:48 +0100 Subject: [PATCH] Better on/off state separation for text toggle buttons #4350 --- rtdata/themes/RawTherapee-GTK3-20_.css | 9 +++++++++ rtdata/themes/RawTherapee-GTK3-_19.css | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/rtdata/themes/RawTherapee-GTK3-20_.css b/rtdata/themes/RawTherapee-GTK3-20_.css index a2fadeca3..f32455ca3 100644 --- a/rtdata/themes/RawTherapee-GTK3-20_.css +++ b/rtdata/themes/RawTherapee-GTK3-20_.css @@ -324,6 +324,15 @@ scale:disabled trough { padding: 4px; } +/* Better on/off state separation for text toggle buttons, e.g. auto-levels or histogram matching. */ +button.text-button { + background-image: linear-gradient(to bottom, rgba(100,100,100,.3), rgba(30,30,30,.3)); +} + +button.text-button:checked { + background-image: linear-gradient(to bottom, rgba(30,30,30,.3), rgba(0,0,0,.4)); +} + separator { color: #363636; margin: 5px; diff --git a/rtdata/themes/RawTherapee-GTK3-_19.css b/rtdata/themes/RawTherapee-GTK3-_19.css index 8443768c3..cfbec4355 100644 --- a/rtdata/themes/RawTherapee-GTK3-_19.css +++ b/rtdata/themes/RawTherapee-GTK3-_19.css @@ -506,3 +506,11 @@ GtkNotebook { padding-left: 3px; padding-right: 3px; } + +GtkButton.text-button { + background-image: linear-gradient(to bottom, rgba(100,100,100,.3), rgba(30,30,30,.3)); +} + +GtkButton.text-button:checked { + background-image: linear-gradient(to bottom, rgba(30,30,30,.3), rgba(0,0,0,.4)); +}