SyncTk/classes/custom/themed_toplevel.py

13 lines
336 B
Python
Raw Normal View History

2023-01-22 21:06:55 +02:00
from tkinter import Misc, Toplevel
import sv_ttk
from modules.theme_titlebar import theme_title_bar
from modules.utils import get_string_mode, use_dark_mode
class ThemedToplevel(Toplevel):
def __init__(self, master: Misc, **kwargs) -> None:
super().__init__(master, **kwargs)
sv_ttk.set_theme(get_string_mode())