From 85b6602b31a3e68d65151ac2f0cf68ca235e9b70 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Tue, 24 Nov 2026 00:02:43 +0100 Subject: [PATCH] app: put each audio volume under the source it drives The Audio tab's Levels card held the game, microphone and applications volumes, so the microphone's level sat away from its picker, the game had no on/off, and the applications volume was a fallback that the per-application sliders made invisible. The card is Game now: Record game audio, which switches the master and the game capture together as the quick tab's does, and Game volume. Microphone volume moves under the microphone picker. The applications card keeps one volume per source and the row for all of them is gone. apps_volume stays in the settings: the daemon reads it for a source that has no volume of its own. --- app/src/screens/settings.rs | 60 ++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/app/src/screens/settings.rs b/app/src/screens/settings.rs index fae4201..307aaa7 100644 --- a/app/src/screens/settings.rs +++ b/app/src/screens/settings.rs @@ -607,8 +607,21 @@ fn audio(app: &App, p: Paint, kit: &rune_kit::Kit, layer: &mut Vec, content: content .child(ui::card( p, - Some("Levels"), + Some("Game"), vec![ + ui::toggle_row( + p, + "game-audio", + "Record game audio", + a.enabled && a.capture_game, + |app: &mut App| { + let on = + !(app.form.draft.audio.enabled && app.form.draft.audio.capture_game); + app.form.draft.audio.enabled = on; + app.form.draft.audio.capture_game = on; + app.form.dirty = true; + }, + ), ui::setting_row( p, "game-volume", @@ -624,36 +637,6 @@ fn audio(app: &App, p: Paint, kit: &rune_kit::Kit, layer: &mut Vec, content: }, ), ), - ui::setting_row( - p, - "mic-volume", - "Microphone volume", - ui::slider( - p, - "mic-volume", - "Microphone volume", - a.mic_volume, - |app, value| { - app.form.draft.audio.mic_volume = value; - app.form.dirty = true; - }, - ), - ), - ui::setting_row( - p, - "apps-volume", - "Applications volume", - ui::slider( - p, - "apps-volume", - "Applications volume", - a.apps_volume, - |app, value| { - app.form.draft.audio.apps_volume = value; - app.form.dirty = true; - }, - ), - ), ], )) .child(ui::card( @@ -671,6 +654,21 @@ fn audio(app: &App, p: Paint, kit: &rune_kit::Kit, layer: &mut Vec, content: }, ), mic_row(p, kit, layer, app, "mic-device"), + ui::setting_row( + p, + "mic-volume", + "Microphone volume", + ui::slider( + p, + "mic-volume", + "Microphone volume", + a.mic_volume, + |app, value| { + app.form.draft.audio.mic_volume = value; + app.form.dirty = true; + }, + ), + ), ], )) .child(ui::card_action(