mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-04-18 05:23:31 +00:00
add profiles to defaults, add minsize.
changes to menus. vban menu text changed themes menu reworked. now using set_theme not toggle.
This commit is contained in:
@@ -35,6 +35,9 @@ class App(tk.Tk):
|
||||
def __init__(self, vmr):
|
||||
super().__init__()
|
||||
defaults = {
|
||||
"profiles": {
|
||||
"profile": None,
|
||||
},
|
||||
"theme": {
|
||||
"enabled": True,
|
||||
"mode": "light",
|
||||
@@ -69,8 +72,14 @@ class App(tk.Tk):
|
||||
"vban": list(tk.StringVar(value="normal") for _ in range(8)),
|
||||
}
|
||||
|
||||
if (
|
||||
"profiles" in self.configuration
|
||||
and self.configuration["profiles"]["profile"]
|
||||
):
|
||||
vmr.apply_profile(self.configuration["profiles"]["profile"])
|
||||
|
||||
# create menus
|
||||
self.menus = Menus(self, vmr)
|
||||
self["menu"] = Menus(self, vmr)
|
||||
self.styletable = ttk.Style()
|
||||
self._vmr = vmr
|
||||
|
||||
@@ -90,6 +99,8 @@ class App(tk.Tk):
|
||||
|
||||
self.iconbitmap(Path(__file__).parent.resolve() / "img" / "cat.ico")
|
||||
|
||||
self.minsize(400, False)
|
||||
|
||||
@property
|
||||
def target(self):
|
||||
"""returns the current interface"""
|
||||
|
||||
Reference in New Issue
Block a user