mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57:13 -06:00
Theming improvements: reordered variables and added comments
This commit is contained in:
@@ -32,20 +32,29 @@
|
||||
|
||||
#---- variables ----
|
||||
|
||||
# general background and foreground (text color)
|
||||
@background = #3c3f41
|
||||
@foreground = #bbb
|
||||
@disabledText = shade(@foreground,25%)
|
||||
|
||||
# component background
|
||||
@buttonBackground = tint(@background,9%)
|
||||
@textComponentBackground = tint(@background,5%)
|
||||
@menuBackground = darken(@background,5%)
|
||||
|
||||
# selection
|
||||
@selectionBackground = @accentSelectionBackground
|
||||
@selectionForeground = contrast(@selectionBackground, @background, @foreground, 25%)
|
||||
@selectionInactiveBackground = spin(saturate(shade(@selectionBackground,70%),20%),-15)
|
||||
@selectionInactiveForeground = @foreground
|
||||
@disabledText = shade(@foreground,25%)
|
||||
@buttonBackground = tint(@background,9%)
|
||||
@textComponentBackground = tint(@background,5%)
|
||||
@menuBackground = darken(@background,5%)
|
||||
|
||||
# menu
|
||||
@menuHoverBackground = lighten(@menuBackground,10%,derived)
|
||||
@menuCheckBackground = darken(@selectionBackground,10%,derived noAutoInverse)
|
||||
@menuAcceleratorForeground = darken(@foreground,15%)
|
||||
@menuAcceleratorSelectionForeground = @selectionForeground
|
||||
|
||||
# misc
|
||||
@cellFocusColor = #000
|
||||
@icon = shade(@foreground,7%)
|
||||
|
||||
|
||||
@@ -32,20 +32,29 @@
|
||||
|
||||
#---- variables ----
|
||||
|
||||
# general background and foreground (text color)
|
||||
@background = #f2f2f2
|
||||
@foreground = #000
|
||||
@disabledText = tint(@foreground,55%)
|
||||
|
||||
# component background
|
||||
@buttonBackground = lighten(@background,5%)
|
||||
@textComponentBackground = lighten(@background,5%)
|
||||
@menuBackground = lighten(@background,5%)
|
||||
|
||||
# selection
|
||||
@selectionBackground = @accentSelectionBackground
|
||||
@selectionForeground = contrast(@selectionBackground, @foreground, #fff)
|
||||
@selectionInactiveBackground = shade(@background,13%)
|
||||
@selectionInactiveForeground = @foreground
|
||||
@disabledText = tint(@foreground,55%)
|
||||
@buttonBackground = lighten(@background,5%)
|
||||
@textComponentBackground = lighten(@background,5%)
|
||||
@menuBackground = lighten(@background,5%)
|
||||
|
||||
# menu
|
||||
@menuHoverBackground = darken(@menuBackground,10%,derived)
|
||||
@menuCheckBackground = lighten(@selectionBackground,40%,derived noAutoInverse)
|
||||
@menuAcceleratorForeground = lighten(@foreground,30%)
|
||||
@menuAcceleratorSelectionForeground = @selectionForeground
|
||||
|
||||
# misc
|
||||
@cellFocusColor = #000
|
||||
@icon = shade(@background,27%)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user