mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 07:17:13 -06:00
Button: undone most style changes done in previous commit related to focused and default buttons:
- default button: white background and wide border - focused button: light blue background and thin border (the light blue default button did not look beautiful IMHO)
This commit is contained in:
@@ -84,6 +84,8 @@ Button.disabledBorderColor = $Button.borderColor
|
||||
Button.focusedBorderColor = $Component.focusedBorderColor
|
||||
Button.hoverBorderColor = $Button.focusedBorderColor
|
||||
|
||||
Button.innerFocusWidth = 1
|
||||
|
||||
Button.default.background = #365880
|
||||
Button.default.foreground = #bbb
|
||||
Button.default.hoverBackground = lighten($Button.default.background,3%,derived)
|
||||
|
||||
@@ -33,10 +33,11 @@
|
||||
|
||||
#---- Button ----
|
||||
|
||||
Button.innerFocusWidth = 0
|
||||
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
|
||||
@@ -48,7 +49,6 @@ Button.default.borderWidth = 1
|
||||
#---- CheckBox ----
|
||||
|
||||
CheckBox.icon.style = filled
|
||||
CheckBox.icon.focusedBackground = null
|
||||
|
||||
|
||||
#---- Component ----
|
||||
|
||||
@@ -164,7 +164,6 @@ Button.defaultButtonFollowsFocus = false
|
||||
|
||||
Button.borderWidth = 1
|
||||
Button.default.borderWidth = 1
|
||||
Button.innerFocusWidth = 1
|
||||
|
||||
Button.toolbar.margin = 3,3,3,3
|
||||
Button.toolbar.spacingInsets = 1,2,1,2
|
||||
@@ -285,13 +284,14 @@ HelpButton.focusedBorderColor = $CheckBox.icon.focusedBorderColor
|
||||
HelpButton.hoverBorderColor = $?CheckBox.icon.hoverBorderColor
|
||||
HelpButton.background = $CheckBox.icon.background
|
||||
HelpButton.disabledBackground = $CheckBox.icon.disabledBackground
|
||||
HelpButton.focusedBackground = $?Button.focusedBackground
|
||||
HelpButton.hoverBackground = $?CheckBox.icon.hoverBackground
|
||||
HelpButton.pressedBackground = $?CheckBox.icon.pressedBackground
|
||||
HelpButton.questionMarkColor = $CheckBox.icon.checkmarkColor
|
||||
HelpButton.disabledQuestionMarkColor = $CheckBox.icon.disabledCheckmarkColor
|
||||
|
||||
HelpButton.borderWidth = $Button.borderWidth
|
||||
HelpButton.innerFocusWidth = $Button.innerFocusWidth
|
||||
HelpButton.borderWidth = $?Button.borderWidth
|
||||
HelpButton.innerFocusWidth = $?Button.innerFocusWidth
|
||||
|
||||
|
||||
#---- InternalFrame ----
|
||||
|
||||
@@ -73,6 +73,7 @@ controlDkShadow = darken($controlShadow,15%)
|
||||
#---- Button ----
|
||||
|
||||
Button.background = #fff
|
||||
Button.focusedBackground = #e3f1fa
|
||||
Button.hoverBackground = darken($Button.background,3%,derived)
|
||||
Button.pressedBackground = darken($Button.background,10%,derived)
|
||||
Button.selectedBackground = darken($Button.background,20%,derived)
|
||||
@@ -84,14 +85,18 @@ Button.disabledBorderColor = $Component.disabledBorderColor
|
||||
Button.focusedBorderColor = $Component.focusedBorderColor
|
||||
Button.hoverBorderColor = $Button.focusedBorderColor
|
||||
|
||||
Button.default.background = #e3f1fa
|
||||
Button.innerFocusWidth = 0
|
||||
|
||||
Button.default.background = $Button.background
|
||||
Button.default.foreground = @foreground
|
||||
Button.default.focusedBackground = $Button.focusedBackground
|
||||
Button.default.hoverBackground = darken($Button.default.background,3%,derived)
|
||||
Button.default.pressedBackground = darken($Button.default.background,10%,derived)
|
||||
Button.default.borderColor = #4F9EE3
|
||||
Button.default.hoverBorderColor = $Button.hoverBorderColor
|
||||
Button.default.focusedBorderColor = $Button.focusedBorderColor
|
||||
Button.default.focusColor = $Component.focusColor
|
||||
Button.default.borderWidth = 2
|
||||
|
||||
Button.toolbar.hoverBackground = darken($Button.background,12%,derived)
|
||||
Button.toolbar.pressedBackground = darken($Button.background,15%,derived)
|
||||
@@ -114,7 +119,7 @@ CheckBox.icon.disabledCheckmarkColor = #ABABAB
|
||||
|
||||
# focused
|
||||
CheckBox.icon.focusedBorderColor = #7B9FC7
|
||||
CheckBox.icon.focusedBackground = #e3f1fa
|
||||
CheckBox.icon.focusedBackground = $Button.focusedBackground
|
||||
|
||||
# hover
|
||||
CheckBox.icon.hoverBorderColor = $CheckBox.icon.focusedBorderColor
|
||||
|
||||
Reference in New Issue
Block a user