Expand description
A sidebar row the way Finder draws one: an accent-colored symbol and a title, with a quieter badge such as a count at the end, on a rounded highlight that shows the row is selected, pressed or under the pointer.
StructsΒ§
- NavItem π
- The rowβs views, under a button that covers the whole row and draws nothing itself: it takes clicks anywhere on the row, tracks the pointer, and carries the title for screen readers.
- RowButton π
- RowLook π
- What the rowβs highlight shows. The row is held weakly, since the row owns the button that owns this.
ConstantsΒ§
- CORNER_
RADIUS π - HOVER_
TINT π - How strongly the text color shows through the row while under the pointer, and while pressed. Tints of the label color follow dark mode.
- ICON_
GAP π - ICON_
SIZE π - INSET π
- PRESSED_
TINT π - ROW_
HEIGHT π - The height and corner radius of Finderβs sidebar rows, the space at each end, the symbolβs square and the space after it, in points.
FunctionsΒ§
- label π