findBundledById

Finds a bundled theme descriptor by its stable id, or returns null if not found.

val descriptor = HighlightTheme.findBundledById(savedThemeId)
val theme = descriptor?.create() ?: HighlightTheme.tomorrow()

Return

The matching HighlightThemeDescriptor, or null if unrecognized.

Parameters

id

The stable theme identifier to look up (e.g. "tomorrow", "dracula").