2********************************************************************************
4@brief handle windows size and scale factor and update items
5********************************************************************************
9from typing
import Optional, TYPE_CHECKING
19log = logging.getLogger(__title__)
24 @brief Class to scale text and item positions.
25 @param ui : main window object
36 @brief Check for style change
37 @param e_style : style to set
48 self.
e_actual_theme = ETheme.LIGHT
if darkdetect.isLight()
else ETheme.DARK
50 log.warning(
"Invalid theme change: %s", e_style)
56 @brief Update dark mode status.
57 @param e_style : select theme mode
65 @brief Set dialog theme style.
69 customtkinter.set_appearance_mode(
"light")
71 customtkinter.set_appearance_mode(
"dark")
77 @brief get status for active light theme (or classic -> not dark).
78 @return status if theme is light
Class to scale text and item positions.
bool is_light_theme(self)
get status for active light theme (or classic -> not dark).
None update_darkmode_status(self, ETheme e_style)
Update dark mode status.
__init__(self, "MainWindow" ui)
None check_for_style_change(self, Optional[ETheme] e_style=None)
Check for style change.
None set_dialog_style(self)
Set dialog theme style.