HighlightThemeDescriptor

Metadata for a bundled syntax highlighting theme.

Lightweight: no theme initialization occurs until theme or create is first accessed. Once accessed, the HighlightTheme instance is cached for referential stability.

Properties

Link copied to clipboard

Human-readable name for UI display (e.g. "Tomorrow Night", "Dracula"). These are proper nouns / brand names and are not localizable.

Link copied to clipboard
val id: String

Stable string identifier for persistence (e.g. "tomorrow-night", "dracula").

Link copied to clipboard

Whether this theme is designed for dark backgrounds.

Link copied to clipboard

Whether this theme is designed for light backgrounds.

Link copied to clipboard

The HighlightTheme instance. Lazily created on first access, then cached.

Functions

Link copied to clipboard

Creates (or returns the cached) HighlightTheme instance.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this descriptor to another for equality based solely on id.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code consistent with equals, based solely on id.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of this descriptor.