Skip to content

desktop: Bump egui to 0.37 - #24954

Draft
torokati44 wants to merge 3 commits into
ruffle-rs:masterfrom
torokati44:egui-0.37
Draft

torokati44 wants to merge 3 commits into
ruffle-rs:masterfrom
torokati44:egui-0.37

Conversation

@torokati44

@torokati44 torokati44 commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Description

https://github.com/emilk/egui/releases#release-0.37.0

API changes followed:

  • ui.id() renamed to ui.scope_id().
  • Id::new() replaced by Id::unique() for new dialogs and the context menu
  • storing IdSalt instead of Id for dropdowns

Referencing:

Without enabling the `default_fonts` feature...

On my system, this results in:

before after

Different font (epaint no longer bundles a default one), and letters look more contrasty.

The color emoji support is not in place yet because we don't enable it.

Menu dropdowns now follow the cursor, and there are opening animations.

Would be nice to wait for the enum-map bump and petgraph 0.9: petgraph/petgraph#1061 (comment)

Testing

Opened some menus and dialogs, nothing looked off.

Checklist

  • I, a human, have self-reviewed this PR and fully understand the changes within.
  • I have made or updated tests where possible.
  • All of my commits are properly scoped, compile successfully, and pass all tests.
  • This PR does not make sense to split up into smaller PRs.
  • An LLM was involved in the authoring of this code.

@torokati44 torokati44 added A-deps Area: Dependencies T-chore Type: Chore (like updating a dependency, it's gotta be done) labels Oct 18, 2026
@kjarosh

kjarosh commented Oct 18, 2026

Copy link
Copy Markdown
Member

Is it only me or the new UI looks uglier? The top/bottom padding is different in buttons and the font looks less sharp. Don't we provide the font to egui anyway? Why did it change?

@torokati44

Copy link
Copy Markdown
Member Author

emilk/egui#8583

We can still enable it, for consistency.

@kjarosh

kjarosh commented Oct 18, 2026

Copy link
Copy Markdown
Member

So the current fonts we provide to egui are only used as fallbacks?

@torokati44

Copy link
Copy Markdown
Member Author

I think so, for non-latin stuff. (But not entirely sure...)

By enabling the `default_fonts` and `monochrome_emoji_fonts`
features, as they are no longer enabled by default since 0.37.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-deps Area: Dependencies T-chore Type: Chore (like updating a dependency, it's gotta be done)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants