Skip to content

Vector icons drawn in the text colour #128

Closed

Description

@samitbasu

Chrome needs a small symbol set (close, maximize, pop-out, gear, pause, warning, check, chevrons…). Icon takes only an ImageSource; egui's bundled fonts lack ✕ ✔ ⚙ ⏸ ⚠ ⌄ ⤢ ↗ (reproduced), and platform emoji fonts ignore the text colour. Proposal: IconSource::Vector(paint fn) so every Icon site gets vector icons in the resolved text colour (variants apply), plus an optional standard set (shadcn uses lucide). Set and look are a user decision.

From the operator-console port (#22), at rev 855eb20; reproduced on Linux.

Activity

  1. added
    enhancement
    needs-decision
    consumer
    v0.1
    and removed
    consumer
    on Nov 11, 2026
  2. samitbasu commented on Nov 15, 2026

    @samitbasu
    OwnerAuthor

    Decided (user, 2026-11-15): a scaled stroke (lucide's 2 units on the 24-unit grid); the fixed-weight option is dropped. Menu items get a leading .icon(..), rendered first.

  3. samitbasu commented on Nov 15, 2026

    @samitbasu
    OwnerAuthor

    Decided (user, 2026-11-15): menu items get a leading .icon(..). An icon-less item lines up only through an explicit .inset() (shadcn's inset), with no automatic alignment.

  4. samitbasu commented on Nov 16, 2026

    @samitbasu
    OwnerAuthor

    Revised (user, 2026-11-16): icons are lucide SVG files rendered through egui_extras' resvg loader, tinted with the text colour via Image::tint, rather than a custom path parser. It's sharp per size and pixel density through the loader's size hint.

  5. samitbasu commented on Nov 17, 2026

    @samitbasu
    OwnerAuthor

    Done via #261 (v0.1.0-m8.20), by a different mechanism than proposed (the user's choice): the icons are lucide SVGs rendered through egui_extras' resvg loader and tinted with the resolved text colour. The standard set ships with the library.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-decisionv0.1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions