mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57:13 -06:00
increased contrast of text for better readability (issue #762)
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
# general background and foreground (text color)
|
||||
@background = #3c3f41
|
||||
@foreground = #bbb
|
||||
@foreground = #ddd
|
||||
@disabledBackground = @background
|
||||
@disabledForeground = shade(@foreground,25%)
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
# selection
|
||||
@selectionBackground = @accentSelectionBackground
|
||||
@selectionForeground = contrast(@selectionBackground, @background, @foreground, 25%)
|
||||
@selectionForeground = contrast(@selectionBackground, shade(@background), tint(@foreground), 25%)
|
||||
@selectionInactiveBackground = spin(saturate(shade(@selectionBackground,70%),20%),-15)
|
||||
@selectionInactiveForeground = @foreground
|
||||
|
||||
@@ -262,7 +262,7 @@ PopupMenu.hoverScrollArrowBackground = lighten(@background,5%)
|
||||
ProgressBar.background = lighten(@background,8%)
|
||||
ProgressBar.foreground = @accentSliderColor
|
||||
ProgressBar.selectionBackground = @foreground
|
||||
ProgressBar.selectionForeground = contrast($ProgressBar.foreground, @background, @foreground, 25%)
|
||||
ProgressBar.selectionForeground = contrast($ProgressBar.foreground, shade(@background), tint(@foreground), 25%)
|
||||
|
||||
|
||||
#---- RootPane ----
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
@background = #f2f2f2
|
||||
@foreground = #000
|
||||
@disabledBackground = @background
|
||||
@disabledForeground = tint(@foreground,55%)
|
||||
@disabledForeground = tint(@foreground,50%)
|
||||
|
||||
# component background
|
||||
@buttonBackground = lighten(@background,5%)
|
||||
|
||||
@@ -112,6 +112,7 @@ Button.borderWidth = 0
|
||||
Button.disabledBackground = darken($Button.background,10%)
|
||||
|
||||
Button.default.borderWidth = 0
|
||||
Button.default.foreground = contrast($Button.default.background, @background, @selectionForeground, 25%)
|
||||
|
||||
Button.toolbar.hoverBackground = #fff1
|
||||
Button.toolbar.pressedBackground = #fff2
|
||||
@@ -293,6 +294,7 @@ TextPane.selectionForeground = @textSelectionForeground
|
||||
|
||||
ToggleButton.disabledBackground = $Button.disabledBackground
|
||||
ToggleButton.selectedBackground = lighten($ToggleButton.background,20%,derived)
|
||||
ToggleButton.selectedForeground = lighten($ToggleButton.foreground,20%)
|
||||
|
||||
ToggleButton.toolbar.selectedBackground = #fff3
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
# general background and foreground (text color)
|
||||
@background = #f6f6f6
|
||||
@foreground = over(@nsControlTextColor,@background)
|
||||
@disabledForeground = over(@nsTertiaryLabelColor,@background)
|
||||
@disabledForeground = over(@nsSecondaryLabelColor,@background)
|
||||
|
||||
# component background
|
||||
@buttonBackground = @nsControlColor
|
||||
|
||||
Reference in New Issue
Block a user