diff --git a/README.md b/README.md index cba750f..630503c 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ def apply_theme_to_titlebar(root): # Set the title bar color to the background color on Windows 11 for better appearance pywinstyles.change_header_color(root, "#1c1c1c" if sv_ttk.get_theme() == "dark" else "#fafafa") elif version.major == 10: - pywinstyles.apply_style(root, "dark" sv_ttk.get_theme() == "dark" else "normal") + pywinstyles.apply_style(root, "dark" if sv_ttk.get_theme() == "dark" else "normal") # A hacky way to update the title bar's color on Windows 10 (it doesn't update instantly like on Windows 11) root.wm_attributes("-alpha", 0.99)