From ae8d344f84ca381a3716a81c364de77fd54b6d0c Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 11 Apr 2026 22:43:31 +1000 Subject: [PATCH] fix: qualify attached props on non-Item components They do not have parents, so they won't inherit the config scope otherwise Animations are not per monitor --- modules/controlcenter/NavRail.qml | 4 ++-- modules/controlcenter/bluetooth/Details.qml | 4 ++-- modules/launcher/ContentList.qml | 6 +++--- modules/sidebar/Notif.qml | 12 ++++++------ 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/controlcenter/NavRail.qml b/modules/controlcenter/NavRail.qml index 5a0ba37b..4522573b 100644 --- a/modules/controlcenter/NavRail.qml +++ b/modules/controlcenter/NavRail.qml @@ -31,7 +31,7 @@ Item { when: root.session.navExpanded PropertyChanges { - layout.spacing: Tokens.spacing.small + layout.spacing: root.Tokens.spacing.small } } @@ -148,7 +148,7 @@ Item { expandedLabel.opacity: 1 smallLabel.opacity: 0 background.implicitWidth: icon.implicitWidth + icon.anchors.leftMargin * 2 + expandedLabel.anchors.leftMargin + expandedLabel.implicitWidth - background.implicitHeight: icon.implicitHeight + Tokens.padding.normal * 2 + background.implicitHeight: icon.implicitHeight + root.Tokens.padding.normal * 2 item.implicitHeight: background.implicitHeight } } diff --git a/modules/controlcenter/bluetooth/Details.qml b/modules/controlcenter/bluetooth/Details.qml index a398c34d..ec47e5f1 100644 --- a/modules/controlcenter/bluetooth/Details.qml +++ b/modules/controlcenter/bluetooth/Details.qml @@ -167,7 +167,7 @@ StyledFlickable { PropertyChanges { renameDevice.implicitHeight: deviceNameEdit.implicitHeight renameLabel.opacity: 0 - deviceNameEdit.padding: Tokens.padding.normal + deviceNameEdit.padding: root.Tokens.padding.normal } } @@ -481,7 +481,7 @@ StyledFlickable { when: root.session.bt.fabMenuOpen PropertyChanges { - fabMenuItem.implicitWidth: fabMenuItemInner.implicitWidth + Tokens.padding.large * 2 + fabMenuItem.implicitWidth: fabMenuItemInner.implicitWidth + root.Tokens.padding.large * 2 fabMenuItem.opacity: 1 fabMenuItemInner.opacity: 1 } diff --git a/modules/launcher/ContentList.qml b/modules/launcher/ContentList.qml index e36c0d32..4667a540 100644 --- a/modules/launcher/ContentList.qml +++ b/modules/launcher/ContentList.qml @@ -32,7 +32,7 @@ Item { name: "apps" PropertyChanges { - root.implicitWidth: Tokens.sizes.launcher.itemWidth + root.implicitWidth: root.Tokens.sizes.launcher.itemWidth root.implicitHeight: Math.min(root.maxHeight, appList.implicitHeight > 0 ? appList.implicitHeight : empty.implicitHeight) appList.active: true } @@ -46,8 +46,8 @@ Item { name: "wallpapers" PropertyChanges { - root.implicitWidth: Math.max(Tokens.sizes.launcher.itemWidth * 1.2, wallpaperList.implicitWidth) - root.implicitHeight: Tokens.sizes.launcher.wallpaperHeight + root.implicitWidth: Math.max(root.Tokens.sizes.launcher.itemWidth * 1.2, wallpaperList.implicitWidth) + root.implicitHeight: root.Tokens.sizes.launcher.wallpaperHeight wallpaperList.active: true } } diff --git a/modules/sidebar/Notif.qml b/modules/sidebar/Notif.qml index 26dea195..54dfb5ff 100644 --- a/modules/sidebar/Notif.qml +++ b/modules/sidebar/Notif.qml @@ -32,12 +32,12 @@ StyledRect { name: "expanded" PropertyChanges { - summary.anchors.margins: Tokens.padding.normal - dummySummary.anchors.margins: Tokens.padding.normal - compactBody.anchors.margins: Tokens.padding.normal - timeStr.anchors.margins: Tokens.padding.normal - expandedContent.anchors.margins: Tokens.padding.normal - summary.width: root.width - Tokens.padding.normal * 2 - timeStr.implicitWidth - Tokens.spacing.small + summary.anchors.margins: root.Tokens.padding.normal + dummySummary.anchors.margins: root.Tokens.padding.normal + compactBody.anchors.margins: root.Tokens.padding.normal + timeStr.anchors.margins: root.Tokens.padding.normal + expandedContent.anchors.margins: root.Tokens.padding.normal + summary.width: root.width - root.Tokens.padding.normal * 2 - timeStr.implicitWidth - root.Tokens.spacing.small summary.maximumLineCount: Number.MAX_SAFE_INTEGER } }