mirror of
https://github.com/Keyitdev/sddm-astronaut-theme.git
synced 2026-09-24 02:22:09 +00:00
fix: Turn username to lowercase
This commit is contained in:
@@ -98,7 +98,7 @@ Column {
|
|||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
text: model.name
|
text: model.name
|
||||||
font.pointSize: root.font.pointSize * 0.8
|
font.pointSize: root.font.pointSize * 0.8
|
||||||
font.capitalization: Font.Capitalize
|
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: 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"
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
@@ -211,7 +211,7 @@ Column {
|
|||||||
id: username
|
id: username
|
||||||
text: config.ForceLastUser == "true" ? selectUser.currentText : null
|
text: config.ForceLastUser == "true" ? selectUser.currentText : null
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.capitalization: config.AllowBadUsernames == "false" ? Font.Capitalize : Font.MixedCase
|
font.capitalization: config.AllowBadUsernames == "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
|
||||||
@@ -506,4 +506,4 @@ Column {
|
|||||||
onTriggered: failed = false
|
onTriggered: failed = false
|
||||||
running: false
|
running: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user