summaryrefslogtreecommitdiff
path: root/modules/launcher/ContentList.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 15:55:26 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 15:55:26 +1000
commit2dbec4489eabc68c071c8bdf5451af2284e20485 (patch)
tree1ee8e8fafdc4fc3b59b1960c510f4942359eb3e5 /modules/launcher/ContentList.qml
parentlauncher: notify on scheme mode change error (diff)
downloadcaelestia-shell-2dbec4489eabc68c071c8bdf5451af2284e20485.tar.gz
caelestia-shell-2dbec4489eabc68c071c8bdf5451af2284e20485.tar.bz2
caelestia-shell-2dbec4489eabc68c071c8bdf5451af2284e20485.zip
feat: impl scheme launcher action
Diffstat (limited to 'modules/launcher/ContentList.qml')
-rw-r--r--modules/launcher/ContentList.qml11
1 files changed, 6 insertions, 5 deletions
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
}