Add Timer, Weather apps; build out UI of music app; add wakeword action setting

This commit is contained in:
James Babcock committed 2026-07-20 02:04:21 -07:00
1 parent 008f2277ca
commit 5c73ba2a4d
27 files changed
+2181 -312

No files matched your search

+6 -1
View File
@@ -181,6 +181,11 @@ class LauncherGridLayer implements Layer {
* new window.
*/
export function createLauncherWindow(options: LauncherOptions): ShellWindow {
const sortedOptions: LauncherOptions = {
...options,
apps: [...options.apps].sort((a, b) => a.label.localeCompare(b.label)),
};
return createInProcessWindow({
appId: "launcher",
windowId: LAUNCHER_WINDOW_ID,
@@ -191,7 +196,7 @@ export function createLauncherWindow(options: LauncherOptions): ShellWindow {
actions: options.actions,
// Not wrapped in YieldAtRootLayer: the grid handles double-click itself to
// back out of item selection before yielding to the sidebar.
baseLayer: new LauncherGridLayer(options),
baseLayer: new LauncherGridLayer(sortedOptions),
submitFrame: options.submitFrame,
setSurfaceVisible: options.setSurfaceVisible,
}).window;