mirror of
https://github.com/Keyitdev/sddm-astronaut-theme.git
synced 2026-09-24 02:22:09 +00:00
Major Update: Changed syntax of colors.
This commit is contained in:
@@ -14,7 +14,7 @@ Column {
|
|||||||
Label {
|
Label {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
font.pointSize: config.HeaderText !=="" ? root.font.pointSize * 3 : 0
|
font.pointSize: config.HeaderText !=="" ? root.font.pointSize * 3 : 0
|
||||||
color: root.palette.text
|
color: config.HeaderTextColor
|
||||||
renderType: Text.QtRendering
|
renderType: Text.QtRendering
|
||||||
text: config.HeaderText
|
text: config.HeaderText
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,7 @@ Column {
|
|||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
font.pointSize: root.font.pointSize * 9
|
font.pointSize: root.font.pointSize * 9
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: root.palette.text
|
color: config.DateTextColor
|
||||||
renderType: Text.QtRendering
|
renderType: Text.QtRendering
|
||||||
function updateTime() {
|
function updateTime() {
|
||||||
text = new Date().toLocaleTimeString(Qt.locale(config.Locale), config.HourFormat == "long" ? Locale.LongFormat : config.HourFormat !== "" ? config.HourFormat : Locale.ShortFormat)
|
text = new Date().toLocaleTimeString(Qt.locale(config.Locale), config.HourFormat == "long" ? Locale.LongFormat : config.HourFormat !== "" ? config.HourFormat : Locale.ShortFormat)
|
||||||
@@ -34,7 +34,7 @@ Column {
|
|||||||
Label {
|
Label {
|
||||||
id: dateLabel
|
id: dateLabel
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
color: root.palette.text
|
color: config.TimeTextColor
|
||||||
font.pointSize: root.font.pointSize * 2
|
font.pointSize: root.font.pointSize * 2
|
||||||
font.bold: true
|
font.bold: true
|
||||||
renderType: Text.QtRendering
|
renderType: Text.QtRendering
|
||||||
|
|||||||
+29
-27
@@ -26,7 +26,7 @@ Column {
|
|||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font.pointSize: root.font.pointSize * 0.8
|
font.pointSize: root.font.pointSize * 0.8
|
||||||
font.italic: true
|
font.italic: true
|
||||||
color: root.palette.text
|
color: config.WarningColor
|
||||||
opacity: 0
|
opacity: 0
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
@@ -98,13 +98,13 @@ Column {
|
|||||||
text: model.name
|
text: model.name
|
||||||
font.pointSize: root.font.pointSize * 0.8
|
font.pointSize: root.font.pointSize * 0.8
|
||||||
font.capitalization: Font.AllLowercase
|
font.capitalization: Font.AllLowercase
|
||||||
color: selectUser.highlightedIndex === index ? root.palette.highlight.hslLightness >= 0.7 ? "#444" : "white" : root.palette.window.hslLightness >= 0.8 ? root.palette.highlight.hslLightness >= 0.8 ? "#444" : root.palette.highlight : "white"
|
color: config.DropdownTextColor
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
}
|
}
|
||||||
highlighted: parent.highlightedIndex === index
|
highlighted: parent.highlightedIndex === index
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: selectUser.highlightedIndex === index ? root.palette.highlight : "transparent"
|
color: selectUser.highlightedIndex === index ? config.DropdownSelectedBackgroundColor : "transparent"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ Column {
|
|||||||
icon.height: parent.height * 0.25
|
icon.height: parent.height * 0.25
|
||||||
icon.width: parent.height * 0.25
|
icon.width: parent.height * 0.25
|
||||||
enabled: false
|
enabled: false
|
||||||
icon.color: root.palette.text
|
icon.color: config.UserIconColor
|
||||||
icon.source: Qt.resolvedUrl("../Assets/User.svg")
|
icon.source: Qt.resolvedUrl("../Assets/User.svg")
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
@@ -150,7 +150,7 @@ Column {
|
|||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
radius: config.RoundCorners / 2
|
radius: config.RoundCorners / 2
|
||||||
color: root.palette.alternateBase
|
color: config.DropdownBackgroundColor
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,7 +165,7 @@ Column {
|
|||||||
when: selectUser.down
|
when: selectUser.down
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: usernameIcon
|
target: usernameIcon
|
||||||
icon.color: Qt.lighter(root.palette.highlight, 1.1)
|
icon.color: Qt.lighter(config.HoverUserIconColor, 1.1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -173,7 +173,7 @@ Column {
|
|||||||
when: selectUser.hovered
|
when: selectUser.hovered
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: usernameIcon
|
target: usernameIcon
|
||||||
icon.color: Qt.lighter(root.palette.highlight, 1.2)
|
icon.color: Qt.lighter(config.HoverUserIconColor, 1.2)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -181,7 +181,7 @@ Column {
|
|||||||
when: selectUser.activeFocus
|
when: selectUser.activeFocus
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: usernameIcon
|
target: usernameIcon
|
||||||
icon.color: root.palette.highlight
|
icon.color: config.HoverUserIconColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -200,13 +200,14 @@ Column {
|
|||||||
TextField {
|
TextField {
|
||||||
id: username
|
id: username
|
||||||
text: config.ForceLastUser == "true" ? selectUser.currentText : null
|
text: config.ForceLastUser == "true" ? selectUser.currentText : null
|
||||||
|
color: config.LoginFieldTextColor
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.capitalization: config.AllowUppercaseLettersInUsernames == "false" ? Font.AllLowercase : Font.MixedCase
|
font.capitalization: config.AllowUppercaseLettersInUsernames == "false" ? Font.AllLowercase : Font.MixedCase
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
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: root.palette.shadow
|
placeholderTextColor: config.PlacholderTextColor
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
horizontalAlignment: TextInput.AlignHCenter
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
renderType: Text.QtRendering
|
renderType: Text.QtRendering
|
||||||
@@ -215,7 +216,7 @@ Column {
|
|||||||
selectAll()
|
selectAll()
|
||||||
}
|
}
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: "#222222"
|
color: config.LoginFieldBackgroundColor
|
||||||
opacity: 0.2
|
opacity: 0.2
|
||||||
border.color: "transparent"
|
border.color: "transparent"
|
||||||
border.width: parent.activeFocus ? 2 : 1
|
border.width: parent.activeFocus ? 2 : 1
|
||||||
@@ -231,11 +232,11 @@ Column {
|
|||||||
when: username.activeFocus
|
when: username.activeFocus
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: username.background
|
target: username.background
|
||||||
border.color: root.palette.highlight
|
border.color: config.HighlightBorderColor
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: username
|
target: username
|
||||||
color: root.palette.highlightedText
|
color: Qt.lighter(config.LoginFieldTextColor, 1.15)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -259,7 +260,7 @@ Column {
|
|||||||
anchors.leftMargin: selectUser.height * 0
|
anchors.leftMargin: selectUser.height * 0
|
||||||
icon.height: parent.height * 0.25
|
icon.height: parent.height * 0.25
|
||||||
icon.width: parent.height * 0.25
|
icon.width: parent.height * 0.25
|
||||||
icon.color: root.palette.text
|
icon.color: config.PasswordIconColor
|
||||||
icon.source: Qt.resolvedUrl("../Assets/Password2.svg")
|
icon.source: Qt.resolvedUrl("../Assets/Password2.svg")
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
@@ -274,7 +275,7 @@ Column {
|
|||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: showPassword
|
target: showPassword
|
||||||
icon.source: Qt.resolvedUrl("../Assets/Password.svg")
|
icon.source: Qt.resolvedUrl("../Assets/Password.svg")
|
||||||
icon.color: root.palette.highlight
|
icon.color: config.HoverPasswordIconColor
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -283,7 +284,7 @@ Column {
|
|||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: showPassword
|
target: showPassword
|
||||||
icon.source: Qt.resolvedUrl("../Assets/Password.svg")
|
icon.source: Qt.resolvedUrl("../Assets/Password.svg")
|
||||||
icon.color: root.palette.highlight
|
icon.color: config.HoverPasswordIconColor
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -300,7 +301,7 @@ Column {
|
|||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: showPassword
|
target: showPassword
|
||||||
icon.source: Qt.resolvedUrl("../Assets/Password2.svg")
|
icon.source: Qt.resolvedUrl("../Assets/Password2.svg")
|
||||||
icon.color: root.palette.highlight
|
icon.color: config.HoverPasswordIconColor
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -309,7 +310,7 @@ Column {
|
|||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: showPassword
|
target: showPassword
|
||||||
icon.source: Qt.resolvedUrl("../Assets/Password2.svg")
|
icon.source: Qt.resolvedUrl("../Assets/Password2.svg")
|
||||||
icon.color: root.palette.highlight
|
icon.color: config.HoverPasswordIconColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -324,6 +325,7 @@ Column {
|
|||||||
TextField {
|
TextField {
|
||||||
id: password
|
id: password
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
color: config.PasswordFieldTextColor
|
||||||
height: root.font.pointSize * 3
|
height: root.font.pointSize * 3
|
||||||
width: parent.width
|
width: parent.width
|
||||||
font.bold: true
|
font.bold: true
|
||||||
@@ -331,13 +333,13 @@ 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: root.palette.shadow
|
placeholderTextColor: config.PlacholderTextColor
|
||||||
horizontalAlignment: TextInput.AlignHCenter
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
passwordCharacter: "•"
|
passwordCharacter: "•"
|
||||||
passwordMaskDelay: config.HideCompletePassword == "true" ? undefined : 1000
|
passwordMaskDelay: config.HideCompletePassword == "true" ? undefined : 1000
|
||||||
renderType: Text.QtRendering
|
renderType: Text.QtRendering
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: "#222222"
|
color: config.PasswordFieldBackgroundColor
|
||||||
opacity: 0.2
|
opacity: 0.2
|
||||||
border.color: "transparent"
|
border.color: "transparent"
|
||||||
border.width: parent.activeFocus ? 2 : 1
|
border.width: parent.activeFocus ? 2 : 1
|
||||||
@@ -353,11 +355,11 @@ Column {
|
|||||||
when: password.activeFocus
|
when: password.activeFocus
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: password.background
|
target: password.background
|
||||||
border.color: root.palette.highlight
|
border.color: config.HighlightBorderColor
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: password
|
target: password
|
||||||
color: root.palette.highlightedText
|
color: Qt.lighter(config.LoginFieldTextColor, 1.15)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -393,7 +395,7 @@ Column {
|
|||||||
|
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
text: parent.text
|
text: parent.text
|
||||||
color: root.palette.mid
|
color: config.LoginButtonTextColor
|
||||||
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
|
||||||
@@ -403,7 +405,7 @@ Column {
|
|||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
id: buttonBackground
|
id: buttonBackground
|
||||||
color: "white"
|
color: config.LoginButtonBackgroundColor
|
||||||
opacity: 0.2
|
opacity: 0.2
|
||||||
radius: config.RoundCorners || 0
|
radius: config.RoundCorners || 0
|
||||||
}
|
}
|
||||||
@@ -414,7 +416,7 @@ Column {
|
|||||||
when: loginButton.down
|
when: loginButton.down
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: buttonBackground
|
target: buttonBackground
|
||||||
color: Qt.darker(root.palette.link, 1.1)
|
color: Qt.darker(config.LoginButtonBackgroundColor, 1.1)
|
||||||
opacity: 1
|
opacity: 1
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
@@ -426,7 +428,7 @@ Column {
|
|||||||
when: loginButton.hovered
|
when: loginButton.hovered
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: buttonBackground
|
target: buttonBackground
|
||||||
color: Qt.lighter(root.palette.link, 1.15)
|
color: Qt.lighter(config.LoginButtonBackgroundColor, 1.15)
|
||||||
opacity: 1
|
opacity: 1
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
@@ -439,7 +441,7 @@ Column {
|
|||||||
when: loginButton.activeFocus
|
when: loginButton.activeFocus
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: buttonBackground
|
target: buttonBackground
|
||||||
color: Qt.lighter(root.palette.link, 1.2)
|
color: Qt.lighter(config.LoginButtonBackgroundColor, 1.2)
|
||||||
opacity: 1
|
opacity: 1
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
@@ -452,7 +454,7 @@ Column {
|
|||||||
when: loginButton.enabled
|
when: loginButton.enabled
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: buttonBackground;
|
target: buttonBackground;
|
||||||
color: root.palette.link;
|
color: config.LoginButtonBackgroundColor;
|
||||||
opacity: 1
|
opacity: 1
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
|
|||||||
@@ -51,13 +51,13 @@ Item {
|
|||||||
text: model.name
|
text: model.name
|
||||||
font.pointSize: root.font.pointSize * 0.8
|
font.pointSize: root.font.pointSize * 0.8
|
||||||
font.family: root.font.family
|
font.family: root.font.family
|
||||||
color: selectSession.highlightedIndex === index ? root.palette.highlight.hslLightness >= 0.7 ? "#444444" : "white" : root.palette.window.hslLightness >= 0.8 ? root.palette.highlight.hslLightness >= 0.8 ? "#444444" : root.palette.highlight : "white"
|
color: config.DropdownTextColor
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
}
|
}
|
||||||
highlighted: parent.highlightedIndex === index
|
highlighted: parent.highlightedIndex === index
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: selectSession.highlightedIndex === index ? root.palette.highlight : "transparent"
|
color: selectSession.highlightedIndex === index ? config.DropdownSelectedBackgroundColor : "transparent"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ Item {
|
|||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
id: displayedItem
|
id: displayedItem
|
||||||
text: (config.TranslateSessionSelection || "Session") + " (" + selectSession.currentText + ")"
|
text: (config.TranslateSessionSelection || "Session") + " (" + selectSession.currentText + ")"
|
||||||
color: root.palette.text
|
color: config.SessionButtonTextColor
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
font.pointSize: root.font.pointSize * 0.8
|
font.pointSize: root.font.pointSize * 0.8
|
||||||
font.family: root.font.family
|
font.family: root.font.family
|
||||||
@@ -105,7 +105,7 @@ Item {
|
|||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
radius: config.RoundCorners / 2
|
radius: config.RoundCorners / 2
|
||||||
color: root.palette.alternateBase
|
color: config.DropdownBackgroundColor
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,11 +120,11 @@ Item {
|
|||||||
when: selectSession.down
|
when: selectSession.down
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: displayedItem
|
target: displayedItem
|
||||||
color: Qt.darker(root.palette.toolTipBase, 1.1)
|
color: Qt.darker(config.HoverSessionButtonTextColor, 1.1)
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: selectSession.background
|
target: selectSession.background
|
||||||
border.color: Qt.darker(root.palette.toolTipBase, 1.1)
|
border.color: Qt.darker(config.HoverSessionButtonTextColor, 1.1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -132,11 +132,11 @@ Item {
|
|||||||
when: selectSession.hovered
|
when: selectSession.hovered
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: displayedItem
|
target: displayedItem
|
||||||
color: Qt.lighter(root.palette.toolTipBase, 1.1)
|
color: Qt.lighter(config.HoverSessionButtonTextColor, 1.1)
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: selectSession.background
|
target: selectSession.background
|
||||||
border.color: Qt.lighter(root.palette.toolTipBase, 1.1)
|
border.color: Qt.lighter(config.HoverSessionButtonTextColor, 1.1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -144,11 +144,11 @@ Item {
|
|||||||
when: selectSession.visualFocus
|
when: selectSession.visualFocus
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: displayedItem
|
target: displayedItem
|
||||||
color: root.palette.toolTipBase
|
color: config.HoverSessionButtonTextColor
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: selectSession.background
|
target: selectSession.background
|
||||||
border.color: root.palette.toolTipBase
|
border.color: config.HoverSessionButtonTextColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -30,11 +30,11 @@ 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.SystemButtonsIconColor
|
icon.color: config.SystemButtonsIconsColor
|
||||||
display: AbstractButton.TextUnderIcon
|
display: AbstractButton.TextUnderIcon
|
||||||
visible: config.HideSystemButtons != "true" && modelData[2]
|
visible: config.HideSystemButtons != "true" && modelData[2]
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
palette.buttonText: config.SystemButtonsIconColor
|
palette.buttonText: config.SystemButtonsIconsColor
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
height: 2
|
height: 2
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
@@ -57,13 +57,13 @@ RowLayout {
|
|||||||
when: parent.children[index].down
|
when: parent.children[index].down
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: parent.children[index]
|
target: parent.children[index]
|
||||||
icon.color: root.palette.highlight
|
icon.color: root.palette.buttonText
|
||||||
palette.buttonText: Qt.darker(root.palette.highlight, 1.1)
|
palette.buttonText: Qt.darker(root.palette.buttonText, 1.1)
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: parent.children[index].background
|
target: parent.children[index].background
|
||||||
icon.color: root.palette.highlight
|
icon.color: root.palette.buttonText
|
||||||
border.color: Qt.darker(root.palette.highlight, 1.1)
|
border.color: Qt.darker(root.palette.buttonText, 1.1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -71,13 +71,13 @@ RowLayout {
|
|||||||
when: parent.children[index].hovered
|
when: parent.children[index].hovered
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: parent.children[index]
|
target: parent.children[index]
|
||||||
icon.color: root.palette.highlight
|
icon.color: root.palette.buttonText
|
||||||
palette.buttonText: Qt.lighter(root.palette.highlight, 1.1)
|
palette.buttonText: Qt.lighter(root.palette.buttonText, 1.1)
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: parent.children[index].background
|
target: parent.children[index].background
|
||||||
icon.color: root.palette.highlight
|
icon.color: root.palette.buttonText
|
||||||
border.color: Qt.lighter(root.palette.highlight, 1.1)
|
border.color: Qt.lighter(root.palette.buttonText, 1.1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -85,13 +85,13 @@ RowLayout {
|
|||||||
when: parent.children[index].activeFocus
|
when: parent.children[index].activeFocus
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: parent.children[index]
|
target: parent.children[index]
|
||||||
icon.color: root.palette.highlight
|
icon.color: root.palette.buttonText
|
||||||
palette.buttonText: root.palette.highlight
|
palette.buttonText: root.palette.buttonText
|
||||||
}
|
}
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: parent.children[index].background
|
target: parent.children[index].background
|
||||||
icon.color: root.palette.highlight
|
icon.color: root.palette.buttonText
|
||||||
border.color: root.palette.highlight
|
border.color: root.palette.buttonText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -109,4 +109,4 @@ RowLayout {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -20,17 +20,10 @@ Pane {
|
|||||||
LayoutMirroring.enabled: config.RightToLeftLayout == "true" ? true : Qt.application.layoutDirection === Qt.RightToLeft
|
LayoutMirroring.enabled: config.RightToLeftLayout == "true" ? true : Qt.application.layoutDirection === Qt.RightToLeft
|
||||||
LayoutMirroring.childrenInherit: true
|
LayoutMirroring.childrenInherit: true
|
||||||
|
|
||||||
palette.button: "transparent"
|
|
||||||
palette.highlight: config.HighlightColor
|
|
||||||
palette.window: config.BackgroundColor
|
palette.window: config.BackgroundColor
|
||||||
palette.text: config.TextColor
|
palette.highlight: config.HighlightBackgroundColor
|
||||||
palette.shadow: config.PlaceholderColor
|
palette.highlightedText: config.HighlightTextColor
|
||||||
palette.buttonText: config.TextColor
|
palette.buttonText: config.HoverSystemButtonsIconsColor
|
||||||
palette.highlightedText: config.HighlightTextColor == "" ? config.HighlightColor : config.HighlightTextColor
|
|
||||||
palette.link: config.LoginButtonBackgroundColor == "" ? config.HighlightColor : config.LoginButtonBackgroundColor
|
|
||||||
palette.mid: config.LoginButtonTextColor == "" ? config.TextColor : config.LoginButtonTextColor
|
|
||||||
palette.alternateBase: config.BackgroundListColor == "" ? config.BackgroundColor: config.BackgroundListColor
|
|
||||||
palette.toolTipBase: config.HoverSessionAndVirtualKeyboard == "" ? config.HighlightColor : config.HoverSessionAndVirtualKeyboard
|
|
||||||
|
|
||||||
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)
|
||||||
@@ -62,13 +55,12 @@ Pane {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: tintLayer
|
id: tintLayer
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
color: "black"
|
|
||||||
opacity: config.DimBackground
|
opacity: config.DimBackground
|
||||||
z: 1
|
z: 1
|
||||||
}
|
}
|
||||||
@@ -77,7 +69,7 @@ Pane {
|
|||||||
id: formBackground
|
id: formBackground
|
||||||
anchors.fill: form
|
anchors.fill: form
|
||||||
anchors.centerIn: form
|
anchors.centerIn: form
|
||||||
color: root.palette.window
|
color: config.FormBackgroundColor
|
||||||
visible: config.HaveFormBackground == "true" ? true : false
|
visible: config.HaveFormBackground == "true" ? true : false
|
||||||
opacity: config.PartialBlur == "true" ? 0.3 : 1
|
opacity: config.PartialBlur == "true" ? 0.3 : 1
|
||||||
z: 1
|
z: 1
|
||||||
@@ -85,7 +77,6 @@ Pane {
|
|||||||
|
|
||||||
LoginForm {
|
LoginForm {
|
||||||
id: form
|
id: form
|
||||||
|
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width / 2.5
|
width: parent.width / 2.5
|
||||||
anchors.horizontalCenter: config.FormPosition == "center" ? parent.horizontalCenter : undefined
|
anchors.horizontalCenter: config.FormPosition == "center" ? parent.horizontalCenter : undefined
|
||||||
@@ -121,7 +112,7 @@ Pane {
|
|||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
id: buttonVirtualKeyboard
|
id: buttonVirtualKeyboard
|
||||||
text: config.TranslateVirtualKeyboardButtonOff || "Virtual Keyboard (off)"
|
text: config.TranslateVirtualKeyboardButtonOff || "Virtual Keyboard (off)"
|
||||||
color: parent.visualFocus ? palette.highlight : palette.text
|
color: parent.visualFocus ? config.HoverVirtualKeyboardButtonTextColor : config.VirtualKeyboardButtonTextColor
|
||||||
font.pointSize: root.font.pointSize * 0.8
|
font.pointSize: root.font.pointSize * 0.8
|
||||||
}
|
}
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
@@ -135,7 +126,7 @@ Pane {
|
|||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: buttonVirtualKeyboard
|
target: buttonVirtualKeyboard
|
||||||
text: config.TranslateVirtualKeyboardButtonOn || "Virtual Keyboard (on)"
|
text: config.TranslateVirtualKeyboardButtonOn || "Virtual Keyboard (on)"
|
||||||
color: root.palette.toolTipBase
|
color: config.HoverVirtualKeyboardButtonTextColor
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@@ -152,7 +143,7 @@ Pane {
|
|||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: buttonVirtualKeyboard
|
target: buttonVirtualKeyboard
|
||||||
text: config.TranslateVirtualKeyboardButtonOff || "Virtual Keyboard (off)"
|
text: config.TranslateVirtualKeyboardButtonOff || "Virtual Keyboard (off)"
|
||||||
color: root.palette.toolTipBase
|
color: config.HoverVirtualKeyboardButtonTextColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
+36
-21
@@ -46,27 +46,42 @@ BackgroundVerticalAlignment="center"
|
|||||||
|
|
||||||
#################### Colors ####################
|
#################### Colors ####################
|
||||||
|
|
||||||
HighlightColor="#343746"
|
HeaderTextColor="#ffffff"
|
||||||
# Main color.
|
DateTextColor="#ffffff"
|
||||||
BackgroundColor="#21222C"
|
TimeTextColor="#ffffff"
|
||||||
# Background color.
|
|
||||||
# Connected with: HaveFormBackground
|
|
||||||
TextColor="#ffffff"
|
|
||||||
PlaceholderColor="#bbbbbb"
|
|
||||||
# Placholder text color (username, password).
|
|
||||||
SystemButtonsIconColor="#F8F8F2"
|
|
||||||
# System icon colors.
|
|
||||||
|
|
||||||
HighlightTextColor="#b7cef1"
|
FormBackgroundColor="#21222C"
|
||||||
# Overrides HighlightColor.
|
BackgroundColor="#21222C"
|
||||||
LoginButtonTextColor=""
|
|
||||||
# Overrides TextColor.
|
LoginFieldBackgroundColor="#222222"
|
||||||
LoginButtonBackgroundColor=""
|
PasswordFieldBackgroundColor="#222222"
|
||||||
# Overrides HighlightColor.
|
LoginFieldTextColor="#ffffff"
|
||||||
BackgroundListColor=""
|
PasswordFieldTextColor="#ffffff"
|
||||||
# Overrides BackgroundColor.
|
UserIconColor="#ffffff"
|
||||||
HoverSessionAndVirtualKeyboard="#b7cef1"
|
PasswordIconColor="#ffffff"
|
||||||
# Overrides HighlightColor.
|
|
||||||
|
PlacholderTextColor="#bbbbbb"
|
||||||
|
WarningColor="#343746"
|
||||||
|
|
||||||
|
LoginButtonTextColor="#ffffff"
|
||||||
|
LoginButtonBackgroundColor="#343746"
|
||||||
|
SystemButtonsIconsColor="#F8F8F2"
|
||||||
|
SessionButtonTextColor="#F8F8F2"
|
||||||
|
VirtualKeyboardButtonTextColor="#F8F8F2"
|
||||||
|
|
||||||
|
DropdownTextColor="#ffffff"
|
||||||
|
DropdownSelectedBackgroundColor="#343746"
|
||||||
|
DropdownBackgroundColor="#21222C"
|
||||||
|
|
||||||
|
HighlightTextColor="#bbbbbb"
|
||||||
|
HighlightBackgroundColor="#343746"
|
||||||
|
HighlightBorderColor="#343746"
|
||||||
|
|
||||||
|
HoverUserIconColor="#b7cef1"
|
||||||
|
HoverPasswordIconColor="#b7cef1"
|
||||||
|
HoverSystemButtonsIconsColor="#b7cef1"
|
||||||
|
HoverSessionButtonTextColor="#b7cef1"
|
||||||
|
HoverVirtualKeyboardButtonTextColor="#b7cef1"
|
||||||
|
|
||||||
#################### Form ####################
|
#################### Form ####################
|
||||||
|
|
||||||
@@ -97,7 +112,7 @@ VirtualKeyboardPosition="center"
|
|||||||
|
|
||||||
HideVirtualKeyboard="false"
|
HideVirtualKeyboard="false"
|
||||||
HideSystemButtons="false"
|
HideSystemButtons="false"
|
||||||
HideLoginButton="true"
|
HideLoginButton="false"
|
||||||
|
|
||||||
ForceLastUser="true"
|
ForceLastUser="true"
|
||||||
# If set to true last successfully logged in user appeares automatically in the username field.
|
# If set to true last successfully logged in user appeares automatically in the username field.
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ Author=keyitdev
|
|||||||
Website=https://github.com/Keyitdev/sddm-astronaut-theme
|
Website=https://github.com/Keyitdev/sddm-astronaut-theme
|
||||||
License=GPL-3.0-or-later
|
License=GPL-3.0-or-later
|
||||||
Type=sddm-theme
|
Type=sddm-theme
|
||||||
Version=1.1
|
Version=1.2
|
||||||
ConfigFile=Themes/theme1.conf
|
ConfigFile=Themes/theme1.conf
|
||||||
Screenshot=Previews/preview1.png
|
Screenshot=Previews/preview1.png
|
||||||
MainScript=Main.qml
|
MainScript=Main.qml
|
||||||
|
|||||||
Reference in New Issue
Block a user