Documentation
¶
Overview ¶
Package glyph collects the single-character marks tuilib components draw — row cursors, expand arrows, scrollbar thumbs, rules, sort indicators — into one vocabulary so a theme can set them once and every component agrees.
It exists for the same reason pkg/geom and pkg/query do: more than one component needs the identical values, and none of them should import another to get them. It imports nothing from tuilib.
Glyphs are raw text, never pre-styled. Color is the caller's business — pkg/table wraps its separators via pkg/ansi so a selected row's background survives, while a list styles its cursor with lipgloss. Putting an escape in a Set here would take that choice away from the component drawing it.
The zero Set means "use the defaults". Fill it through Resolve rather than reading fields off a Set you did not build, so a caller that set two fields does not get empty strings for the rest.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set struct {
// Cursor marks the focused row in list, logview, and the action menu.
Cursor string
// Mark marks a selected row where multi-select is enabled.
Mark string
// ExpandOpen / ExpandClosed are the disclosure arrows in tree and
// inspector.
ExpandOpen string
ExpandClosed string
// Rule is the horizontal line under an inline filter, drawn identically
// by every filterable component.
Rule string
// ScrollThumb / ScrollTrack are the vertical scrollbar; HScrollThumb /
// HScrollTrack the horizontal one.
ScrollThumb string
ScrollTrack string
HScrollThumb string
HScrollTrack string
// SortAsc / SortDesc follow the active column's title in table.
SortAsc string
SortDesc string
// ColumnSep divides table columns.
ColumnSep string
// Placeholder fills a row a windowed table has not received yet.
Placeholder string
}
Set is the full glyph vocabulary. A component reads only the fields it draws; the rest are inert.