Commit 5ff12392 authored by marianarlt's avatar marianarlt

See Changelog v1.5

parent c79031a2
# Changelog # 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 ## [1.4] - 2019-11-12
### Fixed ### Fixed
- Username now gets automatically converted to lowercase at login to prevent errors - Username now gets automatically converted to lowercase at login to prevent errors
......
...@@ -67,7 +67,7 @@ Column { ...@@ -67,7 +67,7 @@ Column {
width: parent.width width: parent.width
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
contentItem: Text { contentItem: Text {
text: model.realName != "" ? model.realName : 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.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" 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 { ...@@ -176,7 +176,7 @@ Column {
TextField { TextField {
id: username id: username
text: config.ForceLastUser == "true" ? selectUser.currentText : null text: config.ForceLastUser == "true" ? selectUser.currentText : null
font.capitalization: Font.Capitalize font.capitalization: config.AllowBadUsernames == "false" ? Font.Capitalize : Font.MixedCase
anchors.centerIn: parent anchors.centerIn: parent
height: root.font.pointSize * 3 height: root.font.pointSize * 3
width: parent.width width: parent.width
...@@ -184,6 +184,10 @@ Column { ...@@ -184,6 +184,10 @@ Column {
selectByMouse: true selectByMouse: true
horizontalAlignment: TextInput.AlignHCenter horizontalAlignment: TextInput.AlignHCenter
renderType: Text.QtRendering renderType: Text.QtRendering
onFocusChanged:{
if(focus)
selectAll()
}
background: Rectangle { background: Rectangle {
color: "transparent" color: "transparent"
border.color: root.palette.text border.color: root.palette.text
...@@ -454,7 +458,7 @@ Column { ...@@ -454,7 +458,7 @@ Column {
text: config.TranslateLogin || textConstants.login text: config.TranslateLogin || textConstants.login
height: root.font.pointSize * 3 height: root.font.pointSize * 3
implicitWidth: parent.width implicitWidth: parent.width
enabled: username.text != "" && password.text != "" ? true : false enabled: config.AllowEmptyPassword == "true" || username.text != "" && password.text != "" ? true : false
hoverEnabled: true hoverEnabled: true
contentItem: Text { contentItem: Text {
...@@ -536,7 +540,7 @@ Column { ...@@ -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.onReturnPressed: clicked()
Keys.onEnterPressed: clicked() Keys.onEnterPressed: clicked()
KeyNavigation.down: sessionSelect.exposeSession KeyNavigation.down: sessionSelect.exposeSession
......
...@@ -52,7 +52,7 @@ Item { ...@@ -52,7 +52,7 @@ Item {
width: parent.width width: parent.width
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
contentItem: Text { contentItem: Text {
text: model.realName != "" ? model.realName : 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.Capitalize
color: selectUser.highlightedIndex === index ? "white" : root.palette.window.hslLightness >= 0.8 ? root.palette.highlight : "white" color: selectUser.highlightedIndex === index ? "white" : root.palette.window.hslLightness >= 0.8 ? root.palette.highlight : "white"
...@@ -194,4 +194,4 @@ Item { ...@@ -194,4 +194,4 @@ Item {
] ]
} }
} }
\ No newline at end of file
...@@ -5,7 +5,7 @@ Author=Marian Arlt ...@@ -5,7 +5,7 @@ Author=Marian Arlt
Copyright=Copyright (C) 2018 Marian Arlt Copyright=Copyright (C) 2018 Marian Arlt
License=GPL-3.0-or-later License=GPL-3.0-or-later
Type=sddm-theme Type=sddm-theme
Version=1.4 Version=1.5
Website=https://framagit.org/MarianArlt/sddm-sugar-candy Website=https://framagit.org/MarianArlt/sddm-sugar-candy
Screenshot=Previews/PartialBlur.png Screenshot=Previews/PartialBlur.png
MainScript=Main.qml MainScript=Main.qml
......
...@@ -82,7 +82,7 @@ ForceLastUser="true" ...@@ -82,7 +82,7 @@ ForceLastUser="true"
## Have the last successfully logged in user appear automatically in the username field. ## Have the last successfully logged in user appear automatically in the username field.
ForcePasswordFocus="true" 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" ForceHideCompletePassword="false"
## If you don't like to see any character at all not even while being entered set this to true. ## 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" ...@@ -93,6 +93,12 @@ ForceHideVirtualKeyboardButton="false"
ForceHideSystemButtons="false" ForceHideSystemButtons="false"
## Completely disable and hide any power buttons on the greeter. ## 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] ## [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