summaryrefslogtreecommitdiff
path: root/modules/launcher/AppList.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 16:20:47 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 16:20:47 +1000
commit746f41da16ddc463345948110d0a75a68918af90 (patch)
treecaf925b02b6fcada02e4f96bcff932b725db6d8d /modules/launcher/AppList.qml
parentinternal: use execDetached (diff)
downloadcaelestia-shell-746f41da16ddc463345948110d0a75a68918af90.tar.gz
caelestia-shell-746f41da16ddc463345948110d0a75a68918af90.tar.bz2
caelestia-shell-746f41da16ddc463345948110d0a75a68918af90.zip
feat: impl variant launcher action
Diffstat (limited to 'modules/launcher/AppList.qml')
-rw-r--r--modules/launcher/AppList.qml19
1 files changed, 18 insertions, 1 deletions
diff --git a/modules/launcher/AppList.qml b/modules/launcher/AppList.qml
index 2a54f60..c06893a 100644
--- a/modules/launcher/AppList.qml
+++ b/modules/launcher/AppList.qml
@@ -15,11 +15,14 @@ ListView {
property bool isAction: search.text.startsWith(Config.launcher.actionPrefix)
property bool isScheme: search.text.startsWith(`${Config.launcher.actionPrefix}scheme `)
+ property bool isVariant: search.text.startsWith(`${Config.launcher.actionPrefix}variant `)
function getModelValues() {
let text = search.text;
if (isScheme)
return Schemes.fuzzyQuery(text);
+ if (isVariant)
+ return M3Variants.fuzzyQuery(text);
if (isAction)
return Actions.fuzzyQuery(text);
if (text.startsWith(Config.launcher.actionPrefix))
@@ -48,6 +51,8 @@ ListView {
delegate: {
if (isScheme)
return schemeItem;
+ if (isVariant)
+ return variantItem;
if (isAction)
return actionItem;
return appItem;
@@ -122,7 +127,15 @@ ListView {
id: schemeItem
SchemeItem {
- visibilities: root.visibilities
+ list: root
+ }
+ }
+
+ Component {
+ id: variantItem
+
+ VariantItem {
+ list: root
}
}
@@ -134,6 +147,10 @@ ListView {
ChangeAnim {}
}
+ Behavior on isVariant {
+ ChangeAnim {}
+ }
+
component ChangeAnim: SequentialAnimation {
ParallelAnimation {
Anim {