Modules are tiles on a 4-column grid, each 1x1 to 4x4 and adapting its layout to its size. Edit Controls in the panel reorders by dragging, resizes from a corner handle, removes with a badge and adds from a tray. Connectivity splits into Wi-Fi, Bluetooth and Network tiles and Audio into Sound and Microphone; right-clicking Sound extends it with output devices and a volume slider per app. Adds a Caffeine tile. Config version 2 migrates existing layouts in place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
728 B
QML
25 lines
728 B
QML
pragma ComponentBehavior: Bound
|
|
import QtQuick
|
|
import ".."
|
|
import "../../services"
|
|
|
|
// Output volume. Right click (or spare rows) shows devices and per-app volume.
|
|
CCSlider {
|
|
readonly property var node: AudioService.sink
|
|
objectName: "outputTile"
|
|
title: "Sound"
|
|
glyph: ""
|
|
mutedGlyph: ""
|
|
fallback: "♪"
|
|
sliderName: "volumeSlider"
|
|
muteName: "volumeMute"
|
|
muteable: true
|
|
enabled: !!node && !!node.audio
|
|
muted: enabled && node.audio.muted
|
|
value: enabled ? node.audio.volume : 0
|
|
notice: AudioService.available ? "" : "PipeWire is unavailable"
|
|
onMoved: value => AudioService.volume(false, value)
|
|
onMuteClicked: AudioService.mute(false)
|
|
extension: AudioMixer {}
|
|
}
|