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.
This commit is contained in:
1 parent
c483c012b3
commit
85b6602b31
1 file changed
+29
-31
+29
-31
@@ -607,8 +607,21 @@ fn audio(app: &App, p: Paint, kit: &rune_kit::Kit, layer: &mut Vec<El>, 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<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(
|
||||
@@ -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"),
|
||||
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(
|
||||
|
||||
Reference in new issue
Block a user