From 814d2f336c6a56e53412201bf99ca69753bda71b Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 8 Jan 2026 16:13:14 -0500 Subject: remove themes and configs from launcher --- modules/launcher/AppList.qml | 78 -------------------------------------------- 1 file changed, 78 deletions(-) (limited to 'modules/launcher/AppList.qml') diff --git a/modules/launcher/AppList.qml b/modules/launcher/AppList.qml index 7f7b843..aab0299 100644 --- a/modules/launcher/AppList.qml +++ b/modules/launcher/AppList.qml @@ -50,23 +50,9 @@ StyledListView { state: { const text = search.text; - const prefix = Config.launcher.actionPrefix; - if (text.startsWith(prefix)) { - for (const action of ["calc", "scheme", "variant"]) - if (text.startsWith(`${prefix}${action} `)) - return action; - - return "actions"; - } - return "apps"; } - onStateChanged: { - if (state === "scheme" || state === "variant") - Schemes.reload(); - } - states: [ State { name: "apps" @@ -76,38 +62,6 @@ StyledListView { root.delegate: appItem } }, - State { - name: "actions" - - PropertyChanges { - model.values: Actions.query(search.text) - root.delegate: actionItem - } - }, - State { - name: "calc" - - PropertyChanges { - model.values: [0] - root.delegate: calcItem - } - }, - State { - name: "scheme" - - PropertyChanges { - model.values: Schemes.query(search.text) - root.delegate: schemeItem - } - }, - State { - name: "variant" - - PropertyChanges { - model.values: M3Variants.query(search.text) - root.delegate: variantItem - } - } ] transitions: Transition { @@ -222,36 +176,4 @@ StyledListView { visibilities: root.visibilities } } - - Component { - id: actionItem - - ActionItem { - list: root - } - } - - Component { - id: calcItem - - CalcItem { - list: root - } - } - - Component { - id: schemeItem - - SchemeItem { - list: root - } - } - - Component { - id: variantItem - - VariantItem { - list: root - } - } } -- cgit v1.2.3-freya