Skip to content

Commit

Permalink
Merge pull request Keyitdev#6 from IronGreninja/fix-AccentColor
Browse files Browse the repository at this point in the history
Add option to change text color of username & password when focused/pressed
  • Loading branch information
Keyitdev authored Jun 6, 2024
2 parents ae6b7a4 + b97e5d9 commit b586367
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Components/Input.qml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Column {
}
PropertyChanges {
target: username
color: root.palette.highlight
color: root.palette.highlightedText
}
}
]
Expand Down Expand Up @@ -367,7 +367,7 @@ Column {
}
PropertyChanges {
target: password
color: root.palette.highlight
color: root.palette.highlightedText
}
}
]
Expand Down Expand Up @@ -506,4 +506,4 @@ Column {
onTriggered: failed = false
running: false
}
}
}
1 change: 1 addition & 0 deletions Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit b586367

Please sign in to comment.