Commit 5ff12392 authored by marianarlt's avatar marianarlt

See Changelog v1.5

parent c79031a2
# Changelog
## [1.5] - 2020-01-30
### Fixed
- The username input now gets selected on focus
### Added
- Option to allow usernames with mixed case lettering. This is highly discouraged!
- Option to allow login without password. Makes the login button always enabled.
### Changed
- The user dropdown select now only shows the username not the real name.
## [1.4] - 2019-11-12
### Fixed
- Username now gets automatically converted to lowercase at login to prevent errors
......
......@@ -67,7 +67,7 @@ Column {
width: parent.width
anchors.horizontalCenter: parent.horizontalCenter
contentItem: Text {
text: model.realName != "" ? model.realName : model.name
text: model.name
font.pointSize: root.font.pointSize * 0.8
font.capitalization: Font.Capitalize
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"
......@@ -176,7 +176,7 @@ Column {
TextField {
id: username
text: config.ForceLastUser == "true" ? selectUser.currentText : null
font.capitalization: Font.Capitalize
font.capitalization: config.AllowBadUsernames == "false" ? Font.Capitalize : Font.MixedCase
anchors.centerIn: parent
height: root.font.pointSize * 3
width: parent.width
......@@ -184,6 +184,10 @@ Column {
selectByMouse: true
horizontalAlignment: TextInput.AlignHCenter
renderType: Text.QtRendering
onFocusChanged:{
if(focus)
selectAll()
}
background: Rectangle {
color: "transparent"
border.color: root.palette.text
......@@ -454,7 +458,7 @@ Column {
text: config.TranslateLogin || textConstants.login
height: root.font.pointSize * 3
implicitWidth: parent.width
enabled: username.text != "" && password.text != "" ? true : false
enabled: config.AllowEmptyPassword == "true" || username.text != "" && password.text != "" ? true : false
hoverEnabled: true
contentItem: Text {
......@@ -536,7 +540,7 @@ Column {
}
]
onClicked: sddm.login(username.text.toLowerCase(), password.text, sessionSelect.selectedSession)
onClicked: config.AllowBadUsernames == "false" ? sddm.login(username.text.toLowerCase(), password.text, sessionSelect.selectedSession) : sddm.login(username.text, password.text, sessionSelect.selectedSession)
Keys.onReturnPressed: clicked()
Keys.onEnterPressed: clicked()
KeyNavigation.down: sessionSelect.exposeSession
......
......@@ -52,7 +52,7 @@ Item {
width: parent.width
anchors.horizontalCenter: parent.horizontalCenter
contentItem: Text {
text: model.realName != "" ? model.realName : model.name
text: model.name
font.pointSize: root.font.pointSize * 0.8
font.capitalization: Font.Capitalize
color: selectUser.highlightedIndex === index ? "white" : root.palette.window.hslLightness >= 0.8 ? root.palette.highlight : "white"
......@@ -194,4 +194,4 @@ Item {
]
}
}
\ No newline at end of file
}
......@@ -5,7 +5,7 @@ Author=Marian Arlt
Copyright=Copyright (C) 2018 Marian Arlt
License=GPL-3.0-or-later
Type=sddm-theme
Version=1.4
Version=1.5
Website=https://framagit.org/MarianArlt/sddm-sugar-candy
Screenshot=Previews/PartialBlur.png
MainScript=Main.qml
......
......@@ -82,7 +82,7 @@ ForceLastUser="true"
## Have the last successfully logged in user appear automatically in the username field.
ForcePasswordFocus="true"
## Give automatic focus to the password field. Together with ForceLastUser this makes for the fastest login experience.
## Give automatic focus to the password field. Together with ForceLastUser this makes for the fastest login experience.
ForceHideCompletePassword="false"
## If you don't like to see any character at all not even while being entered set this to true.
......@@ -93,6 +93,12 @@ ForceHideVirtualKeyboardButton="false"
ForceHideSystemButtons="false"
## Completely disable and hide any power buttons on the greeter.
AllowEmptyPassword="false"
## Enable login for users without a password. This is discouraged. Makes the login button always enabled.
AllowBadUsernames="false"
## Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! Also shows username as is instead of capitalized.
## [Locale Settings]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment