diff --git a/configs/app.toml b/configs/app.toml index 7e11b7c..50d8388 100644 --- a/configs/app.toml +++ b/configs/app.toml @@ -5,7 +5,7 @@ mode="light" # load in extended mode? if so which orientation [extends] extended=true -extends_horizontal=false +extends_horizontal=true # default dimensions for channel label frames [channel] width=80 diff --git a/vmcompact/app.py b/vmcompact/app.py index da6829f..1b8d009 100644 --- a/vmcompact/app.py +++ b/vmcompact/app.py @@ -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()