Merge pull request #6 from IronGreninja/fix-AccentColor

Add option to change text color of username & password when focused/pressed
This commit is contained in:
Keyitdev
2024-06-06 23:23:32 +02:00
committed by GitHub
3 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -245,7 +245,7 @@ Column {
} }
PropertyChanges { PropertyChanges {
target: username target: username
color: root.palette.highlight color: root.palette.highlightedText
} }
} }
] ]
@@ -367,7 +367,7 @@ Column {
} }
PropertyChanges { PropertyChanges {
target: password target: password
color: root.palette.highlight color: root.palette.highlightedText
} }
} }
] ]
+1
View File
@@ -21,6 +21,7 @@ Pane {
padding: config.ScreenPadding padding: config.ScreenPadding
palette.button: "transparent" palette.button: "transparent"
palette.highlight: config.AccentColor palette.highlight: config.AccentColor
palette.highlightedText: config.OverrideTextFieldColor !== "" ? config.OverrideTextFieldColor : root.palette.highlight
palette.text: config.MainColor palette.text: config.MainColor
palette.buttonText: config.MainColor palette.buttonText: config.MainColor
palette.window: config.BackgroundColor palette.window: config.BackgroundColor
+3
View File
@@ -47,6 +47,9 @@ MainColor="#F8F8F2"
AccentColor="#343746" AccentColor="#343746"
## Used for elements in focus/hover/pressed. Should be contrasting to the background and the MainColor to achieve the best effect. ## Used for elements in focus/hover/pressed. Should be contrasting to the background and the MainColor to achieve the best effect.
OverrideTextFieldColor=""
## The text color of the username & password when focused/pressed may become difficult to read depending on your color choices. Use this option to set it independently for legibility.
BackgroundColor="#21222C" BackgroundColor="#21222C"
## Used for the user and session selection background as well as for ScreenPadding and FormBackground when either is true. If PartialBlur and FormBackground are both enabled this color will blend with the blur effect. ## Used for the user and session selection background as well as for ScreenPadding and FormBackground when either is true. If PartialBlur and FormBackground are both enabled this color will blend with the blur effect.