mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-04-18 05:23:31 +00:00
sun valley theme added as module
sun valley theme now added as pip module added sv-ttk to setup.py changes to code to load as module
This commit is contained in:
@@ -2,6 +2,7 @@ import tkinter as tk
|
||||
from tkinter import ttk
|
||||
from typing import NamedTuple
|
||||
from pathlib import Path
|
||||
import sv_ttk
|
||||
|
||||
from .errors import VMCompactErrors
|
||||
from .data import _base_vals, _kinds_all
|
||||
@@ -127,11 +128,7 @@ class App(tk.Tk):
|
||||
|
||||
def apply_theme(self):
|
||||
_base_vals.using_theme = True
|
||||
self.tk.call(
|
||||
"source",
|
||||
Path(__file__).parent.resolve() / "sun-valley-theme/sun-valley.tcl",
|
||||
)
|
||||
self.tk.call("set_theme", self.configuration["theme"]["mode"])
|
||||
sv_ttk.set_theme(self.configuration["theme"]["mode"])
|
||||
|
||||
def _make_app(self, kind, vban=None):
|
||||
self.title(
|
||||
|
||||
Reference in New Issue
Block a user