menu.go — font picker popup (tmux-menu style). Right-anchored, lists all TextStyleMode options with a live preview rendered using each mode's actual ANSI attribute bits. Also holds the background picker. FontMenu is the stateful popup. nil on model = closed.
| 6 | |
| 7 | // FontMenu is the stateful popup. nil on model = closed. |
| 8 | type FontMenu struct { |
| 9 | Cursor int // index into TextModes |
| 10 | SavedMode TextStyleMode // mode at time of opening; restored on Esc |
| 11 | } |
| 12 | |
| 13 | func NewFontMenu(current TextStyleMode) *FontMenu { |
| 14 | i := 0 |
nothing calls this directly
no outgoing calls
no test coverage detected