set_dark (function)

Manages nicegui.ui.dark_mode. Updates config.APP_DARK_MODE.

Syntax

def set_dark(dark_mode: ui.dark_mode, value: bool) -> None:

Parameters

dark_mode

The nicegui.ui.dark_mode object

value

The new dark_mode value.

Last updated