Separation of color selections for "focus.<arrow>" from list.item.focused
Cross-platform BBS (ANSI) Terminal
Brought to you by:
deuce
Currently, using most default themes the dialing directory's selection (list.item.focused) has a background color, which in turn translates to an arrow pointing at a line (focus.<arrow>) being inverse colored from how it probably should look.</arrow>
Anonymous
Looking for separation of these two items, so one can use an arrow without a background color (and be a color other than the foreground color of list.item.focused, and still be able to highlight a list item with a background color.
Implemented the styling separation for existing focus arrows in the modernized SyncTERM development tree in local commit b826a992; this is not in a released build yet.
The colour role is
list.item.focused.indicator, with the correspondinglist.item.focused.indicator.inactiverole. All compiled fields inherit, so existing themes keep their current appearance. Partial overrides follow the selected-row cascade (and its parallel inactive cascade). Thefocus.leftandfocus.rightglyph names continue to control the arrow shapes.To give an arrow its own foreground and a background matching the surrounding panel, set the indicator's Foreground and Background explicitly;
inheritretains the selected-row background. Legacy output uses the complete LegacyAttr value.The modernized dialing directory no longer draws these arrows. This change styles the existing arrows in the theme-editor atlas without adding arrows, gutters, or reserved columns to any list. Native CMake/theme tests and headless checks passed for default appearance, partial active/inactive overrides, and unchanged row samples and list rendering.