Documentation
¶
Overview ¶
Package parts is what base's components share to style their parts.
Index ¶
Constants ¶
const FirstFrame = 50 * time.Millisecond
FirstFrame is how long a popup or a toast waits for its first display frame before it counts as past it without one.
const HandleBand core.Points = 3
HandleBand is the width of the band that takes a drag to resize.
Variables ¶
var Cover = core.Style{Position: core.Absolute, Top: core.Pt(0), Left: core.Pt(0), Width: core.Pct(100), Height: core.Pct(100)}
Cover is an overlay over its whole root view; overlays are as large as their content otherwise.
var Fill = core.Style{Position: core.Absolute, Top: core.Pt(0), Right: core.Pt(0), Bottom: core.Pt(0), Left: core.Pt(0)}
Fill lays a view over the whole of its parent.
Functions ¶
func Important ¶
Important returns class with every utility Important (opacity-0 is opacity-0!), as NSH's toast root does.
func JoinClasses ¶
JoinClasses returns a's classes then b's, which win over a's.