app: put each audio volume under the source it drives
record-daemon / Check and lint (Linux) (push) Successful in 1m12s
record-daemon / Build (Windows x64) (push) Successful in 1m55s

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.
This commit is contained in:
vhaudiquet committed 2026-11-24 00:02:43 +01:00
1 parent c483c012b3
commit 85b6602b31
1 file changed
+29 -31
+29 -31
View File
@@ -607,8 +607,21 @@ fn audio(app: &App, p: Paint, kit: &rune_kit::Kit, layer: &mut Vec<El>, content:
content content
.child(ui::card( .child(ui::card(
p, p,
Some("Levels"), Some("Game"),
vec![ 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( ui::setting_row(
p, p,
"game-volume", "game-volume",
@@ -624,36 +637,6 @@ fn audio(app: &App, p: Paint, kit: &rune_kit::Kit, layer: &mut Vec<El>, 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( .child(ui::card(
@@ -671,6 +654,21 @@ fn audio(app: &App, p: Paint, kit: &rune_kit::Kit, layer: &mut Vec<El>, content:
}, },
), ),
mic_row(p, kit, layer, app, "mic-device"), 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( .child(ui::card_action(