spacr.qt.widgets.collapse_arrow¶
Consistent collapse glyphs with unchanged pointer targets.
Functions¶
|
Draw the collapse tab and its chevron, centred on the handle. |
Module Contents¶
- spacr.qt.widgets.collapse_arrow.paint_collapse_arrow(painter, rect, orientation, towards_start, palette, hovered=False)[source]¶
Draw the collapse tab and its chevron, centred on the handle.
- Parameters:
painter – active painter on the handle.
rect – unchanged clickable handle rectangle.
orientation – splitter orientation (horizontal means a vertical bar).
towards_start – point left/up when true, right/down otherwise.
palette – active theme colors.
hovered – whether to accent the glyph and tab border.
The tab and the chevron are drawn at
HANDLE_SCALEof the 2026-10-01 baseline, the chevron at a furtherARROW_SCALEof its tab, both centred on the handle (_collapse_arrow_geometry()). The hit target, the whole handle, stays put.