summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-12-17 22:58:08 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-12-18 00:48:41 +0100
commit3806891057609468bd530c645fe4a75466e78f1c (patch)
tree12dfada4f86a660cc69705f819e56949410ce12a /kde-plasma/kdeplasma-addons/files
parentkde-plasma/kwin: Possible fix for KDecoration crash in systemsettings (diff)
downloadgentoo-3806891057609468bd530c645fe4a75466e78f1c.tar.gz
gentoo-3806891057609468bd530c645fe4a75466e78f1c.tar.bz2
gentoo-3806891057609468bd530c645fe4a75466e78f1c.zip
kde-plasma/kdeplasma-addons: Fix temperature size with short panels
Regression in 5.17.4. KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=415187 Package-Manager: Portage-2.3.82, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-plasma/kdeplasma-addons/files')
-rw-r--r--kde-plasma/kdeplasma-addons/files/kdeplasma-addons-5.17.4-weather-applet-size-regression.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/kde-plasma/kdeplasma-addons/files/kdeplasma-addons-5.17.4-weather-applet-size-regression.patch b/kde-plasma/kdeplasma-addons/files/kdeplasma-addons-5.17.4-weather-applet-size-regression.patch
new file mode 100644
index 000000000000..58a1316171e1
--- /dev/null
+++ b/kde-plasma/kdeplasma-addons/files/kdeplasma-addons-5.17.4-weather-applet-size-regression.patch
@@ -0,0 +1,37 @@
+From 865ae05e8fe280a177fcd6dcf5f847327de36a00 Mon Sep 17 00:00:00 2001
+From: Nate Graham <nate@kde.org>
+Date: Sun, 15 Dec 2019 14:04:29 +0100
+Subject: [applets/weather] Fix regression in temperature size with short
+ panels
+
+BUG: 415187
+FIXED-IN: 5.17.5
+---
+ applets/weather/package/contents/ui/IconAndTextItem.qml | 12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/applets/weather/package/contents/ui/IconAndTextItem.qml b/applets/weather/package/contents/ui/IconAndTextItem.qml
+index 7042bf8..dc270e4 100644
+--- a/applets/weather/package/contents/ui/IconAndTextItem.qml
++++ b/applets/weather/package/contents/ui/IconAndTextItem.qml
+@@ -86,9 +86,15 @@ GridLayout {
+ leftMargin: units.smallSpacing
+ rightMargin: units.smallSpacing
+ }
+- // This magic value of 0.7 is taken from the digital clock, so that the
+- // text sizes are identical
+- height: Math.min (parent.height * 0.7, 3 * theme.defaultFont.pixelSize)
++ // These magic values are taken from the digital clock, so that the
++ // text sizes here are identical with various clock text sizes
++ height: {
++ var textHeightScaleFactor = 0.7;
++ if (parent.height <= 26) {
++ textHeightScaleFactor = 0.9;
++ }
++ return Math.min (parent.height * textHeightScaleFactor, 3 * theme.defaultFont.pixelSize);
++ }
+ visible: false
+
+ // pattern to reserve some constant space TODO: improve and take formatting/i18n into account
+--
+cgit v1.1