mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-22 04:40:55 +00:00
Update app.py
using __file__ to fetch path dir add default value for submix
This commit is contained in:
parent
47d7014592
commit
838ba42b9d
@ -36,12 +36,16 @@ class App(tk.Tk):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
defaults = {
|
defaults = {
|
||||||
"theme": {
|
"theme": {
|
||||||
|
"enabled": True,
|
||||||
"mode": "light",
|
"mode": "light",
|
||||||
},
|
},
|
||||||
"extends": {
|
"extends": {
|
||||||
"extended": False,
|
"extended": False,
|
||||||
"extends_horizontal": True,
|
"extends_horizontal": True,
|
||||||
},
|
},
|
||||||
|
"submixes": {
|
||||||
|
"default": 0,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
self.configuration = defaults | self.configuration
|
self.configuration = defaults | self.configuration
|
||||||
_base_vals.themes_enabled = self.configuration["theme"]["enabled"]
|
_base_vals.themes_enabled = self.configuration["theme"]["enabled"]
|
||||||
@ -66,7 +70,7 @@ class App(tk.Tk):
|
|||||||
self.drag_id = ""
|
self.drag_id = ""
|
||||||
self.bind("<Configure>", self.dragging)
|
self.bind("<Configure>", self.dragging)
|
||||||
|
|
||||||
self.iconbitmap(Path.cwd() / "vmcompact" / "img" / "cat.ico")
|
self.iconbitmap(Path(__file__).parent.resolve() / "img" / "cat.ico")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def target(self):
|
def target(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user