From 2dbec4489eabc68c071c8bdf5451af2284e20485 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 17 Jun 2025 15:55:26 +1000 Subject: feat: impl scheme launcher action --- modules/launcher/ContentList.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modules/launcher/ContentList.qml') diff --git a/modules/launcher/ContentList.qml b/modules/launcher/ContentList.qml index ad116f7..7a3da96 100644 --- a/modules/launcher/ContentList.qml +++ b/modules/launcher/ContentList.qml @@ -15,8 +15,8 @@ Item { required property int padding required property int rounding - property bool showWallpapers: search.text.startsWith(`${Config.launcher.actionPrefix}wallpaper `) - property var currentList: (showWallpapers ? wallpaperList : appList).item + readonly property bool showWallpapers: search.text.startsWith(`${Config.launcher.actionPrefix}wallpaper `) + property var currentList anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom @@ -29,8 +29,9 @@ Item { name: "apps" PropertyChanges { + root.currentList: appList.item root.implicitWidth: Config.launcher.sizes.itemWidth - root.implicitHeight: Math.max(empty.height, appList.height) + root.implicitHeight: Math.max(empty.implicitHeight, appList.implicitHeight) appList.active: true } @@ -43,7 +44,8 @@ Item { name: "wallpapers" PropertyChanges { - root.implicitWidth: Math.max(Config.launcher.sizes.itemWidth, wallpaperList.width) + root.currentList: wallpaperList.item + root.implicitWidth: Math.max(Config.launcher.sizes.itemWidth, wallpaperList.implicitWidth) root.implicitHeight: Config.launcher.sizes.wallpaperHeight wallpaperList.active: true } @@ -96,7 +98,6 @@ Item { anchors.right: parent.right sourceComponent: AppList { - padding: root.padding search: root.search visibilities: root.visibilities } -- cgit v1.2.3-freya