Settings page, themes and cut path check for future updates. Volume now saved to config.

This commit is contained in:
BarsTiger
2022-11-29 23:27:20 +02:00
parent e9b7f1fdc1
commit 4d698235a1
14 changed files with 374 additions and 15 deletions

View File

@@ -6,3 +6,4 @@ from dataclasses_json import dataclass_json
@dataclass(frozen=True)
class ConfigModel:
theme: str
volume: int

View File

@@ -7,7 +7,8 @@ class Config:
@staticmethod
def default():
return {
"theme": "Dark gray"
"theme": "Dark gray",
"volume": 100
}
@staticmethod

View File

@@ -68,3 +68,6 @@ class Player(object):
def set_position(self, pos: float):
self.mediaplayer_preview.set_position(pos)
self.mediaplayer_out.set_position(pos)
def update_devices(self):
pass