Structs§
- Theme
Engine Rgb - C ABI RGB triplet.
- Theme
Engine Style - C ABI style payload.
- Theme
Engine Theme - Opaque C handle for a loaded theme.
Constants§
- THEME_
ENGINE_ FFI_ ERR_ NOT_ FOUND - Requested style was not found.
- THEME_
ENGINE_ FFI_ ERR_ NULL - A required pointer argument was null.
- THEME_
ENGINE_ FFI_ ERR_ THEME - Theme loading or parsing failed.
- THEME_
ENGINE_ FFI_ ERR_ UTF8 - A C string argument was not valid UTF-8.
- THEME_
ENGINE_ FFI_ OK - Operation succeeded.
Functions§
- theme_
engine_ ⚠theme_ default_ terminal_ colors - Returns default terminal foreground/background colors from the theme.
- theme_
engine_ ⚠theme_ free - Frees a theme handle previously returned by this library.
- theme_
engine_ ⚠theme_ load_ builtin - Loads a built-in theme by name (for example
"tokyonight-dark"). - theme_
engine_ ⚠theme_ load_ json - Loads a theme from a JSON string and returns a new handle.
- theme_
engine_ ⚠theme_ resolve_ capture - Resolves a syntax capture style (for example
"@keyword"). - theme_
engine_ ⚠theme_ resolve_ ui - Resolves a UI role style (for example
"statusline"or"tab_active").