Skip to content

Commit

Permalink
SDDM re-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkXero-dev committed Oct 11, 2024
1 parent ea0ba6b commit b3d03ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PlasmaComponents.ToolButton {
property int currentIndex: keyboard.currentLayout
onCurrentIndexChanged: keyboard.currentLayout = currentIndex

text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Keyboard Layout: %1", keyboard.layouts[currentIndex].longName)
text: i18nd("plasma-desktop-sddm-theme", "Keyboard Layout: %1", keyboard.layouts[currentIndex]?.longName ?? "")
visible: keyboard.layouts.length > 1

checkable: true
Expand Down
8 changes: 4 additions & 4 deletions Configs/System/usr/share/sddm/themes/XeroDark/Login.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SessionManagementScreen {
property int visibleBoundary: mapFromItem(loginButton, 0, 0).y
onHeightChanged: visibleBoundary = mapFromItem(loginButton, 0, 0).y + loginButton.height + Kirigami.Units.smallSpacing

property int fontSize: parseInt(config.fontSize)
property real fontSize: Kirigami.Theme.defaultFont.pointSize

signal loginRequest(string username, string password)

Expand Down Expand Up @@ -82,7 +82,7 @@ SessionManagementScreen {
text: lastUserName
visible: showUsernamePrompt
focus: showUsernamePrompt && !lastUserName //if there's a username prompt it gets focus first, otherwise password does
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Username")
placeholderText: i18nd("plasma-desktop-sddm-theme", "Username")

onAccepted: {
if (root.loginScreenUiVisible) {
Expand All @@ -99,7 +99,7 @@ SessionManagementScreen {
font.pointSize: fontSize + 1
Layout.fillWidth: true

placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Password")
placeholderText: i18nd("plasma-desktop-sddm-theme", "Password")
focus: !showUsernamePrompt || lastUserName

// Disable reveal password action because SDDM does not have the breeze icon set loaded
Expand Down Expand Up @@ -141,7 +141,7 @@ SessionManagementScreen {

PlasmaComponents3.Button {
id: loginButton
Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log In")
Accessible.name: i18nd("plasma-desktop-sddm-theme", "Log In")
Layout.preferredHeight: passwordBox.implicitHeight
Layout.preferredWidth: text.length === 0 ? loginButton.Layout.preferredHeight : -1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PlasmaComponents.ToolButton {

property int currentIndex: -1

text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Desktop Session: %1", instantiator.objectAt(currentIndex).text || "")
text: i18nd("plasma-desktop-sddm-theme", "Desktop Session: %1", instantiator.objectAt(currentIndex).text || "")
visible: menu.count > 1

Component.onCompleted: {
Expand Down

0 comments on commit b3d03ac

Please sign in to comment.