SyncTk/classes/custom/themed_toplevel.py
2023-01-22 20:06:55 +01:00

13 lines
336 B
Python

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())