repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by admin
quickshell/nuguland/features/audio/fixtures/load.qml
Rawimport QtQuick
import QtQuick.Window
import Quickshell
import "../../.." as N
import "../../../features/audio" as AudioFeature
// `just load-test audio`: the registry entry's own panel, bound to the audio
// double the load harness overlays. No PipeWire, compositor, input, or pixels.
ShellRoot {
id: root
readonly property N.FeatureEntry feature: registry.popup("audio")
function finish(): void {
const panel = loader.item as AudioFeature.AudioPanel;
if (panel && panel.sinks.length === 1 && panel.contentHeight > 0) {
console.log("load audio: PASS");
Qt.quit();
}
}
N.Theme {
id: nuguTheme
}
N.Registry {
id: registry
theme: nuguTheme
}
// Plain Window: Quickshell windows set input masks the offscreen platform rejects.
Window {
width: 440
height: 480
visible: true
color: "transparent"
Loader {
id: loader
anchors.fill: parent
sourceComponent: root.feature ? root.feature.panel : null
}
}
Timer {
interval: 25
running: true
repeat: true
onTriggered: root.finish()
}
Timer {
interval: 5000
running: true
onTriggered: {
console.error("ERROR load audio: registry panel never rendered its fixture output");
Qt.quit();
}
}
}