ultimatevocalremovergui/gui_data/sv_ttk/sun-valley.tcl

53 lines
1.7 KiB
Tcl
Raw Permalink Normal View History

2022-12-19 04:27:09 +01:00
# Copyright © 2021 rdbende <rdbende@gmail.com>
source [file join [file dirname [info script]] theme dark.tcl]
option add *tearOff 0
proc set_theme {mode} {
if {$mode == "dark"} {
ttk::style theme use "sun-valley-dark"
2023-09-26 00:13:31 +02:00
set fontString "$::fontName"
2023-09-27 05:01:36 +02:00
set fgSet "$::fgcolorset"
2023-09-26 00:13:31 +02:00
2022-12-19 04:27:09 +01:00
array set colors {
-fg "#F6F6F7"
-bg "#0e0e0f"
-disabledfg "#F6F6F7"
-selectfg "#F6F6F7"
-selectbg "#003b50"
}
ttk::style configure . \
-background $colors(-bg) \
2023-09-27 05:01:36 +02:00
-foreground $fgSet \
2022-12-19 04:27:09 +01:00
-troughcolor $colors(-bg) \
-focuscolor $colors(-selectbg) \
-selectbackground $colors(-selectbg) \
-selectforeground $colors(-selectfg) \
-insertwidth 0 \
-insertcolor $colors(-fg) \
-fieldbackground $colors(-selectbg) \
2023-09-26 00:13:31 +02:00
-font $fontString \
2022-12-19 04:27:09 +01:00
-borderwidth 0 \
-relief flat
tk_setPalette \
background [ttk::style lookup . -background] \
foreground [ttk::style lookup . -foreground] \
highlightColor [ttk::style lookup . -focuscolor] \
selectBackground [ttk::style lookup . -selectbackground] \
selectForeground [ttk::style lookup . -selectforeground] \
activeBackground [ttk::style lookup . -selectbackground] \
activeForeground [ttk::style lookup . -selectforeground]
ttk::style map . -foreground [list disabled $colors(-disabledfg)]
option add *font [ttk::style lookup . -font]
option add *Menu.selectcolor $colors(-fg)
option add *Menu.background #0e0e0f
}
}