1 |
commit: 234192ae8404034c30f4d88632d85190ee8776d2 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 9 15:29:24 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 9 16:03:03 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=234192ae |
7 |
|
8 |
kde-frameworks/plasma: PC3 toggle controls: fix blurry buttons |
9 |
|
10 |
Upstream commit bd1ba6e539a326585a24fc21d0e27ef2c59e8731 |
11 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=447977 |
12 |
|
13 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
.../files/plasma-5.92.0-fix-blurry-buttons.patch | 110 +++++++++++++++++++++ |
17 |
kde-frameworks/plasma/plasma-5.92.0-r2.ebuild | 78 +++++++++++++++ |
18 |
2 files changed, 188 insertions(+) |
19 |
|
20 |
diff --git a/kde-frameworks/plasma/files/plasma-5.92.0-fix-blurry-buttons.patch b/kde-frameworks/plasma/files/plasma-5.92.0-fix-blurry-buttons.patch |
21 |
new file mode 100644 |
22 |
index 000000000000..0286039ddb7b |
23 |
--- /dev/null |
24 |
+++ b/kde-frameworks/plasma/files/plasma-5.92.0-fix-blurry-buttons.patch |
25 |
@@ -0,0 +1,110 @@ |
26 |
+From bd1ba6e539a326585a24fc21d0e27ef2c59e8731 Mon Sep 17 00:00:00 2001 |
27 |
+From: Noah Davis <noahadvs@×××××.com> |
28 |
+Date: Wed, 6 Apr 2022 15:08:53 -0400 |
29 |
+Subject: [PATCH] PC3 toggle controls: fix odd heights misaligning indicators |
30 |
+ |
31 |
+BUG: 447977 |
32 |
+--- |
33 |
+ src/declarativeimports/plasmacomponents3/CheckBox.qml | 2 +- |
34 |
+ src/declarativeimports/plasmacomponents3/CheckDelegate.qml | 2 +- |
35 |
+ src/declarativeimports/plasmacomponents3/MenuItem.qml | 2 +- |
36 |
+ src/declarativeimports/plasmacomponents3/RadioButton.qml | 2 +- |
37 |
+ src/declarativeimports/plasmacomponents3/RadioDelegate.qml | 2 +- |
38 |
+ src/declarativeimports/plasmacomponents3/Switch.qml | 2 +- |
39 |
+ src/declarativeimports/plasmacomponents3/SwitchDelegate.qml | 2 +- |
40 |
+ 7 files changed, 7 insertions(+), 7 deletions(-) |
41 |
+ |
42 |
+diff --git a/src/declarativeimports/plasmacomponents3/CheckBox.qml b/src/declarativeimports/plasmacomponents3/CheckBox.qml |
43 |
+index 1da39da24..fed972566 100644 |
44 |
+--- a/src/declarativeimports/plasmacomponents3/CheckBox.qml |
45 |
++++ b/src/declarativeimports/plasmacomponents3/CheckBox.qml |
46 |
+@@ -35,7 +35,7 @@ T.CheckBox { |
47 |
+ |
48 |
+ indicator: CheckIndicator { |
49 |
+ x: !control.mirrored ? control.leftPadding : control.width - width - control.rightPadding |
50 |
+- y: control.topPadding + (control.availableHeight - height) / 2 |
51 |
++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) |
52 |
+ control: control |
53 |
+ } |
54 |
+ |
55 |
+diff --git a/src/declarativeimports/plasmacomponents3/CheckDelegate.qml b/src/declarativeimports/plasmacomponents3/CheckDelegate.qml |
56 |
+index ef965becd..9d241467b 100644 |
57 |
+--- a/src/declarativeimports/plasmacomponents3/CheckDelegate.qml |
58 |
++++ b/src/declarativeimports/plasmacomponents3/CheckDelegate.qml |
59 |
+@@ -47,7 +47,7 @@ T.CheckDelegate { |
60 |
+ |
61 |
+ indicator: CheckIndicator { |
62 |
+ x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding |
63 |
+- y: control.topPadding + (control.availableHeight - height) / 2 |
64 |
++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) |
65 |
+ |
66 |
+ control: control |
67 |
+ } |
68 |
+diff --git a/src/declarativeimports/plasmacomponents3/MenuItem.qml b/src/declarativeimports/plasmacomponents3/MenuItem.qml |
69 |
+index 16f2a5e36..964c5930d 100644 |
70 |
+--- a/src/declarativeimports/plasmacomponents3/MenuItem.qml |
71 |
++++ b/src/declarativeimports/plasmacomponents3/MenuItem.qml |
72 |
+@@ -81,7 +81,7 @@ T.MenuItem { |
73 |
+ |
74 |
+ indicator: Loader { |
75 |
+ x: controlRoot.mirrored ? controlRoot.width - width - controlRoot.rightPadding : controlRoot.leftPadding |
76 |
+- y: controlRoot.topPadding + (controlRoot.availableHeight - height) / 2 |
77 |
++ y: controlRoot.topPadding + Math.round((controlRoot.availableHeight - height) / 2) |
78 |
+ |
79 |
+ visible: controlRoot.checkable |
80 |
+ sourceComponent: controlRoot.autoExclusive ? radioComponent : checkComponent |
81 |
+diff --git a/src/declarativeimports/plasmacomponents3/RadioButton.qml b/src/declarativeimports/plasmacomponents3/RadioButton.qml |
82 |
+index 7eeee3f9b..0b7a19894 100644 |
83 |
+--- a/src/declarativeimports/plasmacomponents3/RadioButton.qml |
84 |
++++ b/src/declarativeimports/plasmacomponents3/RadioButton.qml |
85 |
+@@ -32,7 +32,7 @@ T.RadioButton { |
86 |
+ |
87 |
+ indicator: RadioIndicator { |
88 |
+ x: !control.mirrored ? control.leftPadding : control.width - width - control.rightPadding |
89 |
+- y: control.topPadding + (control.availableHeight - height) / 2 |
90 |
++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) |
91 |
+ control: control |
92 |
+ } |
93 |
+ |
94 |
+diff --git a/src/declarativeimports/plasmacomponents3/RadioDelegate.qml b/src/declarativeimports/plasmacomponents3/RadioDelegate.qml |
95 |
+index e25f28cc3..a915a4eac 100644 |
96 |
+--- a/src/declarativeimports/plasmacomponents3/RadioDelegate.qml |
97 |
++++ b/src/declarativeimports/plasmacomponents3/RadioDelegate.qml |
98 |
+@@ -47,7 +47,7 @@ T.RadioDelegate { |
99 |
+ |
100 |
+ indicator: RadioIndicator { |
101 |
+ x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding |
102 |
+- y: control.topPadding + (control.availableHeight - height) / 2 |
103 |
++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) |
104 |
+ |
105 |
+ control: control |
106 |
+ } |
107 |
+diff --git a/src/declarativeimports/plasmacomponents3/Switch.qml b/src/declarativeimports/plasmacomponents3/Switch.qml |
108 |
+index 32ef1274b..98de41388 100644 |
109 |
+--- a/src/declarativeimports/plasmacomponents3/Switch.qml |
110 |
++++ b/src/declarativeimports/plasmacomponents3/Switch.qml |
111 |
+@@ -32,7 +32,7 @@ T.Switch { |
112 |
+ |
113 |
+ indicator: SwitchIndicator { |
114 |
+ x: !control.mirrored ? control.leftPadding : control.width - width - control.rightPadding |
115 |
+- y: control.topPadding + (control.availableHeight - height) / 2 |
116 |
++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) |
117 |
+ control: control |
118 |
+ } |
119 |
+ |
120 |
+diff --git a/src/declarativeimports/plasmacomponents3/SwitchDelegate.qml b/src/declarativeimports/plasmacomponents3/SwitchDelegate.qml |
121 |
+index e6adf9a6e..0f3db70de 100644 |
122 |
+--- a/src/declarativeimports/plasmacomponents3/SwitchDelegate.qml |
123 |
++++ b/src/declarativeimports/plasmacomponents3/SwitchDelegate.qml |
124 |
+@@ -45,7 +45,7 @@ T.SwitchDelegate { |
125 |
+ |
126 |
+ indicator: SwitchIndicator { |
127 |
+ x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding |
128 |
+- y: control.topPadding + (control.availableHeight - height) / 2 |
129 |
++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) |
130 |
+ |
131 |
+ control: control |
132 |
+ } |
133 |
+-- |
134 |
+GitLab |
135 |
+ |
136 |
|
137 |
diff --git a/kde-frameworks/plasma/plasma-5.92.0-r2.ebuild b/kde-frameworks/plasma/plasma-5.92.0-r2.ebuild |
138 |
new file mode 100644 |
139 |
index 000000000000..8d660fd871a3 |
140 |
--- /dev/null |
141 |
+++ b/kde-frameworks/plasma/plasma-5.92.0-r2.ebuild |
142 |
@@ -0,0 +1,78 @@ |
143 |
+# Copyright 1999-2022 Gentoo Authors |
144 |
+# Distributed under the terms of the GNU General Public License v2 |
145 |
+ |
146 |
+EAPI=8 |
147 |
+ |
148 |
+KDE_ORG_NAME="${PN}-framework" |
149 |
+PVCUT=$(ver_cut 1-2) |
150 |
+QTMIN=5.15.2 |
151 |
+VIRTUALX_REQUIRED="test" |
152 |
+inherit ecm kde.org |
153 |
+ |
154 |
+DESCRIPTION="Plasma framework" |
155 |
+ |
156 |
+LICENSE="LGPL-2+" |
157 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
158 |
+IUSE="gles2-only man wayland X" |
159 |
+ |
160 |
+RESTRICT="test" |
161 |
+ |
162 |
+RDEPEND=" |
163 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
164 |
+ >=dev-qt/qtdeclarative-${QTMIN}:5 |
165 |
+ >=dev-qt/qtgui-${QTMIN}:5[gles2-only=,X=] |
166 |
+ >=dev-qt/qtquickcontrols-${QTMIN}:5 |
167 |
+ >=dev-qt/qtsql-${QTMIN}:5 |
168 |
+ >=dev-qt/qtsvg-${QTMIN}:5 |
169 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
170 |
+ =kde-frameworks/kactivities-${PVCUT}*:5 |
171 |
+ =kde-frameworks/karchive-${PVCUT}*:5 |
172 |
+ =kde-frameworks/kconfig-${PVCUT}*:5 |
173 |
+ =kde-frameworks/kconfigwidgets-${PVCUT}*:5 |
174 |
+ =kde-frameworks/kcoreaddons-${PVCUT}*:5 |
175 |
+ =kde-frameworks/kdeclarative-${PVCUT}*:5 |
176 |
+ =kde-frameworks/kglobalaccel-${PVCUT}*:5 |
177 |
+ =kde-frameworks/kguiaddons-${PVCUT}*:5 |
178 |
+ =kde-frameworks/ki18n-${PVCUT}*:5 |
179 |
+ =kde-frameworks/kiconthemes-${PVCUT}*:5 |
180 |
+ =kde-frameworks/kio-${PVCUT}*:5 |
181 |
+ =kde-frameworks/kirigami-${PVCUT}*:5 |
182 |
+ =kde-frameworks/knotifications-${PVCUT}*:5 |
183 |
+ =kde-frameworks/kpackage-${PVCUT}*:5 |
184 |
+ =kde-frameworks/kservice-${PVCUT}*:5 |
185 |
+ =kde-frameworks/kwidgetsaddons-${PVCUT}*:5 |
186 |
+ =kde-frameworks/kwindowsystem-${PVCUT}*:5 |
187 |
+ =kde-frameworks/kxmlgui-${PVCUT}*:5 |
188 |
+ !gles2-only? ( media-libs/libglvnd[X?] ) |
189 |
+ wayland? ( |
190 |
+ =kde-frameworks/kwayland-${PVCUT}*:5 |
191 |
+ media-libs/libglvnd |
192 |
+ ) |
193 |
+ X? ( |
194 |
+ >=dev-qt/qtx11extras-${QTMIN}:5 |
195 |
+ x11-libs/libX11 |
196 |
+ x11-libs/libxcb |
197 |
+ ) |
198 |
+" |
199 |
+DEPEND="${RDEPEND} |
200 |
+ X? ( x11-base/xorg-proto ) |
201 |
+" |
202 |
+BDEPEND="man? ( >=kde-frameworks/kdoctools-${PVCUT}:5 )" |
203 |
+ |
204 |
+PATCHES=( |
205 |
+ "${FILESDIR}/${P}-breeze-light-dark-visual-fix.patch" |
206 |
+ "${FILESDIR}/${P}-fix-blurry-buttons.patch" # KDE-bug 447977 |
207 |
+) |
208 |
+ |
209 |
+src_configure() { |
210 |
+ local mycmakeargs=( |
211 |
+ $(cmake_use_find_package !gles2-only OpenGL) |
212 |
+ $(cmake_use_find_package man KF5DocTools) |
213 |
+ $(cmake_use_find_package wayland EGL) |
214 |
+ $(cmake_use_find_package wayland KF5Wayland) |
215 |
+ $(cmake_use_find_package X X11) |
216 |
+ $(cmake_use_find_package X XCB) |
217 |
+ ) |
218 |
+ |
219 |
+ ecm_src_configure |
220 |
+} |