Build the Panama Control Center
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user