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 authored and GitHub committed 2024-06-06 23:23:32 +02:00
commit b586367d67
3 files changed
+7 -3

No files matched your search

+3 -3
View File
@@ -245,7 +245,7 @@ Column {
}
PropertyChanges {
target: username
color: root.palette.highlight
color: root.palette.highlightedText
}
}
]
@@ -367,7 +367,7 @@ Column {
}
PropertyChanges {
target: password
color: root.palette.highlight
color: root.palette.highlightedText
}
}
]
@@ -506,4 +506,4 @@ Column {
onTriggered: failed = false
running: false
}
}
}
+1
View File
@@ -21,6 +21,7 @@ Pane {
padding: config.ScreenPadding
palette.button: "transparent"
palette.highlight: config.AccentColor
palette.highlightedText: config.OverrideTextFieldColor !== "" ? config.OverrideTextFieldColor : root.palette.highlight
palette.text: config.MainColor
palette.buttonText: config.MainColor
palette.window: config.BackgroundColor
+3
View File
@@ -47,6 +47,9 @@ MainColor="#F8F8F2"
AccentColor="#343746"
## 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"
## 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.