mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-04-18 13:33:30 +00:00
gui rewritten with builder classes and observables
gui rewritten with builder classes and observables
This commit is contained in:
@@ -16,5 +16,39 @@ for path in config_path:
|
||||
print(f"Invalid TOML profile: configs/{filename.stem}")
|
||||
|
||||
for name, cfg in configs.items():
|
||||
print(f"Loaded profile configs/{name}")
|
||||
print(f"Loaded configuration configs/{name}")
|
||||
configuration[name] = cfg
|
||||
|
||||
_defaults = {
|
||||
"profiles": {
|
||||
"profile": None,
|
||||
},
|
||||
"theme": {
|
||||
"enabled": True,
|
||||
"mode": "light",
|
||||
},
|
||||
"extends": {
|
||||
"extended": True,
|
||||
"extends_horizontal": True,
|
||||
},
|
||||
"channel": {
|
||||
"width": 80,
|
||||
"height": 130,
|
||||
},
|
||||
"mwscroll_step": {
|
||||
"size": 3,
|
||||
},
|
||||
"submixes": {
|
||||
"default": 0,
|
||||
},
|
||||
}
|
||||
|
||||
if "app" in configuration:
|
||||
configuration["app"] = _defaults | configuration["app"]
|
||||
else:
|
||||
configuration["app"] = _defaults
|
||||
|
||||
|
||||
def get_configuration(key):
|
||||
if key in configuration:
|
||||
return configuration[key]
|
||||
|
||||
Reference in New Issue
Block a user