-
Notifications
You must be signed in to change notification settings - Fork 9
Guide Quick Start
MeowLynxSea edited this page Jan 26, 2026
·
9 revisions
Some components need one-time registration.
use gpui::App;
use yororen_ui::component;
fn init_ui(cx: &mut App) {
component::init(cx);
}use gpui::App;
use yororen_ui::theme::GlobalTheme;
fn init_theme(cx: &mut App) {
cx.set_global(GlobalTheme::new(cx.window_appearance()));
}See Guide-Theming for custom palettes.
Inside render functions you can access theme colors via ActiveTheme.
use gpui::Application;
use yororen_ui::assets::UiAsset;
let app = Application::new().with_assets(UiAsset);If your app has its own assets, use CompositeAssetSource.
Yororen UI v0.3.0 · repository · Apache-2.0 · This wiki documents Yororen UI v0.3.0.
This wiki documents Yororen UI v0.3.0 — the headless-core, swappable-renderer build.