Settings page, themes and cut path check for future updates. Volume now saved to config.
This commit is contained in:
@@ -6,3 +6,4 @@ from dataclasses_json import dataclass_json
|
||||
@dataclass(frozen=True)
|
||||
class ConfigModel:
|
||||
theme: str
|
||||
volume: int
|
||||
|
||||
@@ -7,7 +7,8 @@ class Config:
|
||||
@staticmethod
|
||||
def default():
|
||||
return {
|
||||
"theme": "Dark gray"
|
||||
"theme": "Dark gray",
|
||||
"volume": 100
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user