mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-19 00:02:08 +08:00
Big UI: Sounds/Alerts Fixes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user