1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

launcher: add IPC feature-parity to spotlight-bar and improve list view

transitions

port 1.5
This commit is contained in:
bbedward
2026-07-13 11:25:01 -04:00
parent 31ea83584b
commit 197d17ac4e
5 changed files with 140 additions and 25 deletions
+24
View File
@@ -1499,6 +1499,30 @@ Item {
return "SPOTLIGHT_BAR_TOGGLE_SUCCESS";
}
function openWith(mode: string): string {
if (!mode)
return "SPOTLIGHT_BAR_OPEN_FAILED: No mode specified";
PopoutService.openSpotlightBarWithMode(mode);
return `SPOTLIGHT_BAR_OPEN_SUCCESS: ${mode}`;
}
function toggleWith(mode: string): string {
if (!mode)
return "SPOTLIGHT_BAR_TOGGLE_FAILED: No mode specified";
PopoutService.toggleSpotlightBarWithMode(mode);
return `SPOTLIGHT_BAR_TOGGLE_SUCCESS: ${mode}`;
}
function openQuery(query: string): string {
PopoutService.openSpotlightBarWithQuery(query);
return "SPOTLIGHT_BAR_OPEN_QUERY_SUCCESS";
}
function toggleQuery(query: string): string {
PopoutService.toggleSpotlightBarWithQuery(query);
return "SPOTLIGHT_BAR_TOGGLE_QUERY_SUCCESS";
}
target: "spotlight-bar"
}