Skip to content

Keep the buttons' symbols monochrome with egui 0.37 - #7

Merged
geeooff merged 1 commit into
mainfrom
deps/egui-monochrome-emoji
Nov 23, 2026
Merged

geeooff merged 1 commit into
mainfrom
deps/egui-monochrome-emoji

Conversation

@geeooff

@geeooff geeooff commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What

  • Turns on egui's monochrome_emoji_fonts feature through a direct egui dependency pinned to eframe's version (the code still uses eframe::egui).
  • Adds a Dependabot cargo group egui (eframe, egui), placed before the other groups, so both crates always move in the same PR.
  • Adds app::tests::symbols_are_in_the_embedded_fonts, which fails if any symbol the window draws is missing from egui's embedded fonts.
  • Swaps the two symbols those fonts lack: ▲ → ⏶ (move a profile up), → → ➡ (codec list to chosen encoder).

Why

egui 0.37 no longer embeds NotoEmoji / emoji-icon-font by default. The transport and other symbols (⏮ ⏸ ⏭ 🔇 🔊 ✖…) therefore fell back to Windows' colour Segoe UI Emoji. The maintainer prefers the monochrome look of egui 0.36 (same decision as in nascar-to-2d). The system font fallback stays on for CJK and other scripts.

Reviewer notes

  • A lone eframe bump without egui would build two eguis and silently drop the feature: the Dependabot group and the test both guard against it.
  • Without a font provider, has_glyphs only sees the embedded fonts, so the test covers exactly what the feature provides.
  • Checked on a screenshot of a synthetic clip: every symbol renders monochrome.
  • .\scripts\build.ps1 passes (fmt, clippy, rustdoc, 60 unit tests + end-to-end).

🤖 Generated with Claude Code

egui 0.37 no longer embeds its monochrome emoji fonts by default, so the transport
and other symbols fell back to Windows' colour Segoe UI Emoji. Turn on egui's
monochrome_emoji_fonts feature (a direct egui dependency at eframe's version),
group eframe and egui in Dependabot so a lone eframe bump cannot silently lose it,
and test that every symbol the window draws is in the embedded fonts. Two symbols
those fonts lack are swapped: the move-up arrow and the codec arrow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@geeooff
geeooff enabled auto-merge November 23, 2026 01:36
@geeooff
geeooff merged commit b40a850 into main Nov 23, 2026
2 checks passed
@geeooff
geeooff deleted the deps/egui-monochrome-emoji branch November 23, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant