mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 23:08:42 +03:00
TextField:
- improved hover/pressed/selected colors of leading/trailing buttons (e.g. "reveal" button in password field) (issue #452) - clear button no longer paints over round border (issue #451)
This commit is contained in:
@@ -13,6 +13,10 @@ FlatLaf Change Log
|
|||||||
- PasswordField: Reveal button did not show password if
|
- PasswordField: Reveal button did not show password if
|
||||||
`JPasswordField.setEchoChar()` was invoked from application. (PR #442; issue
|
`JPasswordField.setEchoChar()` was invoked from application. (PR #442; issue
|
||||||
#173)
|
#173)
|
||||||
|
- TextField:
|
||||||
|
- Improved hover/pressed/selected colors of leading/trailing buttons (e.g.
|
||||||
|
"reveal" button in password field). (issue #452)
|
||||||
|
- Clear button no longer paints over round border. (issue #451)
|
||||||
|
|
||||||
|
|
||||||
## 2.0-rc1
|
## 2.0-rc1
|
||||||
|
|||||||
@@ -367,7 +367,6 @@ Tree.hash = lighten($Tree.background,5%)
|
|||||||
focusable: false; \
|
focusable: false; \
|
||||||
toolbar.margin: 1,1,1,1; \
|
toolbar.margin: 1,1,1,1; \
|
||||||
toolbar.spacingInsets: 1,1,1,1; \
|
toolbar.spacingInsets: 1,1,1,1; \
|
||||||
background: $TextField.background; \
|
toolbar.hoverBackground: fade(Actions.GreyInline,30%,lazy); \
|
||||||
toolbar.hoverBackground: lighten($TextField.background,4%,derived); \
|
toolbar.pressedBackground: fade(Actions.GreyInline,40%,lazy); \
|
||||||
toolbar.pressedBackground: lighten($TextField.background,6%,derived); \
|
toolbar.selectedBackground: fade(Actions.GreyInline,50%,lazy)
|
||||||
toolbar.selectedBackground: lighten($TextField.background,12%,derived)
|
|
||||||
|
|||||||
@@ -920,6 +920,5 @@ Tree.icon.openColor = @icon
|
|||||||
focusable: false; \
|
focusable: false; \
|
||||||
toolbar.margin: 1,1,1,1; \
|
toolbar.margin: 1,1,1,1; \
|
||||||
toolbar.spacingInsets: 1,1,1,1; \
|
toolbar.spacingInsets: 1,1,1,1; \
|
||||||
background: $TextField.background; \
|
toolbar.hoverBackground: null; \
|
||||||
toolbar.hoverBackground: $TextField.background; \
|
toolbar.pressedBackground: null
|
||||||
toolbar.pressedBackground: $TextField.background
|
|
||||||
|
|||||||
@@ -374,7 +374,6 @@ Tree.hash = darken($Tree.background,10%)
|
|||||||
focusable: false; \
|
focusable: false; \
|
||||||
toolbar.margin: 1,1,1,1; \
|
toolbar.margin: 1,1,1,1; \
|
||||||
toolbar.spacingInsets: 1,1,1,1; \
|
toolbar.spacingInsets: 1,1,1,1; \
|
||||||
background: $TextField.background; \
|
toolbar.hoverBackground: fade(Actions.GreyInline,10%,lazy); \
|
||||||
toolbar.hoverBackground: darken($TextField.background,4%,derived); \
|
toolbar.pressedBackground: fade(Actions.GreyInline,20%,lazy); \
|
||||||
toolbar.pressedBackground: darken($TextField.background,8%,derived); \
|
toolbar.selectedBackground: fade(Actions.GreyInline,30%,lazy)
|
||||||
toolbar.selectedBackground: darken($TextField.background,12%,derived)
|
|
||||||
|
|||||||
@@ -1424,13 +1424,13 @@ ViewportUI com.formdev.flatlaf.ui.FlatViewportUI
|
|||||||
|
|
||||||
#---- [style]Button ----
|
#---- [style]Button ----
|
||||||
|
|
||||||
[style]Button.clearButton icon: com.formdev.flatlaf.icons.FlatClearIcon; focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; background: $TextField.background; toolbar.hoverBackground: $TextField.background; toolbar.pressedBackground: $TextField.background
|
[style]Button.clearButton icon: com.formdev.flatlaf.icons.FlatClearIcon; focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; toolbar.hoverBackground: null; toolbar.pressedBackground: null
|
||||||
[style]Button.inTextField focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; background: $TextField.background; toolbar.hoverBackground: lighten($TextField.background,4%,derived); toolbar.pressedBackground: lighten($TextField.background,6%,derived); toolbar.selectedBackground: lighten($TextField.background,12%,derived)
|
[style]Button.inTextField focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; toolbar.hoverBackground: fade(Actions.GreyInline,30%,lazy); toolbar.pressedBackground: fade(Actions.GreyInline,40%,lazy); toolbar.selectedBackground: fade(Actions.GreyInline,50%,lazy)
|
||||||
|
|
||||||
|
|
||||||
#---- [style]ToggleButton ----
|
#---- [style]ToggleButton ----
|
||||||
|
|
||||||
[style]ToggleButton.inTextField focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; background: $TextField.background; toolbar.hoverBackground: lighten($TextField.background,4%,derived); toolbar.pressedBackground: lighten($TextField.background,6%,derived); toolbar.selectedBackground: lighten($TextField.background,12%,derived)
|
[style]ToggleButton.inTextField focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; toolbar.hoverBackground: fade(Actions.GreyInline,30%,lazy); toolbar.pressedBackground: fade(Actions.GreyInline,40%,lazy); toolbar.selectedBackground: fade(Actions.GreyInline,50%,lazy)
|
||||||
|
|
||||||
|
|
||||||
#---- [style]ToolBar ----
|
#---- [style]ToolBar ----
|
||||||
|
|||||||
@@ -1429,13 +1429,13 @@ ViewportUI com.formdev.flatlaf.ui.FlatViewportUI
|
|||||||
|
|
||||||
#---- [style]Button ----
|
#---- [style]Button ----
|
||||||
|
|
||||||
[style]Button.clearButton icon: com.formdev.flatlaf.icons.FlatClearIcon; focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; background: $TextField.background; toolbar.hoverBackground: $TextField.background; toolbar.pressedBackground: $TextField.background
|
[style]Button.clearButton icon: com.formdev.flatlaf.icons.FlatClearIcon; focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; toolbar.hoverBackground: null; toolbar.pressedBackground: null
|
||||||
[style]Button.inTextField focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; background: $TextField.background; toolbar.hoverBackground: darken($TextField.background,4%,derived); toolbar.pressedBackground: darken($TextField.background,8%,derived); toolbar.selectedBackground: darken($TextField.background,12%,derived)
|
[style]Button.inTextField focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; toolbar.hoverBackground: fade(Actions.GreyInline,10%,lazy); toolbar.pressedBackground: fade(Actions.GreyInline,20%,lazy); toolbar.selectedBackground: fade(Actions.GreyInline,30%,lazy)
|
||||||
|
|
||||||
|
|
||||||
#---- [style]ToggleButton ----
|
#---- [style]ToggleButton ----
|
||||||
|
|
||||||
[style]ToggleButton.inTextField focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; background: $TextField.background; toolbar.hoverBackground: darken($TextField.background,4%,derived); toolbar.pressedBackground: darken($TextField.background,8%,derived); toolbar.selectedBackground: darken($TextField.background,12%,derived)
|
[style]ToggleButton.inTextField focusable: false; toolbar.margin: 1,1,1,1; toolbar.spacingInsets: 1,1,1,1; toolbar.hoverBackground: fade(Actions.GreyInline,10%,lazy); toolbar.pressedBackground: fade(Actions.GreyInline,20%,lazy); toolbar.selectedBackground: fade(Actions.GreyInline,30%,lazy)
|
||||||
|
|
||||||
|
|
||||||
#---- [style]ToolBar ----
|
#---- [style]ToolBar ----
|
||||||
|
|||||||
Reference in New Issue
Block a user