1 |
commit: b646d3586e628508cb3df0c28369081bdc410eab |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 16 19:24:54 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 17 20:14:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b646d358 |
7 |
|
8 |
kde-plasma/plasma-workspace: Fix login button size |
9 |
|
10 |
See also: |
11 |
https://mail.kde.org/pipermail/distributions/2020-September/000853.html |
12 |
|
13 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
...plasma-workspace-5.19.5-login-button-size.patch | 36 ++++++++++++++++++++++ |
17 |
....5.ebuild => plasma-workspace-5.19.5-r1.ebuild} | 1 + |
18 |
2 files changed, 37 insertions(+) |
19 |
|
20 |
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.5-login-button-size.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.5-login-button-size.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..aa30a4d2cf2 |
23 |
--- /dev/null |
24 |
+++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.19.5-login-button-size.patch |
25 |
@@ -0,0 +1,36 @@ |
26 |
+From 9a8fc811282e303ec2f93c978228a85961dae263 Mon Sep 17 00:00:00 2001 |
27 |
+From: Noah Davis <noahadvs@×××××.com> |
28 |
+Date: Mon, 14 Sep 2020 10:18:57 -0400 |
29 |
+Subject: [PATCH] [sddm-theme/lockscreen] Fix login button size |
30 |
+ |
31 |
+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. |
32 |
+--- |
33 |
+ lookandfeel/contents/lockscreen/MainBlock.qml | 4 ++-- |
34 |
+ sddm-theme/Login.qml | 5 ++--- |
35 |
+ 2 files changed, 4 insertions(+), 5 deletions(-) |
36 |
+ |
37 |
+--- a/lookandfeel/contents/lockscreen/MainBlock.qml |
38 |
++++ b/lookandfeel/contents/lockscreen/MainBlock.qml |
39 |
+@@ -97,7 +97,8 @@ |
40 |
+ PlasmaComponents.Button { |
41 |
+ id: loginButton |
42 |
+ Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Unlock") |
43 |
+- implicitHeight: passwordBox.height - units.smallSpacing * 0.5 // otherwise it comes out taller than the password field |
44 |
++ Layout.preferredHeight: passwordBox.implicitHeight |
45 |
++ Layout.preferredWidth: loginButton.Layout.preferredHeight |
46 |
+ |
47 |
+ PlasmaCore.IconItem { // no iconSource because if you take away half a unit (implicitHeight), "go-next" gets cut off |
48 |
+ anchors.fill: parent |
49 |
+--- a/sddm-theme/Login.qml |
50 |
++++ b/sddm-theme/Login.qml |
51 |
+@@ -112,8 +112,8 @@ |
52 |
+ PlasmaComponents.Button { |
53 |
+ id: loginButton |
54 |
+ Accessible.name: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Log In") |
55 |
+- implicitHeight: passwordBox.height - units.smallSpacing * 0.5 // otherwise it comes out taller than the password field |
56 |
+- Layout.rightMargin: 1 // prevents it from extending beyond the username field |
57 |
++ Layout.preferredHeight: passwordBox.implicitHeight |
58 |
++ Layout.preferredWidth: loginButton.Layout.preferredHeight |
59 |
+ |
60 |
+ PlasmaCore.IconItem { // no iconSource because if you take away half a unit (implicitHeight), "go-next" gets cut off |
61 |
+ anchors.fill: parent |
62 |
|
63 |
diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.19.5.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-5.19.5-r1.ebuild |
64 |
similarity index 99% |
65 |
rename from kde-plasma/plasma-workspace/plasma-workspace-5.19.5.ebuild |
66 |
rename to kde-plasma/plasma-workspace/plasma-workspace-5.19.5-r1.ebuild |
67 |
index 049c17d6cda..232540bdbe8 100644 |
68 |
--- a/kde-plasma/plasma-workspace/plasma-workspace-5.19.5.ebuild |
69 |
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.19.5-r1.ebuild |
70 |
@@ -127,6 +127,7 @@ PATCHES=( |
71 |
"${FILESDIR}/${PN}-5.14.2-split-libkworkspace.patch" |
72 |
"${FILESDIR}/${PN}-5.19.2-use-PlasmaExtras.PlaceholderMessage.patch" # KDE-Bug #422684 |
73 |
"${FILESDIR}/${P}-gpsd-3.21.patch" # bug 742392 |
74 |
+ "${FILESDIR}/${P}-login-button-size.patch" |
75 |
) |
76 |
|
77 |
RESTRICT+=" test" |