pysepal.sepalwidgets.vue_app.ThemeToggle#

class pysepal.sepalwidgets.vue_app.ThemeToggle(*args, **kwargs)[source]#

Initialize the toggle, optionally bound to a shared ThemeState.

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.

resolved_dark

A boolean (True, False) trait.

template_file

A trait for unicode strings.

Methods

__init__

Initialize the toggle, optionally bound to a shared ThemeState.

bind_theme_state

Bind the toggle widget to a shared theme state.

get_theme_state

Return the currently bound theme state.

Parameters:

theme_state (ThemeState | None)

ThemeToggle.__init__(theme_state=None, **kwargs)[source]#

Initialize the toggle, optionally bound to a shared ThemeState.

Parameters:

theme_state (ThemeState | None)

ThemeToggle.bind_theme_state(theme_state)[source]#

Bind the toggle widget to a shared theme state.

Parameters:

theme_state (ThemeState | None)

Return type:

None

ThemeToggle.get_theme_state()[source]#

Return the currently bound theme state.

Return type:

ThemeState | None