mirror of
https://github.com/Anjok07/ultimatevocalremovergui.git
synced 2025-01-19 17:18:39 +01:00
Add files via upload
This commit is contained in:
parent
4b7ad5a04b
commit
488550d4ff
@ -38,10 +38,11 @@ def init(func):
|
||||
|
||||
|
||||
@init
|
||||
def set_theme(theme):
|
||||
def set_theme(theme, font_name="Century Gothic", f_size=10):
|
||||
if theme not in {"dark", "light"}:
|
||||
raise RuntimeError(f"not a valid theme name: {theme}")
|
||||
|
||||
root.globalsetvar("fontName", (font_name, f_size))
|
||||
root.tk.call("set_theme", theme)
|
||||
|
||||
|
||||
|
@ -8,6 +8,8 @@ proc set_theme {mode} {
|
||||
if {$mode == "dark"} {
|
||||
ttk::style theme use "sun-valley-dark"
|
||||
|
||||
set fontString "$::fontName"
|
||||
|
||||
array set colors {
|
||||
-fg "#F6F6F7"
|
||||
-bg "#0e0e0f"
|
||||
@ -26,7 +28,7 @@ proc set_theme {mode} {
|
||||
-insertwidth 0 \
|
||||
-insertcolor $colors(-fg) \
|
||||
-fieldbackground $colors(-selectbg) \
|
||||
-font {"Century Gothic" 10} \
|
||||
-font $fontString \
|
||||
-borderwidth 0 \
|
||||
-relief flat
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user