Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
874 B
QML
19 lines
874 B
QML
import QtQuick
|
|
import "../../components"
|
|
import "../../core"
|
|
import "../../services"
|
|
|
|
GlassButton {
|
|
id: root
|
|
property var barScreen
|
|
Component.onCompleted: ShellState.systemPills = ShellState.systemPills.concat([root])
|
|
Component.onDestruction: ShellState.systemPills = ShellState.systemPills.filter(p => p !== root)
|
|
objectName: "systemPill"
|
|
readonly property bool volumeInBar: BarLayout.modulesFor(barScreen ? barScreen.name : "").some(m => m.id === "volume" && m.enabled)
|
|
implicitHeight: ModuleRegistry.pillHeight
|
|
text: volumeInBar ? "☷" : "☷ " + (AudioService.sink && AudioService.sink.audio ? (AudioService.sink.audio.muted ? "Muted" : Math.round(AudioService.sink.audio.volume * 100) + "%") : "System")
|
|
accented: ShellState.controlCenterOpen
|
|
onClicked: ShellState.toggleControlCenter()
|
|
Accessible.name: "Control Center"
|
|
}
|