List, Table, Tree: improved color of cell focus indicator border

- was black
- now derived from selection color (usually accent color)
  - darker in light themes
  - lighter in dark themes

(issue #654)
This commit is contained in:
Karl Tauber
2023-03-26 13:17:31 +02:00
parent bc5587477b
commit 778def118a
7 changed files with 45 additions and 42 deletions

View File

@@ -57,7 +57,7 @@
@menuAcceleratorSelectionForeground = @selectionForeground
# misc
@cellFocusColor = #000
@cellFocusColor = lighten(@selectionBackground,10%)
@icon = shade(@foreground,7%)
# accent colors (blueish)

View File

@@ -57,7 +57,7 @@
@menuAcceleratorSelectionForeground = @selectionForeground
# misc
@cellFocusColor = #000
@cellFocusColor = darken(@selectionBackground,20%)
@icon = shade(@background,27%)
# accent colors (blueish)

View File

@@ -49,6 +49,9 @@ infoText = lazy(ToolTip.foreground)
# make sure that accent color (set via FlatLaf.setSystemColorGetter()) is ignored
@accentColor = null
# use fixed color because it is used in borders
@cellFocusColor = #222
#---- Button ----