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).
This commit is contained in:
Jehan 2022-09-28 23:27:50 +02:00
parent a021b1999a
commit 7c96fc723c
1 changed files with 9 additions and 1 deletions

View File

@ -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 {