From d59281aaef7734c73beeb339d02777807959091d Mon Sep 17 00:00:00 2001 From: Lorenzo Golluscio <149246609+ssupt@users.noreply.github.com> Date: Thu, 1 Oct 2026 15:28:29 +0200 Subject: [PATCH] Render audio labels as plain text --- .github/workflows/ci.yml | 1 + README.md | 1 + backend-release.json | 4 +- bin/omarchy-audio-service | Bin 3707424 -> 3707424 bytes manifest.json | 6 +- qml/components/AudioBalanceRow.qml | 4 + qml/components/AudioBarIcon.qml | 1 + qml/components/AudioDropdown.qml | 4 + qml/components/AudioSinkRow.qml | 3 + qml/components/AudioSourceRow.qml | 2 + qml/components/AudioStreamRow.qml | 4 + qml/devices/AudioBluetoothPreferenceRow.qml | 2 + qml/devices/AudioDevicePrefRow.qml | 2 + qml/devices/AudioPortRow.qml | 2 + qml/devices/AudioProfileRow.qml | 2 + qml/diagnostics/AudioDiagnosticActionRow.qml | 2 + qml/diagnostics/AudioDiagnosticsView.qml | 16 ++++ qml/microphone/MicrophoneTestRow.qml | 2 + qml/panels/AdvancedAudio.qml | 27 +++++++ qml/panels/Panel.qml | 8 ++ qml/policy/AudioPolicyToggleRow.qml | 2 + qml/policy/AudioPolicyVolumeRow.qml | 3 + qml/routing/AudioAppRuleRow.qml | 2 + qml/routing/AudioOutputGroupMemberLevel.qml | 2 + qml/routing/AudioOutputGroupRow.qml | 4 + qml/scenes/AudioSceneRow.qml | 2 + .../qml/components/AudioBalanceRow.qml | 4 + .../qml/components/AudioBarIcon.qml | 1 + .../qml/components/AudioDropdown.qml | 4 + .../qml/components/AudioSinkRow.qml | 3 + .../qml/components/AudioSlider.qml | 0 .../qml/components/AudioSourceRow.qml | 2 + .../qml/components/AudioStreamRow.qml | 4 + .../qml/core/AudioNodeModel.qml | 0 .../qml/core/AudioProtocol.js | 0 .../qml/core/AudioRuntime.qml | 0 .../qml/core/Model.js | 0 .../qml/core/ReleasePaths.js | 2 +- .../qml/core/Service.qml | 0 .../devices/AudioBluetoothPreferenceRow.qml | 2 + .../qml/devices/AudioDevicePrefRow.qml | 2 + .../qml/devices/AudioPortRow.qml | 2 + .../qml/devices/AudioProfileRow.qml | 2 + .../diagnostics/AudioDiagnosticActionRow.qml | 2 + .../AudioDiagnosticsController.qml | 0 .../qml/diagnostics/AudioDiagnosticsView.qml | 16 ++++ .../AudioMicrophoneTestController.qml | 0 .../qml/microphone/MicrophoneTestRow.qml | 2 + .../qml/panels/AdvancedAudio.qml | 27 +++++++ .../qml/panels/Panel.qml | 8 ++ .../qml/policy/AudioPolicyController.qml | 0 .../qml/policy/AudioPolicyToggleRow.qml | 2 + .../qml/policy/AudioPolicyVolumeRow.qml | 3 + .../qml/routing/AudioAppRuleRow.qml | 2 + .../qml/routing/AudioOutputGroupCreateRow.qml | 0 .../routing/AudioOutputGroupMemberLevel.qml | 2 + .../qml/routing/AudioOutputGroupRow.qml | 4 + .../routing/AudioOutputGroupsController.qml | 0 .../qml/routing/AudioRulesController.qml | 0 .../qml/scenes/AudioSceneController.qml | 0 .../qml/scenes/AudioSceneRow.qml | 2 + test/fixtures/TextRenderingHarness.qml | 69 ++++++++++++++++++ test/integration/text_rendering.py | 62 ++++++++++++++++ 63 files changed, 331 insertions(+), 6 deletions(-) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/components/AudioBalanceRow.qml (95%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/components/AudioBarIcon.qml (98%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/components/AudioDropdown.qml (98%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/components/AudioSinkRow.qml (95%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/components/AudioSlider.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/components/AudioSourceRow.qml (96%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/components/AudioStreamRow.qml (98%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/core/AudioNodeModel.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/core/AudioProtocol.js (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/core/AudioRuntime.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/core/Model.js (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/core/ReleasePaths.js (50%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/core/Service.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/devices/AudioBluetoothPreferenceRow.qml (97%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/devices/AudioDevicePrefRow.qml (98%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/devices/AudioPortRow.qml (97%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/devices/AudioProfileRow.qml (97%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/diagnostics/AudioDiagnosticActionRow.qml (96%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/diagnostics/AudioDiagnosticsController.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/diagnostics/AudioDiagnosticsView.qml (96%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/microphone/AudioMicrophoneTestController.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/microphone/MicrophoneTestRow.qml (98%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/panels/AdvancedAudio.qml (98%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/panels/Panel.qml (99%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/policy/AudioPolicyController.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/policy/AudioPolicyToggleRow.qml (96%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/policy/AudioPolicyVolumeRow.qml (95%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/routing/AudioAppRuleRow.qml (98%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/routing/AudioOutputGroupCreateRow.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/routing/AudioOutputGroupMemberLevel.qml (97%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/routing/AudioOutputGroupRow.qml (97%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/routing/AudioOutputGroupsController.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/routing/AudioRulesController.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/scenes/AudioSceneController.qml (100%) rename runtime/{dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667 => 3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84}/qml/scenes/AudioSceneRow.qml (97%) create mode 100644 test/fixtures/TextRenderingHarness.qml create mode 100644 test/integration/text_rendering.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 696be32..45348a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index 626edd4..092962a 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/backend-release.json b/backend-release.json index 66e1428..426fad3 100644 --- a/backend-release.json +++ b/backend-release.json @@ -1,7 +1,7 @@ { - "buildId": "dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667", + "buildId": "3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84", "target": "x86_64-unknown-linux-gnu", "version": "0.1.0", "protocolVersion": 1, - "sha256": "ac324d4fae4be760b0795313127ac498283d6369988140e1dd004126e2cc3caa" + "sha256": "e37256102a94ca5ab01c7a1bb1bbb8afe0b3c9cdc56609d723fb43080efe40ec" } diff --git a/bin/omarchy-audio-service b/bin/omarchy-audio-service index f0ed4e900f1a463d5c4b7734036d0bba6c44fb9c..e967ff117c99f504e078f2333640e2539d1a2eb4 100755 GIT binary patch delta 418 zcmbu%yGp}Q0DxhV)O)>0t<`#~cdI=~nw$hgbk;`*lw3hyz*!vn01-Oc!C6HL!50um zXGiJi;Gny|&*1Q_U+3;a>EN-Z>2J?3-OHczOuQdn+-BAK)5%#SyHZQ-uUrurIy}Pp`n02^kV>n7{V|{P{b(4FpddKVhYpHF@ssm;qRVD u84FlM1xr}Q3Rba(D%P=qO>AKsJJ`h@YS_mC>JTts!a@T!oLuk8;{7ifxS0R| delta 418 zcmbu%yGp}Q0DxhV)O)>0jrCTocdIt(Nlv?nqu?t9B)9Vn4ld%5Rk08#2nF2~>mcM6 zdn7{V|{P{b(4FpddKVhYnRF@ssm;qRVD u2@6=n5|*)oGFGvM3f8fKO>AKsJJ`h@s@TT?4pD;*2XzRz@N%;!i_gDTft-Z^ diff --git a/manifest.json b/manifest.json index e5e110e..a659e46 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/qml/components/AudioBalanceRow.qml b/qml/components/AudioBalanceRow.qml index 8969e8e..be00948 100644 --- a/qml/components/AudioBalanceRow.qml +++ b/qml/components/AudioBalanceRow.qml @@ -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 @@ -46,6 +47,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: balanceValue text: { var value = root.balanceValue @@ -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 @@ -85,6 +88,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText text: "R" color: Qt.darker(root.foreground, 1.35) font.family: root.fontFamily diff --git a/qml/components/AudioBarIcon.qml b/qml/components/AudioBarIcon.qml index e53bfdc..a5cd077 100644 --- a/qml/components/AudioBarIcon.qml +++ b/qml/components/AudioBarIcon.qml @@ -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)) diff --git a/qml/components/AudioDropdown.qml b/qml/components/AudioDropdown.qml index 9aa9073..a2d3e07 100644 --- a/qml/components/AudioDropdown.qml +++ b/qml/components/AudioDropdown.qml @@ -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) @@ -131,6 +132,7 @@ Item { } Text { + textFormat: Text.PlainText visible: !root.chevronOnly anchors.left: parent.left anchors.right: chevron.left @@ -145,6 +147,7 @@ Item { } Text { + textFormat: Text.PlainText id: chevron visible: root.showChevron anchors.right: root.chevronOnly ? undefined : parent.right @@ -310,6 +313,7 @@ Item { : "transparent" Text { + textFormat: Text.PlainText anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter diff --git a/qml/components/AudioSinkRow.qml b/qml/components/AudioSinkRow.qml index 757d096..dea9724 100644 --- a/qml/components/AudioSinkRow.qml +++ b/qml/components/AudioSinkRow.qml @@ -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 @@ -46,6 +47,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText text: root.label color: root.bar.foreground font.family: root.bar.fontFamily @@ -58,6 +60,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: groupTag visible: root.outputGroup text: "GROUP" diff --git a/qml/components/AudioSourceRow.qml b/qml/components/AudioSourceRow.qml index a8c34cc..8e92544 100644 --- a/qml/components/AudioSourceRow.qml +++ b/qml/components/AudioSourceRow.qml @@ -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 @@ -43,6 +44,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText text: root.label color: root.bar.foreground font.family: root.bar.fontFamily diff --git a/qml/components/AudioStreamRow.qml b/qml/components/AudioStreamRow.qml index 36e1af1..1adbe81 100644 --- a/qml/components/AudioStreamRow.qml +++ b/qml/components/AudioStreamRow.qml @@ -138,6 +138,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText visible: !streamAppIcon.visible anchors.fill: parent text: root.recording @@ -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 @@ -181,6 +183,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: routeChevron visible: root.routeMenuAvailable width: Style.space(22) @@ -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) diff --git a/qml/devices/AudioBluetoothPreferenceRow.qml b/qml/devices/AudioBluetoothPreferenceRow.qml index 9d9d522..82ec0b9 100644 --- a/qml/devices/AudioBluetoothPreferenceRow.qml +++ b/qml/devices/AudioBluetoothPreferenceRow.qml @@ -44,6 +44,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Profile preference" color: root.foreground @@ -54,6 +55,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: "Automatic profile selection" color: Qt.darker(root.foreground, 1.35) diff --git a/qml/devices/AudioDevicePrefRow.qml b/qml/devices/AudioDevicePrefRow.qml index 306fe96..efbc23e 100644 --- a/qml/devices/AudioDevicePrefRow.qml +++ b/qml/devices/AudioDevicePrefRow.qml @@ -59,6 +59,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText id: titleText width: parent.width visible: !root.editingAlias @@ -72,6 +73,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: deviceCodeText width: parent.width visible: !root.editingAlias diff --git a/qml/devices/AudioPortRow.qml b/qml/devices/AudioPortRow.qml index e12b6b1..40f8e39 100644 --- a/qml/devices/AudioPortRow.qml +++ b/qml/devices/AudioPortRow.qml @@ -45,6 +45,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.port.label color: root.foreground @@ -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) diff --git a/qml/devices/AudioProfileRow.qml b/qml/devices/AudioProfileRow.qml index 7d03f32..ec4abf1 100644 --- a/qml/devices/AudioProfileRow.qml +++ b/qml/devices/AudioProfileRow.qml @@ -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 @@ -58,6 +59,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText visible: root.card.bluetooth === true width: parent.width text: root.card.label diff --git a/qml/diagnostics/AudioDiagnosticActionRow.qml b/qml/diagnostics/AudioDiagnosticActionRow.qml index 94ff201..c7d63fc 100644 --- a/qml/diagnostics/AudioDiagnosticActionRow.qml +++ b/qml/diagnostics/AudioDiagnosticActionRow.qml @@ -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 @@ -45,6 +46,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.description color: Qt.darker(root.foreground, 1.35) diff --git a/qml/diagnostics/AudioDiagnosticsView.qml b/qml/diagnostics/AudioDiagnosticsView.qml index fb92308..3790a3f 100644 --- a/qml/diagnostics/AudioDiagnosticsView.qml +++ b/qml/diagnostics/AudioDiagnosticsView.qml @@ -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) @@ -108,6 +109,7 @@ Column { } Text { + textFormat: Text.PlainText visible: root.controller.error !== "" width: parent.width text: root.controller.error @@ -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 @@ -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" @@ -163,6 +167,7 @@ Column { } Text { + textFormat: Text.PlainText width: parent.width text: root.checked ? "PipeWire " + (root.snapshot.versions.pipewire || "unknown") @@ -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 @@ -202,6 +208,7 @@ Column { } Text { + textFormat: Text.PlainText id: stateText text: modelData.active ? "running" : modelData.activeState + "/" + modelData.subState @@ -243,6 +250,7 @@ Column { spacing: Style.space(4) Text { + textFormat: Text.PlainText width: parent.width text: root.graphDescription() color: root.foreground @@ -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) @@ -267,6 +276,7 @@ Column { model: root.snapshot.warnings Text { + textFormat: Text.PlainText required property string modelData width: parent.width text: "󰀦 " + modelData @@ -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" : "") @@ -321,6 +332,7 @@ Column { } Text { + textFormat: Text.PlainText width: parent.width text: root.deviceDetails(modelData) color: Qt.darker(root.foreground, 1.35) @@ -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." @@ -358,6 +371,7 @@ Column { model: root.snapshot.routes Text { + textFormat: Text.PlainText required property var modelData width: parent.width text: (modelData.direction === "recording" ? "󰍬 " : "󰐊 ") @@ -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 @@ -461,6 +476,7 @@ Column { } Text { + textFormat: Text.PlainText visible: root.controller.status !== "" width: parent.width text: root.controller.status diff --git a/qml/microphone/MicrophoneTestRow.qml b/qml/microphone/MicrophoneTestRow.qml index 2db29f0..62ca690 100644 --- a/qml/microphone/MicrophoneTestRow.qml +++ b/qml/microphone/MicrophoneTestRow.qml @@ -62,6 +62,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Microphone test · " + root.deviceLabel color: root.foreground @@ -72,6 +73,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.description color: root.error !== "" ? root.urgent : Qt.darker(root.foreground, 1.35) diff --git a/qml/panels/AdvancedAudio.qml b/qml/panels/AdvancedAudio.qml index aba47fc..2fb3878 100644 --- a/qml/panels/AdvancedAudio.qml +++ b/qml/panels/AdvancedAudio.qml @@ -1033,6 +1033,7 @@ Item { spacing: Style.space(14) Text { + textFormat: Text.PlainText text: "" color: root.foreground font.family: root.fontFamily @@ -1045,6 +1046,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText text: "Audio" color: root.foreground font.family: root.fontFamily @@ -1053,6 +1055,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Configure devices, automation, safety, and live audio diagnostics." color: Qt.darker(root.foreground, 1.35) @@ -1154,6 +1157,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Allow volume boost" color: root.foreground @@ -1164,6 +1168,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Extend device and application output volume from 100% to 150%." color: Qt.darker(root.foreground, 1.35) @@ -1279,6 +1284,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Automatic headset mode" color: root.foreground @@ -1289,6 +1295,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Switch to headset mode when an application records." color: Qt.darker(root.foreground, 1.35) @@ -1351,6 +1358,7 @@ Item { spacing: Style.space(18) Text { + textFormat: Text.PlainText visible: !root.policySettingsLoaded width: parent.width text: "Loading audio safety policies…" @@ -1360,6 +1368,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.policySettingsLoaded && root.wireplumberPolicyItemCount === 0 && root.policyError === "" width: parent.width @@ -1371,6 +1380,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.policySettingsLoaded && root.wireplumberPolicyItemCount > 0 width: parent.width text: "WirePlumber policies apply system-wide and are saved immediately. Unsupported controls are hidden automatically." @@ -1546,6 +1556,7 @@ Item { spacing: Style.space(8) Text { + textFormat: Text.PlainText width: parent.width text: "Scenes snapshot defaults, device volume, mute, balance, ports, and card profiles so you can restore the whole setup at once." color: Qt.darker(root.foreground, 1.35) @@ -1590,6 +1601,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Save current state as a new scene" color: root.foreground @@ -1600,6 +1612,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: root.sceneMutationBusy ? "Updating the audio scene…" @@ -1649,6 +1662,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.scenesLoaded && root.audioScenes.length === 0 width: parent.width text: "No scenes saved yet. Capture the current setup to restore it later from here or from the quick mixer." @@ -1659,6 +1673,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.sceneStatus !== "" width: parent.width text: root.sceneStatus @@ -1681,6 +1696,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Play through two or more connected outputs at once. Groups appear as one destination everywhere else in the mixer. Devices with separate clocks—especially Bluetooth—may drift slightly." color: Qt.darker(root.foreground, 1.35) @@ -1757,6 +1773,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.outputGroupStatus !== "" || outputGroupController.error !== "" width: parent.width @@ -1777,6 +1794,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Pin an application to a device and it is routed there every time it starts, whenever the device is present. Rules keep working while the application or device is offline." color: Qt.darker(root.foreground, 1.35) @@ -1814,6 +1832,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Pin application" color: root.foreground @@ -1824,6 +1843,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: root.newRuleApp !== "" ? root.newRuleApp : "Pick a running application" color: Qt.darker(root.foreground, 1.35) @@ -1898,6 +1918,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Route it to" color: root.foreground @@ -1908,6 +1929,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Outputs pin playback, inputs pin recording." color: Qt.darker(root.foreground, 1.35) @@ -2007,6 +2029,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Give a device a custom name, favorite it to sort it first, or hide it from mixer device lists." color: Qt.darker(root.foreground, 1.35) @@ -2059,6 +2082,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.routingStatus !== "" || rulesStore.error !== "" width: parent.width text: root.routingStatus !== "" ? root.routingStatus : rulesStore.error @@ -2093,6 +2117,7 @@ Item { spacing: Style.space(12) Text { + textFormat: Text.PlainText visible: !root.profilesLoaded && ((root.activeTab === 0 && root.deviceCards.length === 0) || (root.activeTab === 1 && root.bluetoothCards.length === 0)) @@ -2103,6 +2128,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.profilesLoaded && ((root.activeTab === 0 && root.deviceCards.length === 0) || (root.activeTab === 1 && root.bluetoothCards.length === 0)) @@ -2299,6 +2325,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.error !== "" width: parent.width text: root.error diff --git a/qml/panels/Panel.qml b/qml/panels/Panel.qml index eec2be5..56bca9b 100644 --- a/qml/panels/Panel.qml +++ b/qml/panels/Panel.qml @@ -1230,6 +1230,7 @@ Panel { // Status only — the switch owns muting, mouse and keyboard alike. Text { + textFormat: Text.PlainText id: heroIcon text: root.outputIcon() color: root.bar.foreground @@ -1291,6 +1292,7 @@ Panel { spacing: Style.space(2) Text { + textFormat: Text.PlainText text: "Audio" color: root.bar.foreground font.family: root.bar.fontFamily @@ -1301,6 +1303,7 @@ Panel { } Text { + textFormat: Text.PlainText id: heroLabel text: root.outputVolumeName( outputSlider.dragging ? outputSlider.liveValue : root.outputVolume, @@ -1353,6 +1356,7 @@ Panel { bordered: true Text { + textFormat: Text.PlainText id: sceneChipLabel anchors.centerIn: parent text: sceneChip.sceneName @@ -1381,6 +1385,7 @@ Panel { } Text { + textFormat: Text.PlainText visible: root.sceneFeedback !== "" width: parent.width text: root.sceneFeedback @@ -1415,6 +1420,7 @@ Panel { } Text { + textFormat: Text.PlainText id: outputPercent text: Math.round((outputSlider.dragging ? outputSlider.liveValue : root.outputVolume) * 100) + "%" color: Qt.darker(root.bar.foreground, 1.4) @@ -1519,6 +1525,7 @@ Panel { } Text { + textFormat: Text.PlainText id: microphonePercent text: root.inputClipping ? "CLIPPING" @@ -1780,6 +1787,7 @@ Panel { } Text { + textFormat: Text.PlainText visible: root.panelError !== "" width: parent.width text: root.panelError diff --git a/qml/policy/AudioPolicyToggleRow.qml b/qml/policy/AudioPolicyToggleRow.qml index 7da4216..3c0a40c 100644 --- a/qml/policy/AudioPolicyToggleRow.qml +++ b/qml/policy/AudioPolicyToggleRow.qml @@ -30,6 +30,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.definition.label color: root.foreground @@ -40,6 +41,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.definition.description color: Qt.darker(root.foreground, 1.35) diff --git a/qml/policy/AudioPolicyVolumeRow.qml b/qml/policy/AudioPolicyVolumeRow.qml index 3530101..d74e3b4 100644 --- a/qml/policy/AudioPolicyVolumeRow.qml +++ b/qml/policy/AudioPolicyVolumeRow.qml @@ -35,6 +35,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.definition.label color: root.foreground @@ -45,6 +46,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.definition.description color: Qt.darker(root.foreground, 1.35) @@ -55,6 +57,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: percentage text: Math.round((slider.dragging ? slider.liveValue : root.value) * 100) + "%" color: Qt.darker(root.foreground, 1.35) diff --git a/qml/routing/AudioAppRuleRow.qml b/qml/routing/AudioAppRuleRow.qml index 1b22533..4e7cfc8 100644 --- a/qml/routing/AudioAppRuleRow.qml +++ b/qml/routing/AudioAppRuleRow.qml @@ -54,6 +54,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.appLabel color: root.foreground @@ -64,6 +65,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: (root.direction === "recording" ? "Recording" : "Playback") + " · " + (root.targetLabel !== "" ? root.targetLabel : "unknown device") diff --git a/qml/routing/AudioOutputGroupMemberLevel.qml b/qml/routing/AudioOutputGroupMemberLevel.qml index cdf0980..f43a413 100644 --- a/qml/routing/AudioOutputGroupMemberLevel.qml +++ b/qml/routing/AudioOutputGroupMemberLevel.qml @@ -40,6 +40,7 @@ Item { height: Math.max(memberLabel.implicitHeight, memberValue.implicitHeight) Text { + textFormat: Text.PlainText id: memberLabel text: root.label color: root.connected ? root.foreground : Qt.darker(root.foreground, 1.4) @@ -53,6 +54,7 @@ Item { } Text { + textFormat: Text.PlainText id: memberValue text: root.connected ? Math.round((memberSlider.dragging diff --git a/qml/routing/AudioOutputGroupRow.qml b/qml/routing/AudioOutputGroupRow.qml index 5a0a794..8cbf050 100644 --- a/qml/routing/AudioOutputGroupRow.qml +++ b/qml/routing/AudioOutputGroupRow.qml @@ -79,6 +79,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.groupName color: root.foreground @@ -89,6 +90,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.statusText color: root.available ? Qt.darker(root.foreground, 1.35) : root.urgent @@ -153,6 +155,7 @@ CursorSurface { height: Math.max(memberLevelsTitle.implicitHeight, sharedVolumeHint.implicitHeight) Text { + textFormat: Text.PlainText id: memberLevelsTitle text: "MEMBER LEVELS" color: root.foreground @@ -164,6 +167,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: sharedVolumeHint text: "SHARED DEVICE VOLUME" color: Qt.darker(root.foreground, 1.4) diff --git a/qml/scenes/AudioSceneRow.qml b/qml/scenes/AudioSceneRow.qml index f42375e..b38c5b7 100644 --- a/qml/scenes/AudioSceneRow.qml +++ b/qml/scenes/AudioSceneRow.qml @@ -47,6 +47,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.sceneName color: root.foreground @@ -57,6 +58,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.description color: Qt.darker(root.foreground, 1.35) diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioBalanceRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioBalanceRow.qml similarity index 95% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioBalanceRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioBalanceRow.qml index 8969e8e..be00948 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioBalanceRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioBalanceRow.qml @@ -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 @@ -46,6 +47,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: balanceValue text: { var value = root.balanceValue @@ -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 @@ -85,6 +88,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText text: "R" color: Qt.darker(root.foreground, 1.35) font.family: root.fontFamily diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioBarIcon.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioBarIcon.qml similarity index 98% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioBarIcon.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioBarIcon.qml index e53bfdc..a5cd077 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioBarIcon.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioBarIcon.qml @@ -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)) diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioDropdown.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioDropdown.qml similarity index 98% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioDropdown.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioDropdown.qml index 9aa9073..a2d3e07 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioDropdown.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioDropdown.qml @@ -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) @@ -131,6 +132,7 @@ Item { } Text { + textFormat: Text.PlainText visible: !root.chevronOnly anchors.left: parent.left anchors.right: chevron.left @@ -145,6 +147,7 @@ Item { } Text { + textFormat: Text.PlainText id: chevron visible: root.showChevron anchors.right: root.chevronOnly ? undefined : parent.right @@ -310,6 +313,7 @@ Item { : "transparent" Text { + textFormat: Text.PlainText anchors.left: parent.left anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioSinkRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioSinkRow.qml similarity index 95% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioSinkRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioSinkRow.qml index 757d096..dea9724 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioSinkRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioSinkRow.qml @@ -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 @@ -46,6 +47,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText text: root.label color: root.bar.foreground font.family: root.bar.fontFamily @@ -58,6 +60,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: groupTag visible: root.outputGroup text: "GROUP" diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioSlider.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioSlider.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioSlider.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioSlider.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioSourceRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioSourceRow.qml similarity index 96% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioSourceRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioSourceRow.qml index a8c34cc..8e92544 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioSourceRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioSourceRow.qml @@ -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 @@ -43,6 +44,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText text: root.label color: root.bar.foreground font.family: root.bar.fontFamily diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioStreamRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioStreamRow.qml similarity index 98% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioStreamRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioStreamRow.qml index 36e1af1..1adbe81 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/components/AudioStreamRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/components/AudioStreamRow.qml @@ -138,6 +138,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText visible: !streamAppIcon.visible anchors.fill: parent text: root.recording @@ -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 @@ -181,6 +183,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: routeChevron visible: root.routeMenuAvailable width: Style.space(22) @@ -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) diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/AudioNodeModel.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/AudioNodeModel.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/AudioNodeModel.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/AudioNodeModel.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/AudioProtocol.js b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/AudioProtocol.js similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/AudioProtocol.js rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/AudioProtocol.js diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/AudioRuntime.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/AudioRuntime.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/AudioRuntime.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/AudioRuntime.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/Model.js b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/Model.js similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/Model.js rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/Model.js diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/ReleasePaths.js b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/ReleasePaths.js similarity index 50% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/ReleasePaths.js rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/ReleasePaths.js index 73293ce..bc8b350 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/ReleasePaths.js +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/ReleasePaths.js @@ -1,3 +1,3 @@ // Generated release paths; edit the qml sources instead. var root = "../../../../" -var buildId = "dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667" +var buildId = "3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84" diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/Service.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/Service.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/core/Service.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/core/Service.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioBluetoothPreferenceRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioBluetoothPreferenceRow.qml similarity index 97% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioBluetoothPreferenceRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioBluetoothPreferenceRow.qml index 9d9d522..82ec0b9 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioBluetoothPreferenceRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioBluetoothPreferenceRow.qml @@ -44,6 +44,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Profile preference" color: root.foreground @@ -54,6 +55,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: "Automatic profile selection" color: Qt.darker(root.foreground, 1.35) diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioDevicePrefRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioDevicePrefRow.qml similarity index 98% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioDevicePrefRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioDevicePrefRow.qml index 306fe96..efbc23e 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioDevicePrefRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioDevicePrefRow.qml @@ -59,6 +59,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText id: titleText width: parent.width visible: !root.editingAlias @@ -72,6 +73,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: deviceCodeText width: parent.width visible: !root.editingAlias diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioPortRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioPortRow.qml similarity index 97% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioPortRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioPortRow.qml index e12b6b1..40f8e39 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioPortRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioPortRow.qml @@ -45,6 +45,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.port.label color: root.foreground @@ -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) diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioProfileRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioProfileRow.qml similarity index 97% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioProfileRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioProfileRow.qml index 7d03f32..ec4abf1 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/devices/AudioProfileRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/devices/AudioProfileRow.qml @@ -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 @@ -58,6 +59,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText visible: root.card.bluetooth === true width: parent.width text: root.card.label diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/diagnostics/AudioDiagnosticActionRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/diagnostics/AudioDiagnosticActionRow.qml similarity index 96% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/diagnostics/AudioDiagnosticActionRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/diagnostics/AudioDiagnosticActionRow.qml index 94ff201..c7d63fc 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/diagnostics/AudioDiagnosticActionRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/diagnostics/AudioDiagnosticActionRow.qml @@ -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 @@ -45,6 +46,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.description color: Qt.darker(root.foreground, 1.35) diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/diagnostics/AudioDiagnosticsController.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/diagnostics/AudioDiagnosticsController.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/diagnostics/AudioDiagnosticsController.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/diagnostics/AudioDiagnosticsController.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/diagnostics/AudioDiagnosticsView.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/diagnostics/AudioDiagnosticsView.qml similarity index 96% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/diagnostics/AudioDiagnosticsView.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/diagnostics/AudioDiagnosticsView.qml index fb92308..3790a3f 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/diagnostics/AudioDiagnosticsView.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/diagnostics/AudioDiagnosticsView.qml @@ -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) @@ -108,6 +109,7 @@ Column { } Text { + textFormat: Text.PlainText visible: root.controller.error !== "" width: parent.width text: root.controller.error @@ -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 @@ -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" @@ -163,6 +167,7 @@ Column { } Text { + textFormat: Text.PlainText width: parent.width text: root.checked ? "PipeWire " + (root.snapshot.versions.pipewire || "unknown") @@ -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 @@ -202,6 +208,7 @@ Column { } Text { + textFormat: Text.PlainText id: stateText text: modelData.active ? "running" : modelData.activeState + "/" + modelData.subState @@ -243,6 +250,7 @@ Column { spacing: Style.space(4) Text { + textFormat: Text.PlainText width: parent.width text: root.graphDescription() color: root.foreground @@ -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) @@ -267,6 +276,7 @@ Column { model: root.snapshot.warnings Text { + textFormat: Text.PlainText required property string modelData width: parent.width text: "󰀦 " + modelData @@ -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" : "") @@ -321,6 +332,7 @@ Column { } Text { + textFormat: Text.PlainText width: parent.width text: root.deviceDetails(modelData) color: Qt.darker(root.foreground, 1.35) @@ -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." @@ -358,6 +371,7 @@ Column { model: root.snapshot.routes Text { + textFormat: Text.PlainText required property var modelData width: parent.width text: (modelData.direction === "recording" ? "󰍬 " : "󰐊 ") @@ -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 @@ -461,6 +476,7 @@ Column { } Text { + textFormat: Text.PlainText visible: root.controller.status !== "" width: parent.width text: root.controller.status diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/microphone/AudioMicrophoneTestController.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/microphone/AudioMicrophoneTestController.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/microphone/AudioMicrophoneTestController.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/microphone/AudioMicrophoneTestController.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/microphone/MicrophoneTestRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/microphone/MicrophoneTestRow.qml similarity index 98% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/microphone/MicrophoneTestRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/microphone/MicrophoneTestRow.qml index 2db29f0..62ca690 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/microphone/MicrophoneTestRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/microphone/MicrophoneTestRow.qml @@ -62,6 +62,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Microphone test · " + root.deviceLabel color: root.foreground @@ -72,6 +73,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.description color: root.error !== "" ? root.urgent : Qt.darker(root.foreground, 1.35) diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/panels/AdvancedAudio.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/panels/AdvancedAudio.qml similarity index 98% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/panels/AdvancedAudio.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/panels/AdvancedAudio.qml index aba47fc..2fb3878 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/panels/AdvancedAudio.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/panels/AdvancedAudio.qml @@ -1033,6 +1033,7 @@ Item { spacing: Style.space(14) Text { + textFormat: Text.PlainText text: "" color: root.foreground font.family: root.fontFamily @@ -1045,6 +1046,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText text: "Audio" color: root.foreground font.family: root.fontFamily @@ -1053,6 +1055,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Configure devices, automation, safety, and live audio diagnostics." color: Qt.darker(root.foreground, 1.35) @@ -1154,6 +1157,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Allow volume boost" color: root.foreground @@ -1164,6 +1168,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Extend device and application output volume from 100% to 150%." color: Qt.darker(root.foreground, 1.35) @@ -1279,6 +1284,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Automatic headset mode" color: root.foreground @@ -1289,6 +1295,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Switch to headset mode when an application records." color: Qt.darker(root.foreground, 1.35) @@ -1351,6 +1358,7 @@ Item { spacing: Style.space(18) Text { + textFormat: Text.PlainText visible: !root.policySettingsLoaded width: parent.width text: "Loading audio safety policies…" @@ -1360,6 +1368,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.policySettingsLoaded && root.wireplumberPolicyItemCount === 0 && root.policyError === "" width: parent.width @@ -1371,6 +1380,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.policySettingsLoaded && root.wireplumberPolicyItemCount > 0 width: parent.width text: "WirePlumber policies apply system-wide and are saved immediately. Unsupported controls are hidden automatically." @@ -1546,6 +1556,7 @@ Item { spacing: Style.space(8) Text { + textFormat: Text.PlainText width: parent.width text: "Scenes snapshot defaults, device volume, mute, balance, ports, and card profiles so you can restore the whole setup at once." color: Qt.darker(root.foreground, 1.35) @@ -1590,6 +1601,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Save current state as a new scene" color: root.foreground @@ -1600,6 +1612,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: root.sceneMutationBusy ? "Updating the audio scene…" @@ -1649,6 +1662,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.scenesLoaded && root.audioScenes.length === 0 width: parent.width text: "No scenes saved yet. Capture the current setup to restore it later from here or from the quick mixer." @@ -1659,6 +1673,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.sceneStatus !== "" width: parent.width text: root.sceneStatus @@ -1681,6 +1696,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Play through two or more connected outputs at once. Groups appear as one destination everywhere else in the mixer. Devices with separate clocks—especially Bluetooth—may drift slightly." color: Qt.darker(root.foreground, 1.35) @@ -1757,6 +1773,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.outputGroupStatus !== "" || outputGroupController.error !== "" width: parent.width @@ -1777,6 +1794,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Pin an application to a device and it is routed there every time it starts, whenever the device is present. Rules keep working while the application or device is offline." color: Qt.darker(root.foreground, 1.35) @@ -1814,6 +1832,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Pin application" color: root.foreground @@ -1824,6 +1843,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: root.newRuleApp !== "" ? root.newRuleApp : "Pick a running application" color: Qt.darker(root.foreground, 1.35) @@ -1898,6 +1918,7 @@ Item { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: "Route it to" color: root.foreground @@ -1908,6 +1929,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Outputs pin playback, inputs pin recording." color: Qt.darker(root.foreground, 1.35) @@ -2007,6 +2029,7 @@ Item { } Text { + textFormat: Text.PlainText width: parent.width text: "Give a device a custom name, favorite it to sort it first, or hide it from mixer device lists." color: Qt.darker(root.foreground, 1.35) @@ -2059,6 +2082,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.routingStatus !== "" || rulesStore.error !== "" width: parent.width text: root.routingStatus !== "" ? root.routingStatus : rulesStore.error @@ -2093,6 +2117,7 @@ Item { spacing: Style.space(12) Text { + textFormat: Text.PlainText visible: !root.profilesLoaded && ((root.activeTab === 0 && root.deviceCards.length === 0) || (root.activeTab === 1 && root.bluetoothCards.length === 0)) @@ -2103,6 +2128,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.profilesLoaded && ((root.activeTab === 0 && root.deviceCards.length === 0) || (root.activeTab === 1 && root.bluetoothCards.length === 0)) @@ -2299,6 +2325,7 @@ Item { } Text { + textFormat: Text.PlainText visible: root.error !== "" width: parent.width text: root.error diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/panels/Panel.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/panels/Panel.qml similarity index 99% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/panels/Panel.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/panels/Panel.qml index eec2be5..56bca9b 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/panels/Panel.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/panels/Panel.qml @@ -1230,6 +1230,7 @@ Panel { // Status only — the switch owns muting, mouse and keyboard alike. Text { + textFormat: Text.PlainText id: heroIcon text: root.outputIcon() color: root.bar.foreground @@ -1291,6 +1292,7 @@ Panel { spacing: Style.space(2) Text { + textFormat: Text.PlainText text: "Audio" color: root.bar.foreground font.family: root.bar.fontFamily @@ -1301,6 +1303,7 @@ Panel { } Text { + textFormat: Text.PlainText id: heroLabel text: root.outputVolumeName( outputSlider.dragging ? outputSlider.liveValue : root.outputVolume, @@ -1353,6 +1356,7 @@ Panel { bordered: true Text { + textFormat: Text.PlainText id: sceneChipLabel anchors.centerIn: parent text: sceneChip.sceneName @@ -1381,6 +1385,7 @@ Panel { } Text { + textFormat: Text.PlainText visible: root.sceneFeedback !== "" width: parent.width text: root.sceneFeedback @@ -1415,6 +1420,7 @@ Panel { } Text { + textFormat: Text.PlainText id: outputPercent text: Math.round((outputSlider.dragging ? outputSlider.liveValue : root.outputVolume) * 100) + "%" color: Qt.darker(root.bar.foreground, 1.4) @@ -1519,6 +1525,7 @@ Panel { } Text { + textFormat: Text.PlainText id: microphonePercent text: root.inputClipping ? "CLIPPING" @@ -1780,6 +1787,7 @@ Panel { } Text { + textFormat: Text.PlainText visible: root.panelError !== "" width: parent.width text: root.panelError diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/policy/AudioPolicyController.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/policy/AudioPolicyController.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/policy/AudioPolicyController.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/policy/AudioPolicyController.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/policy/AudioPolicyToggleRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/policy/AudioPolicyToggleRow.qml similarity index 96% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/policy/AudioPolicyToggleRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/policy/AudioPolicyToggleRow.qml index 7da4216..3c0a40c 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/policy/AudioPolicyToggleRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/policy/AudioPolicyToggleRow.qml @@ -30,6 +30,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.definition.label color: root.foreground @@ -40,6 +41,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.definition.description color: Qt.darker(root.foreground, 1.35) diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/policy/AudioPolicyVolumeRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/policy/AudioPolicyVolumeRow.qml similarity index 95% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/policy/AudioPolicyVolumeRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/policy/AudioPolicyVolumeRow.qml index 3530101..d74e3b4 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/policy/AudioPolicyVolumeRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/policy/AudioPolicyVolumeRow.qml @@ -35,6 +35,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.definition.label color: root.foreground @@ -45,6 +46,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.definition.description color: Qt.darker(root.foreground, 1.35) @@ -55,6 +57,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: percentage text: Math.round((slider.dragging ? slider.liveValue : root.value) * 100) + "%" color: Qt.darker(root.foreground, 1.35) diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioAppRuleRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioAppRuleRow.qml similarity index 98% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioAppRuleRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioAppRuleRow.qml index 1b22533..4e7cfc8 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioAppRuleRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioAppRuleRow.qml @@ -54,6 +54,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.appLabel color: root.foreground @@ -64,6 +65,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: (root.direction === "recording" ? "Recording" : "Playback") + " · " + (root.targetLabel !== "" ? root.targetLabel : "unknown device") diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioOutputGroupCreateRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioOutputGroupCreateRow.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioOutputGroupCreateRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioOutputGroupCreateRow.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioOutputGroupMemberLevel.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioOutputGroupMemberLevel.qml similarity index 97% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioOutputGroupMemberLevel.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioOutputGroupMemberLevel.qml index cdf0980..f43a413 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioOutputGroupMemberLevel.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioOutputGroupMemberLevel.qml @@ -40,6 +40,7 @@ Item { height: Math.max(memberLabel.implicitHeight, memberValue.implicitHeight) Text { + textFormat: Text.PlainText id: memberLabel text: root.label color: root.connected ? root.foreground : Qt.darker(root.foreground, 1.4) @@ -53,6 +54,7 @@ Item { } Text { + textFormat: Text.PlainText id: memberValue text: root.connected ? Math.round((memberSlider.dragging diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioOutputGroupRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioOutputGroupRow.qml similarity index 97% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioOutputGroupRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioOutputGroupRow.qml index 5a0a794..8cbf050 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioOutputGroupRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioOutputGroupRow.qml @@ -79,6 +79,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.groupName color: root.foreground @@ -89,6 +90,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.statusText color: root.available ? Qt.darker(root.foreground, 1.35) : root.urgent @@ -153,6 +155,7 @@ CursorSurface { height: Math.max(memberLevelsTitle.implicitHeight, sharedVolumeHint.implicitHeight) Text { + textFormat: Text.PlainText id: memberLevelsTitle text: "MEMBER LEVELS" color: root.foreground @@ -164,6 +167,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText id: sharedVolumeHint text: "SHARED DEVICE VOLUME" color: Qt.darker(root.foreground, 1.4) diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioOutputGroupsController.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioOutputGroupsController.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioOutputGroupsController.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioOutputGroupsController.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioRulesController.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioRulesController.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/routing/AudioRulesController.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/routing/AudioRulesController.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/scenes/AudioSceneController.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/scenes/AudioSceneController.qml similarity index 100% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/scenes/AudioSceneController.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/scenes/AudioSceneController.qml diff --git a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/scenes/AudioSceneRow.qml b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/scenes/AudioSceneRow.qml similarity index 97% rename from runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/scenes/AudioSceneRow.qml rename to runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/scenes/AudioSceneRow.qml index f42375e..b38c5b7 100644 --- a/runtime/dbca1daa77eabc715124defe44540e45a3f412bf9f7f76d4eb1ab5fe8cb79667/qml/scenes/AudioSceneRow.qml +++ b/runtime/3b9a83e019dc97d72fc5811b677ffca8800577e0aad56b3ed924b393c0871d84/qml/scenes/AudioSceneRow.qml @@ -47,6 +47,7 @@ CursorSurface { spacing: Style.space(3) Text { + textFormat: Text.PlainText width: parent.width text: root.sceneName color: root.foreground @@ -57,6 +58,7 @@ CursorSurface { } Text { + textFormat: Text.PlainText width: parent.width text: root.description color: Qt.darker(root.foreground, 1.35) diff --git a/test/fixtures/TextRenderingHarness.qml b/test/fixtures/TextRenderingHarness.qml new file mode 100644 index 0000000..489fcb0 --- /dev/null +++ b/test/fixtures/TextRenderingHarness.qml @@ -0,0 +1,69 @@ +import QtQuick +import QtQuick.Window +import Quickshell + +ShellRoot { + id: root + property string pluginRoot: ROOT_URL + property string server: SERVER_URL + property var labels: [] + + function payload(path) { return ' Speaker & name' } + function create(path, parent, properties) { + var component = Qt.createComponent(pluginRoot + path) + if (component.status !== Component.Ready) { + console.error(component.errorString()); Qt.exit(1); return null + } + var item = component.createObject(parent, properties) + if (!item) { console.error("Could not create", path); Qt.exit(1) } + return item + } + function expectLabel(item, text) { labels.push({item: item, text: text}) } + function containsLabel(item, text) { + var pending = [item], seen = [] + while (pending.length) { + var next = pending.pop() + if (!next || seen.indexOf(next) !== -1) continue + seen.push(next) + if (next.textFormat !== undefined && next.text === text) return true + var children = next.data || next.children || [] + for (var i = 0; i < children.length; i++) pending.push(children[i]) + if (next.contentItem) pending.push(next.contentItem) + } + return false + } + + Window { + id: window + width: 900; height: 600; visible: true + Column { + id: rows + width: parent.width + Text { text: ''; textFormat: Text.AutoText } + } + Component.onCompleted: { + var profile = root.create("qml/devices/AudioProfileRow.qml", rows, { + card: {bluetooth: true, label: root.payload("profile")}, rowIndex: 0, + currentProfile: "a2dp", options: [{value: "a2dp", label: "A2DP"}], menuEnabled: true + }) + root.expectLabel(profile, root.payload("profile")) + var dropdown = root.create("qml/components/AudioDropdown.qml", rows, { + width: 800, label: root.payload("dropdown-header"), value: "selected", + options: [{value: "selected", label: root.payload("dropdown-option")}] + }) + root.expectLabel(dropdown, root.payload("dropdown-header")) + root.expectLabel(dropdown, root.payload("dropdown-option")) + } + } + Timer { + interval: 1500; running: true + onTriggered: { + for (var i = 0; i < root.labels.length; i++) { + if (!root.containsLabel(root.labels[i].item, root.labels[i].text)) { + console.error("Original label was lost", root.labels[i].text); Qt.exit(1); return + } + } + console.log("TEXT_RENDERING_READY"); Qt.quit() + } + } +} diff --git a/test/integration/text_rendering.py b/test/integration/text_rendering.py new file mode 100644 index 0000000..f2b5c7a --- /dev/null +++ b/test/integration/text_rendering.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +"""Render hostile labels in the real QML components without fetching their images.""" +import base64 +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer +import json +import os +from pathlib import Path +import subprocess +import tempfile +from threading import Thread + +ROOT = Path(__file__).resolve().parents[2] +SHELL = Path(os.environ.get('AUDIO_TEST_OMARCHY_SHELL', '/usr/share/omarchy/shell')) +IMAGE = base64.b64decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aM8sAAAAASUVORK5CYII=') + + +class Requests(BaseHTTPRequestHandler): + paths = [] + + def do_GET(self): + self.paths.append(self.path) + self.send_response(200) + self.send_header('Content-Type', 'image/png') + self.end_headers() + self.wfile.write(IMAGE) + + def log_message(self, *_args): + pass + + +assert all((SHELL/name).is_dir() for name in ('Ui', 'Commons')), 'Set AUDIO_TEST_OMARCHY_SHELL to an Omarchy shell checkout' +with ThreadingHTTPServer(('127.0.0.1', 0), Requests) as server: + thread = Thread(target=server.serve_forever, daemon=True) + thread.start() + try: + with tempfile.TemporaryDirectory(prefix='audio-text-rendering-') as temporary: + work = Path(temporary) + for name in ('Ui', 'Commons'): + (work/name).symlink_to(SHELL/name, target_is_directory=True) + source = (ROOT/'test/fixtures/TextRenderingHarness.qml').read_text() + source = source.replace('ROOT_URL', json.dumps(ROOT.as_uri()+'/')) + source = source.replace('SERVER_URL', json.dumps(f'http://127.0.0.1:{server.server_port}')) + fixture = work/'shell.qml' + fixture.write_text(source) + env = dict(os.environ, QT_QPA_PLATFORM='offscreen', QT_QUICK_BACKEND='software', + XDG_RUNTIME_DIR=temporary, XDG_CONFIG_HOME=str(work/'config'), + XDG_STATE_HOME=str(work/'state'), XDG_CACHE_HOME=str(work/'cache'), + DBUS_SYSTEM_BUS_ADDRESS='unix:path='+str(work/'absent-bus')) + for name in ('DISPLAY', 'WAYLAND_DISPLAY', 'HYPRLAND_INSTANCE_SIGNATURE', 'QT_QPA_PLATFORMTHEME'): + env.pop(name, None) + result = subprocess.run(['quickshell', '--no-color', '-p', str(fixture)], + env=env, capture_output=True, text=True, timeout=10) + output = result.stdout+result.stderr + assert result.returncode == 0 and 'TEXT_RENDERING_READY' in output, output + assert not any(error in output for error in ('TypeError:', 'ReferenceError:')), output + assert '/control' in Requests.paths, 'The AutoText network control did not fetch its image: '+output + unexpected = [path for path in Requests.paths if path != '/control'] + assert not unexpected, f'Label markup triggered image requests: {unexpected}' + finally: + server.shutdown() + thread.join() +print('PASS: hostile labels remain literal and make no image requests')