struct CodeStyle
Swift
struct CodeStyle
Style palette for EditorView. Rules carry style indices; this maps them
to colours, so a theme change restyles code without touching any rule.
Sources/LavaUI/EditorView.swift:5
Constructors
init(text: Color = .primary, gutterText: Color? = nil, gutterBackground: Color? = nil, currentLine: Color? = nil, searchMatch: Color? = nil, currentSearchMatch: Color? = nil, palette: [Color] = [])
Not documented.
Sources/LavaUI/EditorView.swift:15
Properties
var currentLine: Color
Not documented.
Sources/LavaUI/EditorView.swift:9
var currentSearchMatch: Color
Not documented.
Sources/LavaUI/EditorView.swift:11
var gutterBackground: Color
Not documented.
Sources/LavaUI/EditorView.swift:8
var gutterText: Color
Not documented.
Sources/LavaUI/EditorView.swift:7
var palette: [Color]
Indexed by HighlightRule.styleIndex; out-of-range falls back to text.
Sources/LavaUI/EditorView.swift:13
var searchMatch: Color
Not documented.
Sources/LavaUI/EditorView.swift:10
var text: Color
Not documented.
Sources/LavaUI/EditorView.swift:6