pub fn init(cx: &mut App)Expand description
Initializes gpui-cn. Call it once, after gpui_base::init (normally
through gpui_kit::init) and before opening windows.
Installs the built-in light and dark themes and projects them onto
gpui_base::Theme, as gpui_component::init does for its own theme.
With the jetbrains-mono feature it also registers JetBrains Mono
with the text system and makes it the code font. See
theme::fonts.
Calling it twice changes nothing. In an application that also runs
gpui_component::init, the later of the two owns the base theme and
the other layer follows its colors.
ยงPanics
If gpui_base::init has not run. gpui-cn never initializes base itself:
the host owns that, as it does for every other layer on base.