Expand description
Core runtime primitives for Liora native GPUI applications.
This crate owns application-wide theme configuration, system-theme
synchronization, overlay/portal registries, z-index policy, and small
helpers shared by every Liora component crate. Applications normally call
liora_components::init_liora or liora::init_liora; use this crate
directly when building lower-level integrations or custom component crates.
Re-exports§
Modules§
- fonts
- Application-level font loading and typography helpers.
- popper
- Documents and exposes the popper module APIs.
Structs§
- Config
- Runtime state used by Liora config behavior.
- Font
Config - Ordered font fallback lists used by Liora-rendered UI and code surfaces.
- Linux
Desktop Identity - Metadata and icon bytes used to publish a Linux desktop identity.
- Linux
Desktop PngIcon - PNG icon bytes for one hicolor app-icon size bucket.
- Liora
Options - Complete options for initializing Liora core state.
- Theme
- Complete Liora visual token set for one color mode.
Enums§
- Theme
Mode - Options that control theme mode behavior.
Traits§
- Context
Ext - Convenience accessors for reading Liora theme data from GPUI contexts.
- Element
Ext - Element extension points reserved for applying Liora-wide styling helpers.
Functions§
- apply_
theme_ mode - Applies a new theme mode and refreshes the active GPUI window.
- attach_
system_ theme_ observer - Attach System theme tracking to a concrete GPUI window.
- code_
font_ family - Returns the resolved code font family or GPUI’s generic monospace family.
- ensure_
linux_ desktop_ identity - Installs a user-scoped Linux desktop entry and hicolor icons for an app.
- hex_
color - Converts a packed RGB integer into a GPUI HSLA color.
- init_
liora - Initializes Liora core state with an explicit concrete theme.
- init_
liora_ with_ mode - Initializes Liora core state from a theme mode, including system mode resolution.
- init_
liora_ with_ options - Initializes Liora core state from full startup options.
- linux_
desktop_ entry - Builds a user-level Linux desktop entry for a running Liora app.
- linux_
desktop_ png_ icon_ path - Returns the user-scoped hicolor app-icon path for an app id and icon size.
- liora_
theme - Returns the active Liora theme stored in the GPUI application context.
- load_
custom_ fonts - Registers application-provided font files with GPUI’s text system.
- next_
unique_ id - Generate a process-wide unique, monotonically increasing numeric id.
- render_
active_ drawer_ in_ window - Renders the render active drawer in window layer into native GPUI elements.
- render_
active_ modal_ in_ window - Renders the render active modal in window layer into native GPUI elements.
- render_
active_ popover_ in_ window - Renders the render active popover in window layer into native GPUI elements.
- render_
active_ tooltip_ in_ window - Renders the render active tooltip in window layer into native GPUI elements.
- resolve_
font_ family_ from_ available - Resolves an ordered fallback list against families currently visible to GPUI.
- set_
font_ config - Replaces Liora font-family overrides for subsequent renders.
- stable_
unique_ id - Return a stable process-wide unique id for the current element path.
- startup_
maximized_ window_ bounds - Return startup bounds for a window that should request GPUI maximized state.
- sync_
system_ theme - Synchronizes the active theme from the current system/window appearance.
- theme_
for_ window_ appearance - Maps a GPUI window appearance to the matching Liora theme.
- tooltip_
content_ lines - Splits tooltip content into GPUI-safe display lines.
- ui_
font_ family - Returns the resolved UI font family, if the app overrides the system default.
- unique_
id - Generate a process-wide unique id string with a stable component prefix.
- z_
index_ modal - Returns the z-index reserved for modal overlays.
- z_
index_ notification - Returns the z-index reserved for notifications.
- z_
index_ popup - Returns the z-index reserved for popup overlays.
- z_
index_ tooltip - Returns the z-index reserved for tooltip overlays.