Build the Panama Control Center

This commit is contained in:
Gabriel Brown
2026-08-17 13:44:18 -04:00
parent 190e3200e0
commit 5940d6b4bd
12 changed files with 867 additions and 8 deletions
+6 -2
View File
@@ -78,7 +78,7 @@ ShellRoot {
// overview or quick settings is instant rather than paying a load.
Overview {}
// QuickSettings is the window; QuickSettingsPanel is its content.
QuickSettings {}
QuickSettings { id: quickSettings }
DateMenu { id: dateMenu }
ClipboardPanel {}
CaptureOverlay {}
@@ -223,8 +223,12 @@ ShellRoot {
function toggle(): void { ShellState.toggle("quicksettings"); }
function open(): void { ShellState.open("quicksettings"); }
function close(): void { ShellState.close(); }
function section(name: string): void { quickSettings.expand(name); }
function status(): string {
return JSON.stringify({ open: ShellState.quickSettingsOpen });
return JSON.stringify({
open: ShellState.quickSettingsOpen,
expandedSection: quickSettings.expandedSection
});
}
}