Skip to content

Filetype Labels black in Light mode Square grid view #2474

Open

Description

@taigenetsudo-code
Image Image

As in the example screen shots, when in light mode, square grid shows black unreadable file type labels.

Activity

  1. changed the title [-]Labels black in Light mode Square grid view[/-] [+]Filetype Labels black in Light mode Square grid view[/+] on Oct 21, 2026
  2. ticket-craft commented on Oct 21, 2026

    @ticket-craft

    Possibly related: #2382 and storytold/figcraft#985.

  3. mdlmarkham commented on Oct 21, 2026

    @mdlmarkham
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions