Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
AUDIO_REQUIRE_QML: "1"
AUDIO_TEST_OMARCHY_SHELL: "${{ github.workspace }}/omarchy/shell"
run: |
python test/integration/text_rendering.py
cargo build --locked --manifest-path backend/Cargo.toml
python test/integration/runtime.py backend/target/debug/omarchy-audio-service
python test/integration/routed_audio.py backend/target/debug/omarchy-audio-service
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ after retargeting it so file watches follow the new location.
## Contributing

Edit `qml/`, `backend/src/`, and `scripts/`; `runtime/` contains generated QML.
Use `Text.PlainText` for labels; external names and saved text can contain markup.
Builds require Rust/Cargo **1.85+**, libclang, pkg-config, and PipeWire and
libpulse headers. Node.js, Python, jq, and Qt/Quickshell run the tests.

Expand Down
4 changes: 2 additions & 2 deletions backend-release.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified bin/omarchy-audio-service
Binary file not shown.
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"service"
],
"entryPoints": {
"barWidget": "runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/panels/Panel.qml",
"panel": "runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/panels/AdvancedAudio.qml",
"service": "runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/Service.qml"
"barWidget": "runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/panels/Panel.qml",
"panel": "runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/panels/AdvancedAudio.qml",
"service": "runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/Service.qml"
},
"barWidget": {
"displayName": "Advanced Audio Control",
Expand Down
4 changes: 4 additions & 0 deletions qml/components/AudioBalanceRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ CursorSurface {
height: Math.max(balanceLabel.implicitHeight, balanceValue.implicitHeight)

Text {
textFormat: Text.PlainText
id: balanceLabel
text: root.label + " · " + root.deviceLabel
color: root.foreground
Expand All @@ -46,6 +47,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
id: balanceValue
text: {
var value = root.balanceValue
Expand All @@ -66,6 +68,7 @@ CursorSurface {
spacing: Style.space(8)

Text {
textFormat: Text.PlainText
text: "L"
color: Qt.darker(root.foreground, 1.35)
font.family: root.fontFamily
Expand All @@ -85,6 +88,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
text: "R"
color: Qt.darker(root.foreground, 1.35)
font.family: root.fontFamily
Expand Down
1 change: 1 addition & 0 deletions qml/components/AudioBarIcon.qml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Item {
Behavior on scale { NumberAnimation { duration: 140; easing.type: Easing.OutBack } }

Text {
textFormat: Text.PlainText
id: badgeText
anchors.centerIn: parent
text: root.microphoneClipping ? "!" : (root.recordingCount > 9 ? "9+" : String(root.recordingCount))
Expand Down
4 changes: 4 additions & 0 deletions qml/components/AudioDropdown.qml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Item {
spacing: Style.spacing.labelGap

Text {
textFormat: Text.PlainText
visible: root.showLabel && root.label !== ""
text: root.label
color: Qt.darker(root.foreground, 1.4)
Expand Down Expand Up @@ -131,6 +132,7 @@ Item {
}

Text {
textFormat: Text.PlainText
visible: !root.chevronOnly
anchors.left: parent.left
anchors.right: chevron.left
Expand All @@ -145,6 +147,7 @@ Item {
}

Text {
textFormat: Text.PlainText
id: chevron
visible: root.showChevron
anchors.right: root.chevronOnly ? undefined : parent.right
Expand Down Expand Up @@ -310,6 +313,7 @@ Item {
: "transparent"

Text {
textFormat: Text.PlainText
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
Expand Down
3 changes: 3 additions & 0 deletions qml/components/AudioSinkRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ CursorSurface {
spacing: Style.space(8)

Text {
textFormat: Text.PlainText
text: Model.sinkGlyph(root.node)
color: root.bar.foreground
font.family: root.bar.fontFamily
Expand All @@ -46,6 +47,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
text: root.label
color: root.bar.foreground
font.family: root.bar.fontFamily
Expand All @@ -58,6 +60,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
id: groupTag
visible: root.outputGroup
text: "GROUP"
Expand Down
2 changes: 2 additions & 0 deletions qml/components/AudioSourceRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ CursorSurface {
spacing: Style.space(8)

Text {
textFormat: Text.PlainText
text: Model.sourceGlyph(root.node)
color: root.bar.foreground
font.family: root.bar.fontFamily
Expand All @@ -43,6 +44,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
text: root.label
color: root.bar.foreground
font.family: root.bar.fontFamily
Expand Down
4 changes: 4 additions & 0 deletions qml/components/AudioStreamRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
visible: !streamAppIcon.visible
anchors.fill: parent
text: root.recording
Expand Down Expand Up @@ -167,6 +168,7 @@ CursorSurface {
height: Math.max(streamName.implicitHeight, routeChevron.visible ? routeChevron.height : 0)

Text {
textFormat: Text.PlainText
id: streamName
text: root.streamLabel
color: root.bar.foreground
Expand All @@ -181,6 +183,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
id: routeChevron
visible: root.routeMenuAvailable
width: Style.space(22)
Expand All @@ -203,6 +206,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
id: streamPct
text: Math.round(root.streamVolume * 100) + "%"
color: Qt.darker(root.bar.foreground, 1.5)
Expand Down
2 changes: 2 additions & 0 deletions qml/devices/AudioBluetoothPreferenceRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ CursorSurface {
spacing: Style.space(3)

Text {
textFormat: Text.PlainText
width: parent.width
text: "Profile preference"
color: root.foreground
Expand All @@ -54,6 +55,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
width: parent.width
text: "Automatic profile selection"
color: Qt.darker(root.foreground, 1.35)
Expand Down
2 changes: 2 additions & 0 deletions qml/devices/AudioDevicePrefRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ CursorSurface {
spacing: Style.space(3)

Text {
textFormat: Text.PlainText
id: titleText
width: parent.width
visible: !root.editingAlias
Expand All @@ -72,6 +73,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
id: deviceCodeText
width: parent.width
visible: !root.editingAlias
Expand Down
2 changes: 2 additions & 0 deletions qml/devices/AudioPortRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ CursorSurface {
spacing: Style.space(3)

Text {
textFormat: Text.PlainText
width: parent.width
text: root.port.label
color: root.foreground
Expand All @@ -55,6 +56,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
width: parent.width
text: root.port.direction === "output" ? "Output port" : "Input port"
color: Qt.darker(root.foreground, 1.35)
Expand Down
2 changes: 2 additions & 0 deletions qml/devices/AudioProfileRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ CursorSurface {
spacing: Style.space(3)

Text {
textFormat: Text.PlainText
width: parent.width
text: root.card.bluetooth === true ? "Bluetooth codec" : root.card.label
color: root.foreground
Expand All @@ -58,6 +59,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
visible: root.card.bluetooth === true
width: parent.width
text: root.card.label
Expand Down
2 changes: 2 additions & 0 deletions qml/diagnostics/AudioDiagnosticActionRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ CursorSurface {
spacing: Style.space(3)

Text {
textFormat: Text.PlainText
width: parent.width
text: root.title
color: root.urgentAction ? root.urgent : root.foreground
Expand All @@ -45,6 +46,7 @@ CursorSurface {
}

Text {
textFormat: Text.PlainText
width: parent.width
text: root.description
color: Qt.darker(root.foreground, 1.35)
Expand Down
16 changes: 16 additions & 0 deletions qml/diagnostics/AudioDiagnosticsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Column {
}

Text {
textFormat: Text.PlainText
width: parent.width
text: "Inspect the live audio graph without changing it. Support reports omit logs, account details, configuration files, and internal device identifiers."
color: Qt.darker(root.foreground, 1.35)
Expand Down Expand Up @@ -108,6 +109,7 @@ Column {
}

Text {
textFormat: Text.PlainText
visible: root.controller.error !== ""
width: parent.width
text: root.controller.error
Expand Down Expand Up @@ -138,6 +140,7 @@ Column {
spacing: Style.space(8)

Text {
textFormat: Text.PlainText
text: root.controller.refreshing ? "󰔟"
: (!root.checked ? "󰋗" : (root.snapshot.healthy ? "󰄬" : "󰀦"))
color: !root.checked || root.snapshot.healthy ? root.foreground : root.urgent
Expand All @@ -151,6 +154,7 @@ Column {
spacing: Style.space(2)

Text {
textFormat: Text.PlainText
width: parent.width
text: root.controller.refreshing ? "Checking audio services…"
: (!root.checked ? "Health check has not run"
Expand All @@ -163,6 +167,7 @@ Column {
}

Text {
textFormat: Text.PlainText
width: parent.width
text: root.checked
? "PipeWire " + (root.snapshot.versions.pipewire || "unknown")
Expand Down Expand Up @@ -193,6 +198,7 @@ Column {
}

Text {
textFormat: Text.PlainText
width: parent.width - parent.children[0].width - stateText.width - parent.spacing * 2
text: modelData.label
color: root.foreground
Expand All @@ -202,6 +208,7 @@ Column {
}

Text {
textFormat: Text.PlainText
id: stateText
text: modelData.active ? "running"
: modelData.activeState + "/" + modelData.subState
Expand Down Expand Up @@ -243,6 +250,7 @@ Column {
spacing: Style.space(4)

Text {
textFormat: Text.PlainText
width: parent.width
text: root.graphDescription()
color: root.foreground
Expand All @@ -253,6 +261,7 @@ Column {
}

Text {
textFormat: Text.PlainText
width: parent.width
text: root.graphLoadDescription()
color: root.snapshot.graph.errors > 0 ? root.urgent : Qt.darker(root.foreground, 1.35)
Expand All @@ -267,6 +276,7 @@ Column {
model: root.snapshot.warnings

Text {
textFormat: Text.PlainText
required property string modelData
width: parent.width
text: "󰀦 " + modelData
Expand Down Expand Up @@ -310,6 +320,7 @@ Column {
spacing: Style.space(3)

Text {
textFormat: Text.PlainText
width: parent.width
text: (modelData.direction === "output" ? "󰓃 " : "󰍬 ")
+ modelData.label + (modelData.default ? " · default" : "")
Expand All @@ -321,6 +332,7 @@ Column {
}

Text {
textFormat: Text.PlainText
width: parent.width
text: root.deviceDetails(modelData)
color: Qt.darker(root.foreground, 1.35)
Expand All @@ -333,6 +345,7 @@ Column {
}

Text {
textFormat: Text.PlainText
visible: root.controller.loaded && root.snapshot.devices.length === 0
width: parent.width
text: "No playback or recording device is currently available."
Expand All @@ -358,6 +371,7 @@ Column {
model: root.snapshot.routes

Text {
textFormat: Text.PlainText
required property var modelData
width: parent.width
text: (modelData.direction === "recording" ? "󰍬 " : "󰐊 ")
Expand All @@ -370,6 +384,7 @@ Column {
}

Text {
textFormat: Text.PlainText
visible: root.controller.loaded && root.snapshot.routes.length === 0
width: parent.width
text: root.snapshot.capabilities.topology
Expand Down Expand Up @@ -461,6 +476,7 @@ Column {
}

Text {
textFormat: Text.PlainText
visible: root.controller.status !== ""
width: parent.width
text: root.controller.status
Expand Down
Loading
Loading