Repository navigation
Keep the buttons' symbols monochrome with egui 0.37 - #7
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
monochrome_emoji_fontsfeature through a directeguidependency pinned to eframe's version (the code still useseframe::egui).egui(eframe,egui), placed before the other groups, so both crates always move in the same PR.app::tests::symbols_are_in_the_embedded_fonts, which fails if any symbol the window draws is missing from egui's embedded fonts.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
has_glyphsonly sees the embedded fonts, so the test covers exactly what the feature provides..\scripts\build.ps1passes (fmt, clippy, rustdoc, 60 unit tests + end-to-end).🤖 Generated with Claude Code