maliang.theme.manager¶
字数 324 个 代码 42 行 阅读时间 2 分钟 访问量
Support for theme
- darkdetect: albertosottile/darkdetect
- pywinstyles: Akascape/py-window-styles
- win32material: littlewhitecloud/win32material
- hPyT: Zingzy/hPyT
🔵_callback
¶
function
protected
theme
: theme name
🔵_process_event
¶
function
protected
theme
: theme name
🔵apply_file_dnd
¶
function
public
window
: the window which being customizedcommand
: callback function, accept a parameter that represents the path of the file
This function is only works on Windows OS!
🔵apply_theme
¶
function
public
window
: the window which being customizedtheme
: different themes for windows
This function is only works on Windows OS! And some parameters are useless on Windows 7/10!
🔵customize_window
¶
function
public
Customize the relevant properties of the window
window
: the window which being customizedborder_color
: border color of the windowheader_color
: header color of the windowtitle_color
: title color of the windowhide_title_bar
: Wether hide the whole title barhide_button
: Wether hide part of buttons on title bardisable_minimize_button
: Wether disable minimize buttondisable_maximize_button
: Wether disable maximize buttonborder_type
: border type of the window
This function is only works on Windows OS! And some parameters are useless on Windows 7/10!
🔵get_color_mode
¶
function
public
🔵register_event
¶
function
public
func
: callback functionargs
: extra arguments
🔵remove_event
¶
function
public
func
: callback function
🔵set_color_mode
¶
function
public
mode
: it can be"light"
,"dark"
, and"system"
TIP:
"system"
is the following system
🟣_callback_events
¶
variable
protected
🟣_color_mode
¶
variable
protected