sepal_ui.sepalwidgets.app.ThemeSelect#
- class sepal_ui.sepalwidgets.app.ThemeSelect(**kwargs)[source]#
A theme selector for sepal-ui based application.
It displays the currently requested theme (default to dark). When value is changed, the sepal-ui config file is updated. It is designed to be used in a AppBar component.
New in version 2.7.0.
- Parameters:
kwargs – any arguments for a Btn object, children and v_model will be override
Attributes
THEME_ICONS
the dictionnry of icons to use for each theme (used as keys)
theme
the current theme of the widget (default to dark)
Methods
A theme selector for sepal-ui based application.
Toggle the btn icon from dark to light and adapt the configuration file.
- ThemeSelect.__init__(**kwargs)[source]#
A theme selector for sepal-ui based application.
It displays the currently requested theme (default to dark). When value is changed, the sepal-ui config file is updated. It is designed to be used in a AppBar component.
New in version 2.7.0.
- Parameters:
kwargs – any arguments for a Btn object, children and v_model will be override
- Return type:
None