You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filetype Labels black in Light mode Square grid view #2474
Fixed on branch \mdlmarkham-architecture-review\ (commit 6a52e6b, part of PR #2174).
Root cause: the square grid's file-type badge painted a hardcoded dark chip (\Color32::from_gray(26)) but laid out its text in the theme's \ ext_label\ colour —
gb(0x383838)\ in Silver and
gb(0x343434)\ in Paper, the two light themes. Black text on a near-black chip: unreadable. The sibling chips in the same cell (the virtual-copy pill and the Preview pill) already hardcode white text on the same dark background, which is why only the file-type badge was affected.
Fix: the badge text is now \Color32::WHITE\ unconditionally, matching its siblings — the chip background is theme-independent, so the text should be too.
Regression test: \ he_format_badge_is_readable_in_light_mode\ paints the square grid in light mode, finds the dark chips and the text inside them, and asserts every glyph vertex is white. It fails without the fix.
Activity
[-]Labels black in Light mode Square grid view[/-][+]Filetype Labels black in Light mode Square grid view[/+]ticket-craft commentedon Oct 21, 2026
Possibly related: #2382 and storytold/figcraft#985.
ui: white text on the square grid's file-type badge in light mode (st…
mdlmarkham commentedon Oct 21, 2026
Fixed on branch \mdlmarkham-architecture-review\ (commit 6a52e6b, part of PR #2174).
Root cause: the square grid's file-type badge painted a hardcoded dark chip (\Color32::from_gray(26)) but laid out its text in the theme's \ ext_label\ colour —
gb(0x383838)\ in Silver and
gb(0x343434)\ in Paper, the two light themes. Black text on a near-black chip: unreadable. The sibling chips in the same cell (the virtual-copy pill and the Preview pill) already hardcode white text on the same dark background, which is why only the file-type badge was affected.
Fix: the badge text is now \Color32::WHITE\ unconditionally, matching its siblings — the chip background is theme-independent, so the text should be too.
Regression test: \ he_format_badge_is_readable_in_light_mode\ paints the square grid in light mode, finds the dark chips and the text inside them, and asserts every glyph vertex is white. It fails without the fix.