pysepal.sepalwidgets.app.ThemeSelect#

class pysepal.sepalwidgets.app.ThemeSelect(*args, **kwargs)[source]#

Deprecated since version 3.0.0: This class will be renamed to ThemeToggle in v3.2.0 for better clarity

Initialize the ThemeSelect widget and set default theme configuration.

Attributes

auto_icon

A trait for unicode strings.

dark

A boolean (True, False) trait.

enable_auto

A boolean (True, False) trait.

off_icon

A trait for unicode strings.

on_icon

A trait for unicode strings.

template_file

A trait for unicode strings.

Methods

__init__

Initialize the ThemeSelect widget and set default theme configuration.

toggle_theme

Toggle between dark and light theme and save to config.

ThemeSelect.__init__()[source]#

Initialize the ThemeSelect widget and set default theme configuration.

ThemeSelect.toggle_theme()[source]#

Toggle between dark and light theme and save to config.

This method can be used for testing or programmatic theme switching without relying on the Vue frontend.

Return type:

None