diff --git a/0001-sddm-theme-lockscreen-Fix-login-button-size.patch b/0001-sddm-theme-lockscreen-Fix-login-button-size.patch new file mode 100644 index 0000000..6def371 --- /dev/null +++ b/0001-sddm-theme-lockscreen-Fix-login-button-size.patch @@ -0,0 +1,45 @@ +From 2f9129410401c2d734aff1602b37be70cebbb74b Mon Sep 17 00:00:00 2001 +From: Noah Davis +Date: Mon, 14 Sep 2020 10:18:57 -0400 +Subject: [PATCH] [sddm-theme/lockscreen] Fix login button size + +Some users reported this button becoming too small after KF5.74 was released, but I could not reproduce it myself. However, this code did look suspicious. Hopefully this fixes the issue. + +(cherry picked from commit 9a8fc811282e303ec2f93c978228a85961dae263) +--- + lookandfeel/contents/lockscreen/MainBlock.qml | 3 ++- + sddm-theme/Login.qml | 4 ++-- + 2 files changed, 4 insertions(+), 3 deletions(-) + +diff --git a/lookandfeel/contents/lockscreen/MainBlock.qml b/lookandfeel/contents/lockscreen/MainBlock.qml +index 4bd5df0e5..70b43d959 100644 +--- a/lookandfeel/contents/lockscreen/MainBlock.qml ++++ b/lookandfeel/contents/lockscreen/MainBlock.qml +@@ -97,7 +97,8 @@ SessionManagementScreen { + PlasmaComponents.Button { + id: loginButton + Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Unlock") +- implicitHeight: passwordBox.height - units.smallSpacing * 0.5 // otherwise it comes out taller than the password field ++ Layout.preferredHeight: passwordBox.implicitHeight ++ Layout.preferredWidth: loginButton.Layout.preferredHeight + + PlasmaCore.IconItem { // no iconSource because if you take away half a unit (implicitHeight), "go-next" gets cut off + anchors.fill: parent +diff --git a/sddm-theme/Login.qml b/sddm-theme/Login.qml +index 49d6805d8..3daaebf57 100644 +--- a/sddm-theme/Login.qml ++++ b/sddm-theme/Login.qml +@@ -112,8 +112,8 @@ SessionManagementScreen { + PlasmaComponents.Button { + id: loginButton + Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log In") +- implicitHeight: passwordBox.height - units.smallSpacing * 0.5 // otherwise it comes out taller than the password field +- Layout.rightMargin: 1 // prevents it from extending beyond the username field ++ Layout.preferredHeight: passwordBox.implicitHeight ++ Layout.preferredWidth: loginButton.Layout.preferredHeight + + PlasmaCore.IconItem { // no iconSource because if you take away half a unit (implicitHeight), "go-next" gets cut off + anchors.fill: parent +-- +2.25.1 + diff --git a/plasma5-workspace.changes b/plasma5-workspace.changes index 44d327e..95edeb4 100644 --- a/plasma5-workspace.changes +++ b/plasma5-workspace.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Sep 16 20:18:17 UTC 2020 - Fabian Vogt + +- Add patch to fix login button appearance with KF 5.74: + * 0001-sddm-theme-lockscreen-Fix-login-button-size.patch + ------------------------------------------------------------------- Fri Sep 4 10:42:01 UTC 2020 - Hans-Peter Jansen diff --git a/plasma5-workspace.spec b/plasma5-workspace.spec index 5366c81..078ef55 100644 --- a/plasma5-workspace.spec +++ b/plasma5-workspace.spec @@ -50,6 +50,7 @@ Patch503: 0001-Set-GTK_BACKEND-x11-in-a-wayland-session.patch Patch506: 0001-Revert-No-icons-on-the-desktop-by-default.patch # PATCH-FIX-UPSTREAM Patch510: 0001-ksmserver-Use-UpdateLaunchEnvJob-to-sync-SESSION_MAN.patch +Patch511: 0001-sddm-theme-lockscreen-Fix-login-button-size.patch BuildRequires: breeze5-icons BuildRequires: fdupes BuildRequires: kf5-filesystem