From 35eb42980c7b9f2f2ecab1f04b4a8055e6478446 Mon Sep 17 00:00:00 2001 From: HEnquist Date: Thu, 29 Aug 2024 22:57:33 +0200 Subject: [PATCH] Add setting for volume slider range --- backend/settings.py | 2 ++ backend/settings_schemas.py | 2 ++ config/gui-config.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/backend/settings.py b/backend/settings.py index ca31911..b7637fc 100644 --- a/backend/settings.py +++ b/backend/settings.py @@ -23,6 +23,8 @@ "apply_config_automatically": False, "save_config_automatically": False, "status_update_interval": 100, + "volume_range": 50, + "volume_max": 0, } # Default values for the optional settings. diff --git a/backend/settings_schemas.py b/backend/settings_schemas.py index 2c16af2..52d3b17 100644 --- a/backend/settings_schemas.py +++ b/backend/settings_schemas.py @@ -48,6 +48,8 @@ "apply_config_automatically": {"type": "boolean"}, "save_config_automatically": {"type": "boolean"}, "status_update_interval": {"type": "integer", "minValue": 1}, + "volume_range": {"type": "number", "exclusiveMinimum": 0, "maxValue": 200}, + "volume_max": {"type": "integer", "minValue": -100, "maxValue": 50}, "custom_shortcuts": { "type": ["array", "null"], "items": { diff --git a/config/gui-config.yml b/config/gui-config.yml index 96b4438..8822671 100644 --- a/config/gui-config.yml +++ b/config/gui-config.yml @@ -6,6 +6,8 @@ hide_playback_device: false hide_rate_monitoring: false apply_config_automatically: false status_update_interval: 100 +volume_range: 50 +volume_max: 0 custom_shortcuts: - section: "Equalizer" description: |