[gimp] Issue #8670: the color of the "selected text" field seems too dark.



commit 7c96fc723cc1e37b4a27cc88ebb902cbca2662e8
Author: Jehan <jehan girinstud io>
Date:   Wed Sep 28 23:27:50 2022 +0200

    Issue #8670: the color of the "selected text" field seems too dark.
    
    Just use an inverted logic for the selected text (i.e. white on black in light
    mode, or black on white in dark mode). This is the usual logic for rendering
    selected text anyway (except that we don't use non-grayscale colors, e.g. blue
    background is common in system themes).

 themes/Default/common.css | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/themes/Default/common.css b/themes/Default/common.css
index 06d6ee9029..7a2f160894 100644
--- a/themes/Default/common.css
+++ b/themes/Default/common.css
@@ -31,6 +31,7 @@
   color: @fg-color;
 }
 
+/* Selected items in a treeview list. */
 .view:selected {
   background-color: @extreme-selected-color;
   color: @fg-color;
@@ -40,6 +41,12 @@
   color: @disabled-fg-color;
 }
 
+/* Selected text in a treeview cell (e.g. layer name in edition mode). */
+.view selection {
+  background-color: @fg-color;
+  color: @bg-color;
+}
+
 /* The main image window before it has an image in it,
  * and the buttonbar along the bottoms of dialogs.
  * Foreground color here is the text color, not the Wilber color.
@@ -222,7 +229,8 @@ entry {
 }
 
 entry selection {
-  background: @extreme-selected-color;
+  background-color: @fg-color;
+  color: @bg-color;
 }
 
 paned separator {


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