struct SplitStyle
Swift
struct SplitStyle
Colours and metrics for a split divider.
Sources/LavaUI/SplitView.swift:222
Constructors
init(thickness: Float = 9, lineThickness: Float? = nil, color: Color? = nil, background: Color? = nil, hover: Color? = nil, active: Color? = nil)
Creates a style. Colours and the rule's thickness left nil come from the current theme.
Sources/LavaUI/SplitView.swift:242
Properties
var active: Color
Fill while the divider is being dragged. Unlike the hover tint this is producer-drawn: a fast drag leaves the pointer behind, and renderer hover would drop out exactly when the feedback matters most.
Sources/LavaUI/SplitView.swift:239
var background: Color
Resting fill of the grab strip, so the rule does not float in a transparent gutter.
Sources/LavaUI/SplitView.swift:232
var color: Color
Colour of the rule.
Sources/LavaUI/SplitView.swift:230
var hover: Color
Hover tint target. The renderer paints this one (see hoverFill), so
pointing at the divider costs no round trip.
Sources/LavaUI/SplitView.swift:235
var lineThickness: Float
The rule drawn down the middle of that strip.
Sources/LavaUI/SplitView.swift:228
var thickness: Float
Thickness of the whole divider — the strip the pointer has to hit. Bigger than the rule it draws, because a 1px grab target is a 1px grab target.
Sources/LavaUI/SplitView.swift:226