diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-16 13:07:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-16 13:07:24 +0100 |
commit | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (patch) | |
tree | 464c922e949c7e4d5d891fb2cdda5daee5612537 /kde-frameworks/plasma/files | |
parent | e68d405c5d712af4387159df07e226217bdda049 (diff) |
gentoo resync : 16.04.2022
Diffstat (limited to 'kde-frameworks/plasma/files')
-rw-r--r-- | kde-frameworks/plasma/files/plasma-5.92.0-fix-blurry-buttons.patch | 110 | ||||
-rw-r--r-- | kde-frameworks/plasma/files/plasma-5.93.0-fix-widget-popups.patch | 29 |
2 files changed, 139 insertions, 0 deletions
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 new file mode 100644 index 000000000000..0286039ddb7b --- /dev/null +++ b/kde-frameworks/plasma/files/plasma-5.92.0-fix-blurry-buttons.patch @@ -0,0 +1,110 @@ +From bd1ba6e539a326585a24fc21d0e27ef2c59e8731 Mon Sep 17 00:00:00 2001 +From: Noah Davis <noahadvs@gmail.com> +Date: Wed, 6 Apr 2022 15:08:53 -0400 +Subject: [PATCH] PC3 toggle controls: fix odd heights misaligning indicators + +BUG: 447977 +--- + src/declarativeimports/plasmacomponents3/CheckBox.qml | 2 +- + src/declarativeimports/plasmacomponents3/CheckDelegate.qml | 2 +- + src/declarativeimports/plasmacomponents3/MenuItem.qml | 2 +- + src/declarativeimports/plasmacomponents3/RadioButton.qml | 2 +- + src/declarativeimports/plasmacomponents3/RadioDelegate.qml | 2 +- + src/declarativeimports/plasmacomponents3/Switch.qml | 2 +- + src/declarativeimports/plasmacomponents3/SwitchDelegate.qml | 2 +- + 7 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/src/declarativeimports/plasmacomponents3/CheckBox.qml b/src/declarativeimports/plasmacomponents3/CheckBox.qml +index 1da39da24..fed972566 100644 +--- a/src/declarativeimports/plasmacomponents3/CheckBox.qml ++++ b/src/declarativeimports/plasmacomponents3/CheckBox.qml +@@ -35,7 +35,7 @@ T.CheckBox { + + indicator: CheckIndicator { + x: !control.mirrored ? control.leftPadding : control.width - width - control.rightPadding +- y: control.topPadding + (control.availableHeight - height) / 2 ++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) + control: control + } + +diff --git a/src/declarativeimports/plasmacomponents3/CheckDelegate.qml b/src/declarativeimports/plasmacomponents3/CheckDelegate.qml +index ef965becd..9d241467b 100644 +--- a/src/declarativeimports/plasmacomponents3/CheckDelegate.qml ++++ b/src/declarativeimports/plasmacomponents3/CheckDelegate.qml +@@ -47,7 +47,7 @@ T.CheckDelegate { + + indicator: CheckIndicator { + x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding +- y: control.topPadding + (control.availableHeight - height) / 2 ++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) + + control: control + } +diff --git a/src/declarativeimports/plasmacomponents3/MenuItem.qml b/src/declarativeimports/plasmacomponents3/MenuItem.qml +index 16f2a5e36..964c5930d 100644 +--- a/src/declarativeimports/plasmacomponents3/MenuItem.qml ++++ b/src/declarativeimports/plasmacomponents3/MenuItem.qml +@@ -81,7 +81,7 @@ T.MenuItem { + + indicator: Loader { + x: controlRoot.mirrored ? controlRoot.width - width - controlRoot.rightPadding : controlRoot.leftPadding +- y: controlRoot.topPadding + (controlRoot.availableHeight - height) / 2 ++ y: controlRoot.topPadding + Math.round((controlRoot.availableHeight - height) / 2) + + visible: controlRoot.checkable + sourceComponent: controlRoot.autoExclusive ? radioComponent : checkComponent +diff --git a/src/declarativeimports/plasmacomponents3/RadioButton.qml b/src/declarativeimports/plasmacomponents3/RadioButton.qml +index 7eeee3f9b..0b7a19894 100644 +--- a/src/declarativeimports/plasmacomponents3/RadioButton.qml ++++ b/src/declarativeimports/plasmacomponents3/RadioButton.qml +@@ -32,7 +32,7 @@ T.RadioButton { + + indicator: RadioIndicator { + x: !control.mirrored ? control.leftPadding : control.width - width - control.rightPadding +- y: control.topPadding + (control.availableHeight - height) / 2 ++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) + control: control + } + +diff --git a/src/declarativeimports/plasmacomponents3/RadioDelegate.qml b/src/declarativeimports/plasmacomponents3/RadioDelegate.qml +index e25f28cc3..a915a4eac 100644 +--- a/src/declarativeimports/plasmacomponents3/RadioDelegate.qml ++++ b/src/declarativeimports/plasmacomponents3/RadioDelegate.qml +@@ -47,7 +47,7 @@ T.RadioDelegate { + + indicator: RadioIndicator { + x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding +- y: control.topPadding + (control.availableHeight - height) / 2 ++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) + + control: control + } +diff --git a/src/declarativeimports/plasmacomponents3/Switch.qml b/src/declarativeimports/plasmacomponents3/Switch.qml +index 32ef1274b..98de41388 100644 +--- a/src/declarativeimports/plasmacomponents3/Switch.qml ++++ b/src/declarativeimports/plasmacomponents3/Switch.qml +@@ -32,7 +32,7 @@ T.Switch { + + indicator: SwitchIndicator { + x: !control.mirrored ? control.leftPadding : control.width - width - control.rightPadding +- y: control.topPadding + (control.availableHeight - height) / 2 ++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) + control: control + } + +diff --git a/src/declarativeimports/plasmacomponents3/SwitchDelegate.qml b/src/declarativeimports/plasmacomponents3/SwitchDelegate.qml +index e6adf9a6e..0f3db70de 100644 +--- a/src/declarativeimports/plasmacomponents3/SwitchDelegate.qml ++++ b/src/declarativeimports/plasmacomponents3/SwitchDelegate.qml +@@ -45,7 +45,7 @@ T.SwitchDelegate { + + indicator: SwitchIndicator { + x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding +- y: control.topPadding + (control.availableHeight - height) / 2 ++ y: control.topPadding + Math.round((control.availableHeight - height) / 2) + + control: control + } +-- +GitLab + diff --git a/kde-frameworks/plasma/files/plasma-5.93.0-fix-widget-popups.patch b/kde-frameworks/plasma/files/plasma-5.93.0-fix-widget-popups.patch new file mode 100644 index 000000000000..7f95c6531a95 --- /dev/null +++ b/kde-frameworks/plasma/files/plasma-5.93.0-fix-widget-popups.patch @@ -0,0 +1,29 @@ +From b62d83bef7733e4943e6f66787166b41198d1359 Mon Sep 17 00:00:00 2001 +From: Aleix Pol <aleixpol@kde.org> +Date: Wed, 13 Apr 2022 16:05:32 +0200 +Subject: [PATCH] Dialog: Do not update layout parameters while hidden + +Wait until the dialog it's shown to position the components within. +Otherwise we do it based on a random size. + +BUG: 452512 +--- + src/plasmaquick/dialog.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp +index 09937ef0f..9ca2c8a66 100644 +--- a/src/plasmaquick/dialog.cpp ++++ b/src/plasmaquick/dialog.cpp +@@ -475,7 +475,7 @@ void DialogPrivate::getSizeHints(QSize &min, QSize &max) const + + void DialogPrivate::updateLayoutParameters() + { +- if (!componentComplete || !mainItem || !mainItemLayout) { ++ if (!componentComplete || !mainItem || !mainItemLayout || q->visibility() == QWindow::Hidden) { + return; + } + +-- +GitLab + |