From 6c221709510e9c714637f4fb7dd0301bed8568b5 Mon Sep 17 00:00:00 2001 From: Alek Evans Date: Sat, 14 Dec 2024 10:43:47 -0900 Subject: [PATCH] Fix SDDM Theme for KDE 6 Changed properties for ActionButtons to use up-to-date properties for KDE 6. Tested and verified works on: KDE neon 6.2 --- sddm/Main.qml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/sddm/Main.qml b/sddm/Main.qml index 8ec5cd5..cb5d8f9 100644 --- a/sddm/Main.qml +++ b/sddm/Main.qml @@ -209,30 +209,30 @@ Item { actionItemsVisible: !inputPanel.keyboardActive actionItems: [ ActionButton { - iconSource: "system-suspend" + icon.name: "system-suspend" text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Suspend to RAM", "Sleep") - fontSize: parseInt(config.fontSize) + 1 + font.pointSize: parseInt(config.fontSize) + 1 onClicked: sddm.suspend() enabled: sddm.canSuspend }, ActionButton { - iconSource: "system-reboot" + icon.name: "system-reboot" text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Restart") - fontSize: parseInt(config.fontSize) + 1 + font.pointSize: parseInt(config.fontSize) + 1 onClicked: sddm.reboot() enabled: sddm.canReboot }, ActionButton { - iconSource: "system-shutdown" + icon.name: "system-shutdown" text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Shut Down") - fontSize: parseInt(config.fontSize) + 1 + font.pointSize: parseInt(config.fontSize) + 1 onClicked: sddm.powerOff() enabled: sddm.canPowerOff }, ActionButton { - iconSource: "system-switch-user" + icon.name: "system-switch-user" text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "For switching to a username and password prompt", "Other…") - fontSize: parseInt(config.fontSize) + 1 + font.pointSize: parseInt(config.fontSize) + 1 onClicked: mainStack.push(userPromptComponent) enabled: true visible: !userListComponent.showUsernamePrompt @@ -353,30 +353,30 @@ Item { actionItemsVisible: !inputPanel.keyboardActive actionItems: [ ActionButton { - iconSource: "system-suspend" + icon.name: "system-suspend" text: i18ndc("plasma_lookandfeel_org.kde.lookandfeel", "Suspend to RAM", "Sleep") - fontSize: parseInt(config.fontSize) + 1 + font.pointSize: parseInt(config.fontSize) + 1 onClicked: sddm.suspend() enabled: sddm.canSuspend }, ActionButton { - iconSource: "system-reboot" + icon.name: "system-reboot" text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Restart") - fontSize: parseInt(config.fontSize) + 1 + font.pointSize: parseInt(config.fontSize) + 1 onClicked: sddm.reboot() enabled: sddm.canReboot }, ActionButton { - iconSource: "system-shutdown" + icon.name: "system-shutdown" text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Shut Down") - fontSize: parseInt(config.fontSize) + 1 + font.pointSize: parseInt(config.fontSize) + 1 onClicked: sddm.powerOff() enabled: sddm.canPowerOff }, ActionButton { - iconSource: "system-users" + icon.name: "system-users" text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "List Users") - fontSize: parseInt(config.fontSize) + 1 + font.pointSize: parseInt(config.fontSize) + 1 onClicked: mainStack.pop() } ]