diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-01-08 16:13:14 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-01-08 16:13:14 -0500 |
| commit | 814d2f336c6a56e53412201bf99ca69753bda71b (patch) | |
| tree | dd793d6efe906b30ced51152f377f9907f1ab06f /modules/launcher/ContentList.qml | |
| parent | clean up lock screen (diff) | |
| download | caelestia-shell-814d2f336c6a56e53412201bf99ca69753bda71b.tar.gz caelestia-shell-814d2f336c6a56e53412201bf99ca69753bda71b.tar.bz2 caelestia-shell-814d2f336c6a56e53412201bf99ca69753bda71b.zip | |
remove themes and configs from launcher
Diffstat (limited to 'modules/launcher/ContentList.qml')
| -rw-r--r-- | modules/launcher/ContentList.qml | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/modules/launcher/ContentList.qml b/modules/launcher/ContentList.qml index b2a9c77..1b77420 100644 --- a/modules/launcher/ContentList.qml +++ b/modules/launcher/ContentList.qml @@ -18,15 +18,13 @@ Item { required property StyledTextField search required property int padding required property int rounding - - readonly property bool showWallpapers: search.text.startsWith(`${Config.launcher.actionPrefix}wallpaper `) - readonly property Item currentList: showWallpapers ? wallpaperList.item : appList.item + readonly property Item currentList: appList.item anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom clip: true - state: showWallpapers ? "wallpapers" : "apps" + state: "apps" states: [ State { @@ -43,15 +41,6 @@ Item { anchors.right: root.parent.right } }, - State { - name: "wallpapers" - - PropertyChanges { - root.implicitWidth: Math.max(Config.launcher.sizes.itemWidth * 1.2, wallpaperList.implicitWidth) - root.implicitHeight: Config.launcher.sizes.wallpaperHeight - wallpaperList.active: true - } - } ] Behavior on state { @@ -87,23 +76,6 @@ Item { } } - Loader { - id: wallpaperList - - active: false - - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - - sourceComponent: WallpaperList { - search: root.search - visibilities: root.visibilities - panels: root.panels - content: root.content - } - } - Row { id: empty @@ -117,7 +89,7 @@ Item { anchors.verticalCenter: parent.verticalCenter MaterialIcon { - text: root.state === "wallpapers" ? "wallpaper_slideshow" : "manage_search" + text: "manage_search" color: Colours.palette.m3onSurfaceVariant font.pointSize: Appearance.font.size.extraLarge @@ -128,14 +100,14 @@ Item { anchors.verticalCenter: parent.verticalCenter StyledText { - text: root.state === "wallpapers" ? qsTr("No wallpapers found") : qsTr("No results") + text: qsTr("No results") color: Colours.palette.m3onSurfaceVariant font.pointSize: Appearance.font.size.larger font.weight: 500 } StyledText { - text: root.state === "wallpapers" && Wallpapers.list.length === 0 ? qsTr("Try putting some wallpapers in %1").arg(Paths.shortenHome(Paths.wallsdir)) : qsTr("Try searching for something else") + text: qsTr("Try searching for something else") color: Colours.palette.m3onSurfaceVariant font.pointSize: Appearance.font.size.normal } |