mirror of
https://github.com/Anjok07/ultimatevocalremovergui.git
synced 2024-11-23 23:10:57 +01:00
Add files via upload
This commit is contained in:
parent
eee83254e4
commit
d828060916
@ -38,11 +38,12 @@ def init(func):
|
|||||||
|
|
||||||
|
|
||||||
@init
|
@init
|
||||||
def set_theme(theme, font_name="Century Gothic", f_size=10):
|
def set_theme(theme, font_name="Century Gothic", f_size=10, fg_color_set="#F6F6F7"):
|
||||||
if theme not in {"dark", "light"}:
|
if theme not in {"dark", "light"}:
|
||||||
raise RuntimeError(f"not a valid theme name: {theme}")
|
raise RuntimeError(f"not a valid theme name: {theme}")
|
||||||
|
|
||||||
root.globalsetvar("fontName", (font_name, f_size))
|
root.globalsetvar("fontName", (font_name, f_size))
|
||||||
|
root.globalsetvar("fgcolorset", (fg_color_set))
|
||||||
root.tk.call("set_theme", theme)
|
root.tk.call("set_theme", theme)
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ proc set_theme {mode} {
|
|||||||
ttk::style theme use "sun-valley-dark"
|
ttk::style theme use "sun-valley-dark"
|
||||||
|
|
||||||
set fontString "$::fontName"
|
set fontString "$::fontName"
|
||||||
|
set fgSet "$::fgcolorset"
|
||||||
|
|
||||||
array set colors {
|
array set colors {
|
||||||
-fg "#F6F6F7"
|
-fg "#F6F6F7"
|
||||||
@ -20,7 +21,7 @@ proc set_theme {mode} {
|
|||||||
|
|
||||||
ttk::style configure . \
|
ttk::style configure . \
|
||||||
-background $colors(-bg) \
|
-background $colors(-bg) \
|
||||||
-foreground $colors(-fg) \
|
-foreground $fgSet \
|
||||||
-troughcolor $colors(-bg) \
|
-troughcolor $colors(-bg) \
|
||||||
-focuscolor $colors(-selectbg) \
|
-focuscolor $colors(-selectbg) \
|
||||||
-selectbackground $colors(-selectbg) \
|
-selectbackground $colors(-selectbg) \
|
||||||
|
Loading…
Reference in New Issue
Block a user