Update: Changed colors and theme.conf syntax.

This commit is contained in:
Keyitdev
2024-09-18 00:18:56 +02:00
parent 2bb6702a5d
commit 9048065f6d
5 changed files with 35 additions and 24 deletions
+8 -8
View File
@@ -150,7 +150,7 @@ Column {
background: Rectangle { background: Rectangle {
radius: config.RoundCorners / 2 radius: config.RoundCorners / 2
color: root.palette.window color: root.palette.alternateBase
layer.enabled: true layer.enabled: true
} }
@@ -206,7 +206,7 @@ Column {
height: root.font.pointSize * 3 height: root.font.pointSize * 3
width: parent.width width: parent.width
placeholderText: config.TranslatePlaceholderUsername || textConstants.userName placeholderText: config.TranslatePlaceholderUsername || textConstants.userName
placeholderTextColor: config.PlaceholderColor placeholderTextColor: root.palette.shadow
selectByMouse: true selectByMouse: true
horizontalAlignment: TextInput.AlignHCenter horizontalAlignment: TextInput.AlignHCenter
renderType: Text.QtRendering renderType: Text.QtRendering
@@ -331,7 +331,7 @@ Column {
selectByMouse: true selectByMouse: true
echoMode: showPassword.checked ? TextInput.Normal : TextInput.Password echoMode: showPassword.checked ? TextInput.Normal : TextInput.Password
placeholderText: config.TranslatePlaceholderPassword || textConstants.password placeholderText: config.TranslatePlaceholderPassword || textConstants.password
placeholderTextColor: config.PlaceholderColor placeholderTextColor: root.palette.shadow
horizontalAlignment: TextInput.AlignHCenter horizontalAlignment: TextInput.AlignHCenter
passwordCharacter: "•" passwordCharacter: "•"
passwordMaskDelay: config.HideCompletePassword == "true" ? undefined : 1000 passwordMaskDelay: config.HideCompletePassword == "true" ? undefined : 1000
@@ -392,7 +392,7 @@ Column {
contentItem: Text { contentItem: Text {
text: parent.text text: parent.text
color: config.OverrideLoginButtonTextColor != "" ? config.OverrideLoginButtonTextColor : root.palette.highlight.hslLightness >= 0.7 ? "#444" : "white" color: root.palette.mid
font.pointSize: root.font.pointSize font.pointSize: root.font.pointSize
font.family: root.font.family font.family: root.font.family
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
@@ -413,7 +413,7 @@ Column {
when: loginButton.down when: loginButton.down
PropertyChanges { PropertyChanges {
target: buttonBackground target: buttonBackground
color: Qt.darker(root.palette.highlight, 1.1) color: Qt.darker(root.palette.link, 1.1)
opacity: 1 opacity: 1
} }
PropertyChanges { PropertyChanges {
@@ -425,7 +425,7 @@ Column {
when: loginButton.hovered when: loginButton.hovered
PropertyChanges { PropertyChanges {
target: buttonBackground target: buttonBackground
color: Qt.lighter(root.palette.highlight, 1.15) color: Qt.lighter(root.palette.link, 1.15)
opacity: 1 opacity: 1
} }
PropertyChanges { PropertyChanges {
@@ -438,7 +438,7 @@ Column {
when: loginButton.activeFocus when: loginButton.activeFocus
PropertyChanges { PropertyChanges {
target: buttonBackground target: buttonBackground
color: Qt.lighter(root.palette.highlight, 1.2) color: Qt.lighter(root.palette.link, 1.2)
opacity: 1 opacity: 1
} }
PropertyChanges { PropertyChanges {
@@ -451,7 +451,7 @@ Column {
when: loginButton.enabled when: loginButton.enabled
PropertyChanges { PropertyChanges {
target: buttonBackground; target: buttonBackground;
color: root.palette.highlight; color: root.palette.link;
opacity: 1 opacity: 1
} }
PropertyChanges { PropertyChanges {
+1 -1
View File
@@ -106,7 +106,7 @@ Item {
background: Rectangle { background: Rectangle {
radius: config.RoundCorners / 2 radius: config.RoundCorners / 2
color: config.BackgroundColor color: root.palette.alternateBase
layer.enabled: true layer.enabled: true
} }
+1 -1
View File
@@ -30,7 +30,7 @@ RowLayout {
icon.source: modelData ? Qt.resolvedUrl("../Assets/" + modelData[0] + ".svg") : "" icon.source: modelData ? Qt.resolvedUrl("../Assets/" + modelData[0] + ".svg") : ""
icon.height: 2 * Math.round((root.font.pointSize * 3) / 2) icon.height: 2 * Math.round((root.font.pointSize * 3) / 2)
icon.width: 2 * Math.round((root.font.pointSize * 3) / 2) icon.width: 2 * Math.round((root.font.pointSize * 3) / 2)
icon.color: config.IconColor icon.color: config.SystemButtonsIconColor
display: AbstractButton.TextUnderIcon display: AbstractButton.TextUnderIcon
visible: config.HideSystemButtons != "true" && modelData[2] visible: config.HideSystemButtons != "true" && modelData[2]
hoverEnabled: true hoverEnabled: true
+8 -4
View File
@@ -21,11 +21,15 @@ Pane {
padding: config.ScreenPadding padding: config.ScreenPadding
palette.button: "transparent" palette.button: "transparent"
palette.highlight: config.AccentColor palette.highlight: config.HighlightColor
palette.highlightedText: config.OverrideTextFieldColor !== "" ? config.OverrideTextFieldColor : root.palette.highlight
palette.text: config.MainColor
palette.buttonText: config.MainColor
palette.window: config.BackgroundColor palette.window: config.BackgroundColor
palette.text: config.TextColor
palette.shadow: config.PlaceholderColor
palette.buttonText: root.palette.text
palette.highlightedText: config.HighlightTextColor == "" ? root.palette.highlight : config.HighlightTextColor
palette.link: config.LoginButtonBackgroundColor == "" ? root.palette.highlight : config.LoginButtonBackgroundColor
palette.mid: config.LoginButtonTextColor == "" ? root.palette.text : config.LoginButtonTextColor
palette.alternateBase: config.BackgroundListColor == "" ? root.palette.window : config.BackgroundListColor
font.family: config.Font font.family: config.Font
font.pointSize: config.FontSize !== "" ? config.FontSize : parseInt(height / 80) font.pointSize: config.FontSize !== "" ? config.FontSize : parseInt(height / 80)
+17 -10
View File
@@ -47,18 +47,25 @@ BackgroundVerticalAlignment="center"
#################### Colors #################### #################### Colors ####################
MainColor="#F8F8F2" HighlightColor="#343746"
AccentColor="#343746" # Main color.
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. # Background color.
# Connected with: HaveFormBackground
TextColor="#ffffff"
PlaceholderColor="#bbbbbb" PlaceholderColor="#bbbbbb"
## Placholder text color. Example: username, password. # Placholder text color (username, password).
IconColor="#ffffff" SystemButtonsIconColor="#F8F8F2"
## System icon colors # System icon colors.
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. HighlightTextColor=""
OverrideLoginButtonTextColor="" # Overrides HighlightColor.
## The text of the login button may become difficult to read depending on your color choices. Use this option to set it independently for legibility. LoginButtonTextColor=""
# Overrides TextColor.
LoginButtonBackgroundColor=""
# Overrides HighlightColor.
BackgroundListColor=""
# Overrides BackgroundColor.
#################### Form #################### #################### Form ####################