Big UI: Sounds/Alerts Fixes

This commit is contained in:
firestarsdog
2026-07-16 23:03:26 -04:00
parent 94141aebb1
commit 03ebfd2c69
@@ -94,13 +94,13 @@ class SoundsManagerView(AdjustorTogglesPanelView):
adjustor = AetherAdjustorRow(
tr(info["title"]),
tr(info["subtitle"]),
0.0, 101.0, 1.0,
float(info["min"]), 101.0, 1.0,
get_value=lambda k=key: float(self._controller._params.get_int(k, return_default=True, default=101)),
on_change=lambda _v: None,
on_commit=None,
unit="%",
labels={0.0: tr("Muted"), 101.0: tr("Auto")},
presets=[0, 25, 50, 75, 101],
presets=[p for p in [0, 25, 50, 75, 101] if p >= info["min"]],
is_active=lambda: False,
set_active=lambda active, k=key: self._show_volume_slider(k) if active else None,
style=PANEL_STYLE,
@@ -170,12 +170,12 @@ class SoundsManagerView(AdjustorTogglesPanelView):
gui_app.push_widget(
AetherSliderDialog(
title=dialog_title,
min_val=0.0,
min_val=float(min_v),
max_val=101.0,
step=1.0,
current_val=current_val,
on_close=on_close,
presets=[0.0, 25.0, 50.0, 75.0, 101.0],
presets=[float(p) for p in [0, 25, 50, 75, 101] if p >= min_v],
unit="%",
labels={0.0: tr("Muted"), 101.0: tr("Auto")},
color=PANEL_STYLE.accent,