Accent color:

- added `Component.accentColor`
- dark themes: changed threshold for contrast() from 39% down to 25% for better readability of text
- Demo: added "Default" accent color and changed "Blue" to lighter color

(issue #233)
This commit is contained in:
Karl Tauber
2021-09-28 11:12:17 +02:00
parent e31e4dfe3a
commit bb5c2eea10
8 changed files with 19 additions and 6 deletions

View File

@@ -216,6 +216,7 @@ ComboBoxUI com.formdev.flatlaf.ui.FlatComboBoxUI
#---- Component ----
Component.accentColor #4b6eaf HSL 219 40 49 javax.swing.plaf.ColorUIResource [UI]
Component.arc 5
Component.arrowType chevron
Component.borderColor #646464 HSL 0 0 39 javax.swing.plaf.ColorUIResource [UI]

View File

@@ -220,6 +220,7 @@ ComboBoxUI com.formdev.flatlaf.ui.FlatComboBoxUI
#---- Component ----
Component.accentColor #2675bf HSL 209 67 45 javax.swing.plaf.ColorUIResource [UI]
Component.arc 5
Component.arrowType chevron
Component.borderColor #c4c4c4 HSL 0 0 77 javax.swing.plaf.ColorUIResource [UI]