StructureStructureTheme
ThemeBundleSource
A theme bundle read from a directory.
struct ThemeBundleSourceOverview
The same loader reads the built-in themes when the package is built and custom theme directories at run time, so both are validated identically.
Topics
var name: String nameThe name of the theme, which is the name of its directory.
var settings: ThemeSettingsInput settingsThe parsed theme settings.
var stylesheets: [ThemeStylesheet ] stylesheetsThe theme’s stylesheets in application order.
static func isBundle (URL) -> Bool isWhether a directory looks like a theme bundle.
static func load(from: URL, warningHandler : (any ThemeParsingWarningHandler )?) throws -> ThemeBundleSource load(from:Reads a theme bundle from a directory.
static func loadAll (in: URL, warningHandler : (any ThemeParsingWarningHandler )?) throws -> [ThemeBundleSource ] loadReads all theme bundles in a directory.
Relationships
Swift.Equatable Swift.Sendable Swift.Sendable Metatype