batgrl.gadgets.behaviors.themable#
Themable behavior for gadgets.
Classes
|
Themable behavior for a gadget. |
|
A foreground and background pair of colors. |
|
- class batgrl.gadgets.behaviors.themable.Themable#
Bases:
ABC
Themable behavior for a gadget.
Themable gadgets share a color theme. They must implement
update_theme()
which paints the gadget with current theme.Whenever the running app’s theme is changed, update_theme will be called for all
Themable
gadgets.Methods
update_theme()
Paint the gadget with current theme.
- color_theme: _ColorTheme#
- on_add()#
Update theme.
- classmethod set_theme(color_theme: ColorTheme)#
Set color theme.
- abstract update_theme()#
Paint the gadget with current theme.