mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-04-09 09:23:29 +00:00
add to defaults, change default orientation
add channel to defaults. if no app.toml loaded then set to defaults. change default extend orientation to horizontal
This commit is contained in:
@@ -40,20 +40,26 @@ class App(tk.Tk):
|
||||
"mode": "light",
|
||||
},
|
||||
"extends": {
|
||||
"extended": False,
|
||||
"extended": True,
|
||||
"extends_horizontal": True,
|
||||
},
|
||||
"channel": {
|
||||
"width": 80,
|
||||
"height": 130,
|
||||
},
|
||||
"submixes": {
|
||||
"default": 0,
|
||||
},
|
||||
}
|
||||
self.configuration = defaults | self.configuration
|
||||
_base_vals.themes_enabled = self.configuration["theme"]["enabled"]
|
||||
_base_vals.extends_horizontal = self.configuration["extends"][
|
||||
"extends_horizontal"
|
||||
]
|
||||
_base_vals.submixes = self.configuration["submixes"]["default"]
|
||||
|
||||
if configuration:
|
||||
self.configuration = defaults | self.configuration
|
||||
_base_vals.themes_enabled = self.configuration["theme"]["enabled"]
|
||||
_base_vals.extends_horizontal = self.configuration["extends"][
|
||||
"extends_horizontal"
|
||||
]
|
||||
_base_vals.submixes = self.configuration["submixes"]["default"]
|
||||
else:
|
||||
configuration["app"] = defaults
|
||||
# create menus
|
||||
self.menus = Menus(self, vmr)
|
||||
self.styletable = ttk.Style()
|
||||
|
||||
Reference in New Issue
Block a user