OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
apps.orcUi.theme_runtime Namespace Reference

Construct ORC application themes from packaged stylesheets. More...

Functions

ThemeBundle theme_bundle (ThemeMode mode)
 Return the packaged theme bundle for mode.
 
ThemeController create_theme_controller (ThemeMode initial_mode=ThemeMode.DARK)
 Create a controller backed by the packaged ORC CSS themes.
 

Detailed Description

Construct ORC application themes from packaged stylesheets.

Function Documentation

◆ theme_bundle()

ThemeBundle apps.orcUi.theme_runtime.theme_bundle ( ThemeMode  mode)

Return the packaged theme bundle for mode.

The parsed CSS bundle is immutable presentation data, so it is safe to share between panels instead of reparsing the same stylesheet whenever a panel is constructed.