mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-15 17:40:52 +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:
parent
828abf7832
commit
b223044ddf
@ -5,7 +5,7 @@ mode="light"
|
|||||||
# load in extended mode? if so which orientation
|
# load in extended mode? if so which orientation
|
||||||
[extends]
|
[extends]
|
||||||
extended=true
|
extended=true
|
||||||
extends_horizontal=false
|
extends_horizontal=true
|
||||||
# default dimensions for channel label frames
|
# default dimensions for channel label frames
|
||||||
[channel]
|
[channel]
|
||||||
width=80
|
width=80
|
||||||
|
@ -40,20 +40,26 @@ class App(tk.Tk):
|
|||||||
"mode": "light",
|
"mode": "light",
|
||||||
},
|
},
|
||||||
"extends": {
|
"extends": {
|
||||||
"extended": False,
|
"extended": True,
|
||||||
"extends_horizontal": True,
|
"extends_horizontal": True,
|
||||||
},
|
},
|
||||||
|
"channel": {
|
||||||
|
"width": 80,
|
||||||
|
"height": 130,
|
||||||
|
},
|
||||||
"submixes": {
|
"submixes": {
|
||||||
"default": 0,
|
"default": 0,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
self.configuration = defaults | self.configuration
|
if configuration:
|
||||||
_base_vals.themes_enabled = self.configuration["theme"]["enabled"]
|
self.configuration = defaults | self.configuration
|
||||||
_base_vals.extends_horizontal = self.configuration["extends"][
|
_base_vals.themes_enabled = self.configuration["theme"]["enabled"]
|
||||||
"extends_horizontal"
|
_base_vals.extends_horizontal = self.configuration["extends"][
|
||||||
]
|
"extends_horizontal"
|
||||||
_base_vals.submixes = self.configuration["submixes"]["default"]
|
]
|
||||||
|
_base_vals.submixes = self.configuration["submixes"]["default"]
|
||||||
|
else:
|
||||||
|
configuration["app"] = defaults
|
||||||
# create menus
|
# create menus
|
||||||
self.menus = Menus(self, vmr)
|
self.menus = Menus(self, vmr)
|
||||||
self.styletable = ttk.Style()
|
self.styletable = ttk.Style()
|
||||||
|
Loading…
Reference in New Issue
Block a user