From 292c87b770ff9eab1903dd2c6ddff466faf87fb0 Mon Sep 17 00:00:00 2001 From: Keyitdev <70140437+Keyitdev@users.noreply.github.com> Date: Mon, 6 Jul 2026 17:45:19 +0200 Subject: [PATCH] Update: Added support for user's full name (GECOS) and removed AllowUppercaseLettersInUsernames option in config, fixed many typos. --- Components/Clock.qml | 2 +- Components/Input.qml | 105 +++++++++++++++++++-------- Components/LoginForm.qml | 4 +- Components/SessionButton.qml | 10 +-- Components/SystemButtons.qml | 8 +- Components/VirtualKeyboard.qml | 2 +- Components/VirtualKeyboardButton.qml | 4 +- Main.qml | 18 ++--- Themes/astronaut.conf | 18 +++-- Themes/black_hole.conf | 18 +++-- Themes/cyberpunk.conf | 18 +++-- Themes/hyprland_kath.conf | 18 +++-- Themes/jake_the_dog.conf | 18 +++-- Themes/japanese_aesthetic.conf | 18 +++-- Themes/pixel_sakura.conf | 18 +++-- Themes/pixel_sakura_static.conf | 18 +++-- Themes/post-apocalyptic_hacker.conf | 18 +++-- Themes/purple_leaves.conf | 18 +++-- metadata.desktop | 4 +- 19 files changed, 201 insertions(+), 136 deletions(-) diff --git a/Components/Clock.qml b/Components/Clock.qml index 55fafe8..bd1c69e 100644 --- a/Components/Clock.qml +++ b/Components/Clock.qml @@ -42,7 +42,7 @@ Column { id: dateLabel anchors.horizontalCenter: parent.horizontalCenter - + color: config.DateTextColor font.pointSize: root.font.pointSize * 2 font.bold: true diff --git a/Components/Input.qml b/Components/Input.qml index a980e1b..28d8c51 100644 --- a/Components/Input.qml +++ b/Components/Input.qml @@ -9,12 +9,37 @@ import QtQuick.Controls 2.15 Column { id: inputContainer - + Layout.fillWidth: true property ComboBox exposeSession: sessionSelect.exposeSession property bool failed + function triggerLogin() { + var typedUser = username.text + var targetUser = typedUser + + if (config.UseRealName == "true") { + for (var i = 0; i < userRegistry.list.length; i++) { + var u = userRegistry.list[i] + if (typedUser === u.realName || typedUser === u.name) { + targetUser = u.name + break + } + } + } else { + for (var j = 0; j < userRegistry.list.length; j++) { + var u2 = userRegistry.list[j] + if (typedUser === u2.name) { + targetUser = u2.name + break + } + } + } + + sddm.login(targetUser, password.text, sessionSelect.selectedSession) + } + Item { id: errorMessageField @@ -28,13 +53,13 @@ Column { width: parent.width horizontalAlignment: Text.AlignHCenter - + text: failed ? config.TranslateLoginFailedWarning || textConstants.loginFailed + "!" : keyboard.capsLock ? config.TranslateCapslockWarning || textConstants.capslockWarning : null font.pointSize: root.font.pointSize * 0.8 font.italic: true color: config.WarningColor opacity: 0 - + states: [ State { name: "fail" @@ -81,10 +106,13 @@ Column { model: userModel currentIndex: model.lastIndex - textRole: "name" + textRole: config.UseRealName == "true" ? "realName" : "name" + valueRole: "name" hoverEnabled: true + displayText: config.UseRealName == "true" ? (currentText ? currentText : currentValue) : currentText + onActivated: { - username.text = currentText + username.text = displayText } property var popkey: config.RightToLeftLayout == "true" ? Qt.Key_Right : Qt.Key_Left @@ -101,18 +129,18 @@ Column { // minus padding width: popupHandler.width - 20 anchors.horizontalCenter: popupHandler.horizontalCenter - + contentItem: Text { verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter - text: model.name + text: config.UseRealName == "true" ? (model.realName || model.name) : model.name font.pointSize: root.font.pointSize * 0.8 - font.capitalization: Font.AllLowercase + font.capitalization: Font.MixedCase font.family: root.font.family color: config.DropdownTextColor } - + background: Rectangle { color: selectUser.highlightedIndex === index ? config.DropdownSelectedBackgroundColor : "transparent" } @@ -120,19 +148,19 @@ Column { indicator: Button { id: usernameIcon - + width: selectUser.height * 1 height: parent.height anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter anchors.leftMargin: selectUser.height * 0 - + icon.height: parent.height * 0.25 icon.width: parent.height * 0.25 enabled: false icon.color: config.UserIconColor icon.source: Qt.resolvedUrl("../Assets/User.svg") - + background: Rectangle { color: "transparent" border.color: "transparent" @@ -156,7 +184,7 @@ Column { contentItem: ListView { implicitHeight: contentHeight + 20 - + clip: true model: selectUser.popup.visible ? selectUser.delegateModel : null currentIndex: selectUser.highlightedIndex @@ -220,15 +248,15 @@ Column { horizontalAlignment: TextInput.AlignHCenter z: 1 - text: config.ForceLastUser == "true" ? selectUser.currentText : null + text: config.ForceLastUser == "true" ? selectUser.displayText : null color: config.LoginFieldTextColor font.bold: true - font.capitalization: config.AllowUppercaseLettersInUsernames == "false" ? Font.AllLowercase : Font.MixedCase + font.capitalization: Font.MixedCase placeholderText: config.TranslatePlaceholderUsername || textConstants.userName placeholderTextColor: config.PlaceholderTextColor selectByMouse: true renderType: Text.QtRendering - + onFocusChanged:{ if(focus) selectAll() @@ -241,8 +269,8 @@ Column { border.width: parent.activeFocus ? 2 : 1 radius: config.RoundCorners || 0 } - - onAccepted: config.AllowUppercaseLettersInUsernames == "false" ? sddm.login(username.text.toLowerCase(), password.text, sessionSelect.selectedSession) : sddm.login(username.text, password.text, sessionSelect.selectedSession) + + onAccepted: triggerLogin() KeyNavigation.down: passwordIcon states: [ @@ -261,24 +289,24 @@ Column { ] } } - + Item { id: passwordField height: root.font.pointSize * 4.5 width: parent.width / 2 anchors.horizontalCenter: parent.horizontalCenter - + Button { id: passwordIcon - + height: parent.height width: selectUser.height * 1 anchors.left: parent.left anchors.leftMargin: selectUser.height * 0 anchors.verticalCenter: parent.verticalCenter z: 2 - + icon.height: parent.height * 0.25 icon.width: parent.height * 0.25 icon.color: config.PasswordIconColor @@ -350,7 +378,7 @@ Column { width: parent.width anchors.centerIn: parent horizontalAlignment: TextInput.AlignHCenter - + font.bold: true color: config.PasswordFieldTextColor focus: config.PasswordFocus == "true" ? true : false @@ -361,7 +389,7 @@ Column { passwordMaskDelay: config.HideCompletePassword == "true" ? undefined : 1000 renderType: Text.QtRendering selectByMouse: true - + background: Rectangle { color: config.PasswordFieldBackgroundColor opacity: 0.2 @@ -369,7 +397,7 @@ Column { border.width: parent.activeFocus ? 2 : 1 radius: config.RoundCorners || 0 } - onAccepted: config.AllowUppercaseLettersInUsernames == "false" ? sddm.login(username.text.toLowerCase(), password.text, sessionSelect.selectedSession) : sddm.login(username.text, password.text, sessionSelect.selectedSession) + onAccepted: triggerLogin() KeyNavigation.down: loginButton } @@ -394,7 +422,7 @@ Column { duration: 150 } } - ] + ] } Item { @@ -407,7 +435,7 @@ Column { anchors.horizontalCenter: parent.horizontalCenter visible: config.HideLoginButton == "true" ? false : true - + Button { id: loginButton @@ -415,7 +443,7 @@ Column { implicitWidth: parent.width anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter - + text: config.TranslateLogin || textConstants.login enabled: config.AllowEmptyPassword == "true" || username.text != "" && password.text != "" ? true : false hoverEnabled: true @@ -502,14 +530,31 @@ Column { } ] - onClicked: config.AllowUppercaseLettersInUsernames == "false" ? sddm.login(username.text.toLowerCase(), password.text, sessionSelect.selectedSession) : sddm.login(username.text, password.text, sessionSelect.selectedSession) + onClicked: triggerLogin() Keys.onReturnPressed: clicked() Keys.onEnterPressed: clicked() - + KeyNavigation.down: config.HideSystemButtons == "true" ? virtualKeyboard : systemButtons.children[0] } } + Item { + id: userRegistry + visible: false + property var list: [] + + Repeater { + model: userModel + Item { + Component.onCompleted: { + var currentList = userRegistry.list + currentList.push({ "name": model.name, "realName": model.realName || "" }) + userRegistry.list = currentList + } + } + } + } + Connections { target: sddm function onLoginSucceeded() {} diff --git a/Components/LoginForm.qml b/Components/LoginForm.qml index 2d79981..7c6f4eb 100644 --- a/Components/LoginForm.qml +++ b/Components/LoginForm.qml @@ -39,10 +39,10 @@ ColumnLayout { Layout.preferredHeight: root.height / 5 Layout.maximumHeight: root.height / 5 Layout.leftMargin: p != "0" ? a == "left" ? -p : a == "right" ? p : 0 : 0 - + exposedSession: input.exposeSession } - + SessionButton { id: sessionSelect diff --git a/Components/SessionButton.qml b/Components/SessionButton.qml index 8c5a1d6..69ce012 100644 --- a/Components/SessionButton.qml +++ b/Components/SessionButton.qml @@ -11,7 +11,7 @@ Item { height: root.font.pointSize width: parent.width / 2 - + property var selectedSession: selectSession.currentIndex property string textConstantSession property int loginButtonWidth @@ -29,7 +29,7 @@ Item { model: sessionModel currentIndex: model.lastIndex textRole: "name" - + Keys.onPressed: function(event) { if ((event.key == Qt.Key_Left || event.key == Qt.Key_Right) && !popup.opened) { popup.open(); @@ -40,7 +40,7 @@ Item { // minus padding width: popupHandler.width - 20 anchors.horizontalCenter: popupHandler.horizontalCenter - + contentItem: Text { verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter @@ -50,7 +50,7 @@ Item { font.family: root.font.family color: config.DropdownTextColor } - + background: Rectangle { color: selectSession.highlightedIndex === index ? config.DropdownSelectedBackgroundColor : "transparent" } @@ -64,7 +64,7 @@ Item { id: displayedItem verticalAlignment: Text.AlignVCenter - + text: (config.TranslateSessionSelection || "Session") + " (" + selectSession.currentText + ")" color: config.SessionButtonTextColor font.pointSize: root.font.pointSize * 0.8 diff --git a/Components/SystemButtons.qml b/Components/SystemButtons.qml index eb7ab2b..5b36670 100644 --- a/Components/SystemButtons.qml +++ b/Components/SystemButtons.qml @@ -20,7 +20,7 @@ RowLayout { Repeater { id: systemButtons - + model: [shutdown, reboot, suspend, hibernate] RoundButton { @@ -37,7 +37,7 @@ RowLayout { display: AbstractButton.TextUnderIcon visible: config.HideSystemButtons != "true" && (config.BypassSystemButtonsChecks == "true" ? 1 : modelData[2]) hoverEnabled: true - + background: Rectangle { height: 2 width: parent.width @@ -51,7 +51,7 @@ RowLayout { index == 0 ? sddm.powerOff() : index == 1 ? sddm.reboot() : index == 2 ? sddm.suspend() : sddm.hibernate() } KeyNavigation.left: index > 0 ? parent.children[index-1] : null - + states: [ State { name: "pressed" @@ -94,4 +94,4 @@ RowLayout { } -} \ No newline at end of file +} diff --git a/Components/VirtualKeyboard.qml b/Components/VirtualKeyboard.qml index 638860c..de3bbdb 100644 --- a/Components/VirtualKeyboard.qml +++ b/Components/VirtualKeyboard.qml @@ -8,7 +8,7 @@ import QtQuick.VirtualKeyboard 2.3 InputPanel { id: virtualKeyboard - + property bool activated: false active: activated && Qt.inputMethod.visible visible: active diff --git a/Components/VirtualKeyboardButton.qml b/Components/VirtualKeyboardButton.qml index 2688831..b54728c 100644 --- a/Components/VirtualKeyboardButton.qml +++ b/Components/VirtualKeyboardButton.qml @@ -15,7 +15,7 @@ Item { visible: virtualKeyboard.status == Loader.Ready && config.HideVirtualKeyboard == "false" checkable: true onClicked: virtualKeyboard.switchState() - + Keys.onReturnPressed: { toggle(); virtualKeyboard.switchState(); @@ -68,4 +68,4 @@ Item { } ] } -} \ No newline at end of file +} diff --git a/Main.qml b/Main.qml index af53482..5b9569f 100644 --- a/Main.qml +++ b/Main.qml @@ -28,7 +28,7 @@ Pane { font.family: config.Font font.pointSize: config.FontSize !== "" ? config.FontSize : parseInt(height / 80) || 13 - + focus: true property bool leftleft: config.HaveFormBackground == "true" && @@ -57,7 +57,7 @@ Pane { height: parent.height width: parent.width anchors.fill: parent - + Rectangle { id: tintLayer @@ -103,7 +103,7 @@ Pane { anchors.horizontalCenter: config.VirtualKeyboardPosition == "center" ? parent.horizontalCenter : undefined; anchors.right: config.VirtualKeyboardPosition == "right" ? parent.right : undefined; z: 1 - + state: "hidden" property bool keyboardActive: item ? item.active : false @@ -179,7 +179,7 @@ Pane { } ] } - + Image { id: backgroundPlaceholderImage @@ -190,10 +190,10 @@ Pane { AnimatedImage { id: backgroundImage - + MediaPlayer { id: player - + videoOutput: videoOutput autoPlay: true playbackRate: config.BackgroundSpeed == "" ? 1.0 : config.BackgroundSpeed @@ -206,7 +206,7 @@ Pane { VideoOutput { id: videoOutput - + fillMode: config.CropBackground == "true" ? VideoOutput.PreserveAspectCrop : VideoOutput.PreserveAspectFit anchors.fill: parent } @@ -267,14 +267,14 @@ Pane { MultiEffect { id: blur - + height: parent.height // width: config.FullBlur == "true" ? parent.width : form.width // anchors.centerIn: config.FullBlur == "true" ? parent : form // This solves problem when FullBlur and HaveFormBackground is set to true but PartialBlur is false and FormPosition isn't center. - width: (config.FullBlur == "true" && config.PartialBlur == "false" && config.FormPosition != "center" ) ? parent.width - formBackground.width : config.FullBlur == "true" ? parent.width : form.width + width: (config.FullBlur == "true" && config.PartialBlur == "false" && config.FormPosition != "center" ) ? parent.width - formBackground.width : config.FullBlur == "true" ? parent.width : form.width anchors.centerIn: config.FullBlur == "true" ? backgroundImage : form source: config.FullBlur == "true" ? backgroundImage : blurMask diff --git a/Themes/astronaut.conf b/Themes/astronaut.conf index 5b2f982..9704542 100644 --- a/Themes/astronaut.conf +++ b/Themes/astronaut.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="Open Sans" FontSize="13" @@ -23,7 +23,7 @@ DateFormat="dddd d MMMM" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -49,7 +49,7 @@ DimBackground="0.0" CropBackground="true" # Default false. # Crop or fit background. -# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment dosn't work when set to true. +# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment doesn't work when set to true. BackgroundHorizontalAlignment="center" # Default: center, Options: left, center, right. # Horizontal position of the background picture. @@ -130,16 +130,18 @@ HideVirtualKeyboard="false" HideSystemButtons="false" HideLoginButton="false" +UseRealName="true" +# If set to true, the user's real name (GECOS) is displayed instead of the account username. Users can log in using either their username or real name. If set to false, users can log in only with their username. +# Warning: If two or more accounts have the same real name, they cannot be distinguished during login. In that case, it is recommended to set this option to `false`. + 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 appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" # Enable login for users without a password. -AllowUppercaseLettersInUsernames="false" -# Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! BypassSystemButtonsChecks="false" # Skips checking if sddm can perform shutdown, restart, suspend or hibernate, always displays all system buttons. RightToLeftLayout="false" @@ -159,4 +161,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/black_hole.conf b/Themes/black_hole.conf index 90dd9a4..f2e3f60 100644 --- a/Themes/black_hole.conf +++ b/Themes/black_hole.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="5" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="ESPACION" FontSize="12" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -49,7 +49,7 @@ DimBackground="0.0" CropBackground="true" # Default false. # Crop or fit background. -# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment dosn't work when set to true. +# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment doesn't work when set to true. BackgroundHorizontalAlignment="center" # Default: center, Options: left, center, right. # Horizontal position of the background picture. @@ -130,16 +130,18 @@ HideVirtualKeyboard="false" HideSystemButtons="false" HideLoginButton="false" +UseRealName="true" +# If set to true, the user's real name (GECOS) is displayed instead of the account username. Users can log in using either their username or real name. If set to false, users can log in only with their username. +# Warning: If two or more accounts have the same real name, they cannot be distinguished during login. In that case, it is recommended to set this option to `false`. + 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 appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" # Enable login for users without a password. -AllowUppercaseLettersInUsernames="false" -# Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! BypassSystemButtonsChecks="false" # Skips checking if sddm can perform shutdown, restart, suspend or hibernate, always displays all system buttons. RightToLeftLayout="false" @@ -159,4 +161,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/cyberpunk.conf b/Themes/cyberpunk.conf index 1a30820..3dc150f 100644 --- a/Themes/cyberpunk.conf +++ b/Themes/cyberpunk.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="0" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="KogniGear" FontSize="12" @@ -23,7 +23,7 @@ DateFormat="M/dd 2077" # Default Locale.LongFormat. HeaderText="Loading ..." -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -49,7 +49,7 @@ DimBackground="0.0" CropBackground="true" # Default false. # Crop or fit background. -# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment dosn't work when set to true. +# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment doesn't work when set to true. BackgroundHorizontalAlignment="center" # Default: center, Options: left, center, right. # Horizontal position of the background picture. @@ -130,16 +130,18 @@ HideVirtualKeyboard="true" HideSystemButtons="true" HideLoginButton="false" +UseRealName="true" +# If set to true, the user's real name (GECOS) is displayed instead of the account username. Users can log in using either their username or real name. If set to false, users can log in only with their username. +# Warning: If two or more accounts have the same real name, they cannot be distinguished during login. In that case, it is recommended to set this option to `false`. + 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 appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" # Enable login for users without a password. -AllowUppercaseLettersInUsernames="true" -# Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! BypassSystemButtonsChecks="false" # Skips checking if sddm can perform shutdown, restart, suspend or hibernate, always displays all system buttons. RightToLeftLayout="false" @@ -159,4 +161,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/hyprland_kath.conf b/Themes/hyprland_kath.conf index edc8e9e..f414163 100644 --- a/Themes/hyprland_kath.conf +++ b/Themes/hyprland_kath.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="pixelon" FontSize="12" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -49,7 +49,7 @@ DimBackground="0.0" CropBackground="true" # Default false. # Crop or fit background. -# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment dosn't work when set to true. +# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment doesn't work when set to true. BackgroundHorizontalAlignment="center" # Default: center, Options: left, center, right. # Horizontal position of the background picture. @@ -130,16 +130,18 @@ HideVirtualKeyboard="false" HideSystemButtons="true" HideLoginButton="false" +UseRealName="true" +# If set to true, the user's real name (GECOS) is displayed instead of the account username. Users can log in using either their username or real name. If set to false, users can log in only with their username. +# Warning: If two or more accounts have the same real name, they cannot be distinguished during login. In that case, it is recommended to set this option to `false`. + 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 appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" # Enable login for users without a password. -AllowUppercaseLettersInUsernames="false" -# Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! BypassSystemButtonsChecks="false" # Skips checking if sddm can perform shutdown, restart, suspend or hibernate, always displays all system buttons. RightToLeftLayout="false" @@ -159,4 +161,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/jake_the_dog.conf b/Themes/jake_the_dog.conf index 3204741..02f47eb 100644 --- a/Themes/jake_the_dog.conf +++ b/Themes/jake_the_dog.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="Thunderman" FontSize="12" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -49,7 +49,7 @@ DimBackground="0.0" CropBackground="true" # Default false. # Crop or fit background. -# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment dosn't work when set to true. +# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment doesn't work when set to true. BackgroundHorizontalAlignment="center" # Default: center, Options: left, center, right. # Horizontal position of the background picture. @@ -130,16 +130,18 @@ HideVirtualKeyboard="false" HideSystemButtons="false" HideLoginButton="false" +UseRealName="true" +# If set to true, the user's real name (GECOS) is displayed instead of the account username. Users can log in using either their username or real name. If set to false, users can log in only with their username. +# Warning: If two or more accounts have the same real name, they cannot be distinguished during login. In that case, it is recommended to set this option to `false`. + 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 appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" # Enable login for users without a password. -AllowUppercaseLettersInUsernames="false" -# Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! BypassSystemButtonsChecks="false" # Skips checking if sddm can perform shutdown, restart, suspend or hibernate, always displays all system buttons. RightToLeftLayout="false" @@ -159,4 +161,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/japanese_aesthetic.conf b/Themes/japanese_aesthetic.conf index 4ef2c56..bb62cdd 100644 --- a/Themes/japanese_aesthetic.conf +++ b/Themes/japanese_aesthetic.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="Electroharmonix" FontSize="12" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -49,7 +49,7 @@ DimBackground="0.0" CropBackground="true" # Default false. # Crop or fit background. -# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment dosn't work when set to true. +# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment doesn't work when set to true. BackgroundHorizontalAlignment="center" # Default: center, Options: left, center, right. # Horizontal position of the background picture. @@ -130,16 +130,18 @@ HideVirtualKeyboard="false" HideSystemButtons="false" HideLoginButton="false" +UseRealName="true" +# If set to true, the user's real name (GECOS) is displayed instead of the account username. Users can log in using either their username or real name. If set to false, users can log in only with their username. +# Warning: If two or more accounts have the same real name, they cannot be distinguished during login. In that case, it is recommended to set this option to `false`. + 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 appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" # Enable login for users without a password. -AllowUppercaseLettersInUsernames="false" -# Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! BypassSystemButtonsChecks="false" # Skips checking if sddm can perform shutdown, restart, suspend or hibernate, always displays all system buttons. RightToLeftLayout="false" @@ -159,4 +161,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/pixel_sakura.conf b/Themes/pixel_sakura.conf index 582f6da..e223221 100644 --- a/Themes/pixel_sakura.conf +++ b/Themes/pixel_sakura.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="arcadeclassic" FontSize="11" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -49,7 +49,7 @@ DimBackground="0.0" CropBackground="true" # Default false. # Crop or fit background. -# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment dosn't work when set to true. +# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment doesn't work when set to true. BackgroundHorizontalAlignment="center" # Default: center, Options: left, center, right. # Horizontal position of the background picture. @@ -130,16 +130,18 @@ HideVirtualKeyboard="true" HideSystemButtons="true" HideLoginButton="true" +UseRealName="true" +# If set to true, the user's real name (GECOS) is displayed instead of the account username. Users can log in using either their username or real name. If set to false, users can log in only with their username. +# Warning: If two or more accounts have the same real name, they cannot be distinguished during login. In that case, it is recommended to set this option to `false`. + 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 appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" # Enable login for users without a password. -AllowUppercaseLettersInUsernames="false" -# Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! BypassSystemButtonsChecks="false" # Skips checking if sddm can perform shutdown, restart, suspend or hibernate, always displays all system buttons. RightToLeftLayout="false" @@ -159,4 +161,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/pixel_sakura_static.conf b/Themes/pixel_sakura_static.conf index 118cbf7..8cc7257 100644 --- a/Themes/pixel_sakura_static.conf +++ b/Themes/pixel_sakura_static.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="arcadeclassic" FontSize="11" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -49,7 +49,7 @@ DimBackground="0.0" CropBackground="true" # Default false. # Crop or fit background. -# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment dosn't work when set to true. +# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment doesn't work when set to true. BackgroundHorizontalAlignment="center" # Default: center, Options: left, center, right. # Horizontal position of the background picture. @@ -130,16 +130,18 @@ HideVirtualKeyboard="true" HideSystemButtons="true" HideLoginButton="true" +UseRealName="true" +# If set to true, the user's real name (GECOS) is displayed instead of the account username. Users can log in using either their username or real name. If set to false, users can log in only with their username. +# Warning: If two or more accounts have the same real name, they cannot be distinguished during login. In that case, it is recommended to set this option to `false`. + 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 appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" # Enable login for users without a password. -AllowUppercaseLettersInUsernames="false" -# Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! BypassSystemButtonsChecks="false" # Skips checking if sddm can perform shutdown, restart, suspend or hibernate, always displays all system buttons. RightToLeftLayout="false" @@ -159,4 +161,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/post-apocalyptic_hacker.conf b/Themes/post-apocalyptic_hacker.conf index 1532898..e86810a 100644 --- a/Themes/post-apocalyptic_hacker.conf +++ b/Themes/post-apocalyptic_hacker.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="Fragile Bombers Attack" FontSize="15" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -49,7 +49,7 @@ DimBackground="0.0" CropBackground="true" # Default false. # Crop or fit background. -# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment dosn't work when set to true. +# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment doesn't work when set to true. BackgroundHorizontalAlignment="center" # Default: center, Options: left, center, right. # Horizontal position of the background picture. @@ -130,16 +130,18 @@ HideVirtualKeyboard="true" HideSystemButtons="true" HideLoginButton="false" +UseRealName="true" +# If set to true, the user's real name (GECOS) is displayed instead of the account username. Users can log in using either their username or real name. If set to false, users can log in only with their username. +# Warning: If two or more accounts have the same real name, they cannot be distinguished during login. In that case, it is recommended to set this option to `false`. + 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 appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" # Enable login for users without a password. -AllowUppercaseLettersInUsernames="false" -# Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! BypassSystemButtonsChecks="false" # Skips checking if sddm can perform shutdown, restart, suspend or hibernate, always displays all system buttons. RightToLeftLayout="false" @@ -159,4 +161,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/Themes/purple_leaves.conf b/Themes/purple_leaves.conf index 8d3c1c2..517c65b 100644 --- a/Themes/purple_leaves.conf +++ b/Themes/purple_leaves.conf @@ -4,7 +4,7 @@ ScreenWidth="1920" ScreenHeight="1080" ScreenPadding="" -# Default 0, Options: from 0 to min(screen width/2,screen height/2). +# Default 0, Options: from 0 to min(screen width/2,screen height/2). Font="Open Sans" FontSize="" @@ -23,7 +23,7 @@ DateFormat="dddd d" # Default Locale.LongFormat. HeaderText="" -# You can put somehting fun. +# You can put something fun. #################### Background #################### @@ -49,7 +49,7 @@ DimBackground="0.0" CropBackground="true" # Default false. # Crop or fit background. -# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment dosn't work when set to true. +# Connected with: BackgroundHorizontalAlignment and BackgroundVerticalAlignment doesn't work when set to true. BackgroundHorizontalAlignment="center" # Default: center, Options: left, center, right. # Horizontal position of the background picture. @@ -130,16 +130,18 @@ HideVirtualKeyboard="false" HideSystemButtons="false" HideLoginButton="false" +UseRealName="true" +# If set to true, the user's real name (GECOS) is displayed instead of the account username. Users can log in using either their username or real name. If set to false, users can log in only with their username. +# Warning: If two or more accounts have the same real name, they cannot be distinguished during login. In that case, it is recommended to set this option to `false`. + 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 appears automatically in the username field. PasswordFocus="true" -# Automaticaly focuses password field. +# Automatically focuses password field. HideCompletePassword="true" # Hides the password while typing. AllowEmptyPassword="false" # Enable login for users without a password. -AllowUppercaseLettersInUsernames="false" -# Do not change this! Uppercase letters are generally not allowed in usernames. This option is only for systems that differ from this standard! BypassSystemButtonsChecks="false" # Skips checking if sddm can perform shutdown, restart, suspend or hibernate, always displays all system buttons. RightToLeftLayout="false" @@ -159,4 +161,4 @@ TranslateReboot="" TranslateShutdown="" TranslateSessionSelection="" TranslateVirtualKeyboardButtonOn="" -TranslateVirtualKeyboardButtonOff="" \ No newline at end of file +TranslateVirtualKeyboardButtonOff="" diff --git a/metadata.desktop b/metadata.desktop index 68f7ca4..9cfd896 100644 --- a/metadata.desktop +++ b/metadata.desktop @@ -5,11 +5,11 @@ Author=keyitdev Website=https://github.com/Keyitdev/sddm-astronaut-theme License=GPL-3.0-or-later Type=sddm-theme -Version=1.3 +Version=1.4 ConfigFile=Themes/astronaut.conf Screenshot=Previews/astronaut.png MainScript=Main.qml TranslationsDirectory=translations Theme-Id=sddm-astronaut-theme Theme-API=2.0 -QtVersion=6 \ No newline at end of file +QtVersion=6