[plasma/kwin] src/kcms/animations/ui: kcm/animations: Put effects KCM button in its own FormGroup
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit b577ebd81f1f40dffe9cd61999aa787b20cb51e3 by Vlad Zahorodnii, on behalf of Noah Davis.
Committed on 18/08/2026 at 19:43.
Pushed by vladz into branch 'master'.
kcm/animations: Put effects KCM button in its own FormGroup
A bit more faithful to the original appearance.
M +7 -9 src/kcms/animations/ui/main.qml
https://invent.kde.org/plasma/kwin/-/commit/b577ebd81f1f40dffe9cd61999aa787b20cb51e3
diff --git a/src/kcms/animations/ui/main.qml b/src/kcms/animations/ui/main.qml
index 2fed38c5557..8aeed5c2316 100644
--- a/src/kcms/animations/ui/main.qml
+++ b/src/kcms/animations/ui/main.qml
@@ -182,19 +182,17 @@ KCM.SimpleKCM {
]
}
}
+ }
- Kirigami.FormSeparator {
- visible: effectsKCMButton.visible
- }
-
+ Kirigami.FormGroup {
+ id: effectsKCMGroup
+ readonly property var kcmData: kcm.effectsKCMData()
+ visible: "icon" in kcmData && "name" in kcmData
Kirigami.FormAction {
- id: effectsKCMButton
- readonly property var kcmData: kcm.effectsKCMData()
title: i18nc("@title:group translate as short as possible", "More effects settings:")
- visible: "icon" in kcmData && "name" in kcmData
action: QQC2.Action {
- icon.name: "icon" in effectsKCMButton.kcmData ? effectsKCMButton.kcmData.icon : ""
- text: "name" in effectsKCMButton.kcmData ? effectsKCMButton.kcmData.name : ""
+ icon.name: effectsKCMGroup.kcmData.icon ?? ""
+ text: effectsKCMGroup.kcmData.name ?? ""
onTriggered: kcm.launchEffectsKCM()
}
}