mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-09 16:25:10 +03:00
Accent color: reduced number of individual blueish accent colors with color functions (issue #233)
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
@foreground = #bbb
|
||||
@selectionBackground = #4B6EAF
|
||||
@selectionForeground = @foreground
|
||||
@selectionInactiveBackground = #0D293E
|
||||
@selectionInactiveBackground =spin(saturate(shade(@selectionBackground,70%),20%),-15)
|
||||
@selectionInactiveForeground = @foreground
|
||||
@disabledText = #888
|
||||
@textComponentBackground = #45494A
|
||||
@@ -79,7 +79,7 @@ Button.selectedBackground = lighten($Button.background,10%,derived)
|
||||
Button.selectedForeground = @foreground
|
||||
Button.disabledSelectedBackground = lighten($Button.background,3%,derived)
|
||||
|
||||
Button.borderColor = #5e6060
|
||||
Button.borderColor = tint($Button.background,10%)
|
||||
Button.disabledBorderColor = $Button.borderColor
|
||||
Button.focusedBorderColor = $Component.focusedBorderColor
|
||||
Button.hoverBorderColor = $Button.focusedBorderColor
|
||||
@@ -87,13 +87,13 @@ Button.hoverBorderColor = $Button.focusedBorderColor
|
||||
Button.innerFocusWidth = 1
|
||||
|
||||
Button.default.background = #365880
|
||||
Button.default.foreground = #bbb
|
||||
Button.default.foreground = @foreground
|
||||
Button.default.hoverBackground = lighten($Button.default.background,3%,derived)
|
||||
Button.default.pressedBackground = lighten($Button.default.background,6%,derived)
|
||||
Button.default.borderColor = #4c708c
|
||||
Button.default.hoverBorderColor = #537699
|
||||
Button.default.focusedBorderColor = #537699
|
||||
Button.default.focusColor = #43688c
|
||||
Button.default.borderColor = tint($Button.default.background,15%)
|
||||
Button.default.hoverBorderColor = tint($Button.default.background,18%)
|
||||
Button.default.focusedBorderColor = $Button.default.hoverBorderColor
|
||||
Button.default.focusColor = lighten($Component.focusColor,3%)
|
||||
Button.default.boldText = true
|
||||
|
||||
Button.toolbar.hoverBackground = lighten($Button.background,1%,derived)
|
||||
@@ -116,7 +116,7 @@ CheckBox.icon.disabledBackground = @background
|
||||
CheckBox.icon.disabledCheckmarkColor = #606060
|
||||
|
||||
# focused
|
||||
CheckBox.icon.focusedBorderColor = #466D94
|
||||
CheckBox.icon.focusedBorderColor = $Component.focusedBorderColor
|
||||
CheckBox.icon.focusedBackground = fade($CheckBox.icon.focusedBorderColor,30%)
|
||||
|
||||
# hover
|
||||
@@ -146,8 +146,8 @@ ComboBox.buttonEditableBackground = darken($ComboBox.background,2%)
|
||||
#---- Component ----
|
||||
|
||||
Component.borderColor = #646464
|
||||
Component.disabledBorderColor = #646464
|
||||
Component.focusedBorderColor = #466d94
|
||||
Component.disabledBorderColor = $Component.borderColor
|
||||
Component.focusedBorderColor = lighten($Component.focusColor,5%)
|
||||
Component.focusColor = #3d6185
|
||||
Component.linkColor = #589df6
|
||||
Component.grayFilter = -20,-70,100
|
||||
@@ -276,7 +276,7 @@ SplitPaneDivider.draggingColor = #646464
|
||||
TabbedPane.underlineColor = #4A88C7
|
||||
TabbedPane.disabledUnderlineColor = #7a7a7a
|
||||
TabbedPane.hoverColor = darken($TabbedPane.background,5%,derived noAutoInverse)
|
||||
TabbedPane.focusColor = #3d4b5c
|
||||
TabbedPane.focusColor = mix(@selectionBackground,$TabbedPane.background,25%)
|
||||
TabbedPane.contentAreaColor = #646464
|
||||
|
||||
TabbedPane.buttonHoverBackground = darken($TabbedPane.background,5%,derived noAutoInverse)
|
||||
|
||||
@@ -38,10 +38,9 @@ Button.focusedBackground = null
|
||||
Button.default.background = #4D8AC9
|
||||
Button.default.foreground = #fff
|
||||
Button.default.focusedBackground = null
|
||||
Button.default.borderColor = #3D75B2
|
||||
Button.default.hoverBorderColor = #A9C9F5
|
||||
Button.default.focusedBorderColor = #A9C9F5
|
||||
Button.default.focusColor = #97c3f3
|
||||
Button.default.borderColor = shade($Button.default.background,15%)
|
||||
Button.default.hoverBorderColor = tint($Button.default.background,50%)
|
||||
Button.default.focusedBorderColor = $Button.default.hoverBorderColor
|
||||
Button.default.boldText = true
|
||||
Button.default.borderWidth = 1
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ controlDkShadow = darken($controlShadow,15%)
|
||||
#---- Button ----
|
||||
|
||||
Button.background = #fff
|
||||
Button.focusedBackground = #e3f1fa
|
||||
Button.focusedBackground = changeLightness(@selectionBackground,95%)
|
||||
Button.hoverBackground = darken($Button.background,3%,derived)
|
||||
Button.pressedBackground = darken($Button.background,10%,derived)
|
||||
Button.selectedBackground = darken($Button.background,20%,derived)
|
||||
@@ -118,7 +118,7 @@ CheckBox.icon.disabledBackground = @background
|
||||
CheckBox.icon.disabledCheckmarkColor = #ABABAB
|
||||
|
||||
# focused
|
||||
CheckBox.icon.focusedBorderColor = #7B9FC7
|
||||
CheckBox.icon.focusedBorderColor = shade($Component.focusedBorderColor,10%)
|
||||
CheckBox.icon.focusedBackground = $Button.focusedBackground
|
||||
|
||||
# hover
|
||||
@@ -131,11 +131,11 @@ CheckBox.icon.pressedBackground = $Button.pressedBackground
|
||||
|
||||
# used if CheckBox.icon.style = filled
|
||||
# enabled
|
||||
CheckBox.icon[filled].selectedBorderColor = #4B97D9
|
||||
CheckBox.icon[filled].selectedBorderColor = shade($CheckBox.icon[filled].selectedBackground,5%)
|
||||
CheckBox.icon[filled].selectedBackground = #4F9EE3
|
||||
CheckBox.icon[filled].checkmarkColor = #fff
|
||||
# focused
|
||||
CheckBox.icon[filled].selectedFocusedBorderColor = #ACCFF7
|
||||
CheckBox.icon[filled].selectedFocusedBorderColor = tint($CheckBox.icon[filled].selectedBackground,50%)
|
||||
CheckBox.icon[filled].selectedFocusedBackground = $CheckBox.icon[filled].selectedBackground
|
||||
CheckBox.icon[filled].selectedFocusedCheckmarkColor = $CheckBox.icon.focusedBackground
|
||||
# hover
|
||||
@@ -152,8 +152,8 @@ ComboBox.buttonEditableBackground = darken($ComboBox.background,2%)
|
||||
#---- Component ----
|
||||
|
||||
Component.borderColor = #c4c4c4
|
||||
Component.disabledBorderColor = #cfcfcf
|
||||
Component.focusedBorderColor = #87afda
|
||||
Component.disabledBorderColor = lighten($Component.borderColor,4%)
|
||||
Component.focusedBorderColor = shade($Component.focusColor,10%)
|
||||
Component.focusColor = #97c3f3
|
||||
Component.linkColor = #2470B3
|
||||
Component.grayFilter = 25,-25,100
|
||||
@@ -287,7 +287,7 @@ SplitPaneDivider.draggingColor = #c4c4c4
|
||||
TabbedPane.underlineColor = #4083C9
|
||||
TabbedPane.disabledUnderlineColor = #ababab
|
||||
TabbedPane.hoverColor = darken($TabbedPane.background,7%,derived)
|
||||
TabbedPane.focusColor = #dae4ed
|
||||
TabbedPane.focusColor = mix(@selectionBackground,$TabbedPane.background,10%)
|
||||
TabbedPane.contentAreaColor = #bfbfbf
|
||||
|
||||
TabbedPane.buttonHoverBackground = darken($TabbedPane.background,7%,derived)
|
||||
|
||||
Reference in New Issue
Block a user