emilk/egui
 Watch   
 Star   
 Fork   
20 days ago
egui

0.34.3: wgpu surface lifecycle fixes



egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native.

Try it now: https://www.egui.rs/

egui development is sponsored by Rerun, a startup building an SDK for visualizing streams of multimodal data.

⭐ Added

  • Add winit window access to eframe::Frame and CreationContext #8205 by @emilk

🐛 Fixed

  • Fix random hangs by improving wgpu::Surface lifecycle handling #8171 by @grtlr
  • Fix ScrollArea::scroll_to_* calls when stick_to_bottom is Active #8033 by @AmmarAbouZor

🔧 Changed

2026-05-04 22:42:40
egui

0.34.2: Text layout and selection fixes



egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native.

Try it now: https://www.egui.rs/

egui development is sponsored by Rerun, a startup building an SDK for visualizing streams of multimodal data.

⭐ Added

  • Add regression test for O(n²) word boundary scan #8077 by @hallyhaa

🐛 Fixed

  • Fix wrong color of last glyph of selected text #8075 by @emilk
  • Fix text selection of centered and right-aligned text #8076 by @emilk
  • Fix Context::is_pointer_over_egui and Context::egui_wants_pointer_input #8081 by @emilk
  • Fix centered & right aligned TextEdit #8082 by @lucasmerlin

🚀 Performance

  • Optimize text selection performance for large documents #7917 by @rustbasic
2026-03-27 18:26:44
egui

0.34.1: Enable WebGL fallback in eframe



egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native.

Try it now: https://www.egui.rs/

egui development is sponsored by Rerun, a startup building an SDK for visualizing streams of multimodal data.

eframe 0.34.1 changelog

2026-03-26 19:07:03
egui

0.34.0: More `Ui`, less `Context`



(yes, we have a logo now!)

egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native.

Try it now: https://www.egui.rs/

egui development is sponsored by Rerun, a startup building an SDK for visualizing streams of multimodal data.

egui 0.34.0 changelog

Highlights from this release

  • Sharper text unlocked by switching font rendering crate to skrifa
  • Fade out edges of ScrollAreas
  • Use Ui as the main entrypoint

Skrifa and font hinting

The font rendering backend was switched from ab_glyph to skrifa + vello_cpu. This enabled us support font hinting and variations. It also paves the way for more font improvements in the future, like support for color emojis and adding helpers for variations like RichText::bold.

Font hinting makes text more clear (look at the =):

https://github.com/user-attachments/assets/ea9151ec-869f-4c05-ab59-836114683417

We now support setting variable font parameters:

https://github.com/user-attachments/assets/0febde1c-ebf6-4d85-8f96-86ec0f934ecf

(Unfortunately there is currently a bug with variations, meaning changing them live like this won't work in practise. There is a draft PR to fix it, but it didn't make the release)

More Ui, less Context

egui has long had a confusing overlap in responsibilities between Context and Ui. In particular, you could add panels to either one (or both!). In this release, we switch from having Context be the main entrypoint, and instead provide whole-app Ui. In egui we've replaced Context::run with Context::run_ui, and changed viewports to be given a &mut Ui instead of Context. In eframe we've deprecated App::update replaced it with App::ui (which provides a &mut Ui instead of a &Context).

In addition to this, Ui now derefs to Context, so all code like ui.ctx().input(…) can now be written ui.input(…). This means you are much less likely to have to use naked Contexts. Context can still be useful though, since they implement Clone and can be sent to other threads so you can call .request_repaint on them.

  • Add Context::run_ui #7736 by @emilk
  • Add Deref<Target = Context> for Ui #7770 by @emilk
  • Replace App::update with fn logic and fn ui #7775 by @emilk
  • Rename Context::style to global_style; avoid confusion w/ Ui::style #7772 by @emilk
  • Rename functions in Context to avoid confusion #7773 by @emilk
  • Viewports: give the caller a Ui instead of Context #7779 by @emilk

Changed panel API

As part of the above work, we have unified the panel API. SidePanel and TopBottomPanel are deprecated, replaced by a single Panel. Furthermore, it is now deprecated to use panels directly on Context. Use the show_inside functions instead, acting on Uis.

This unification and simplification will make it easier to maintain and improve panels going forward.

  • Add Panel to replace SidePanel and TopBottomPanel #5659 by @sharky98
  • Deprecate using Panel directly on a Context #7781 by @emilk
  • Deprecate CentralPanel::show #7783 by @emilk
  • Deprecate Context::used_size and Context::available_rect #7788 by @emilk

⭐ Added

🔧 Changed

  • Remove accesskit feature and always depend on accesskit #7701 by @emilk
  • Update MSRV from 1.88 to 1.92 #7793 by @JasperBRiedel
  • Improve modifier handling when scrolling #7678 by @emilk
  • Apply preferred font weight when loading variable fonts #7790 by @pmnxis
  • Make scroll bars and resize splitters visible to accesskit #7804 by @emilk
  • Allow moving existing widgets to the top of interaction stack #7805 by @emilk
  • Slightly change interact behavior around thin splitters #7806 by @emilk
  • Move window resize interaction to be over contents #7807 by @emilk
  • Don't expand widgets on hover #7808 by @emilk
  • Make FrameCache::get return a reference instead of cloning the cached value #7834 by @KonaeAkira
  • Update selected dependencies #7920 by @oscargus
  • Make Galley::pos_from_layout_cursor pub #7864 by @dionb
  • Update accesskit to 0.24.0 (and related deps) #7850 by @delan
  • Quit on Ctrl-Q #7985 by @emilk
  • Fade out the edges of ScrollAreas #8018 by @emilk

🔥 Removed

🐛 Fixed

  • Fix: ensure CentralPanel::show_inside allocates space in parent #7778 by @emilk
  • Heed constrain rect when auto-positioning windows #7786 by @emilk
  • Fix jitter when hovering edge of scroll area close to resize splitter #7803 by @emilk
  • Don't focus Areas, Windows and ScrollAreas #7827 by @lucasmerlin
  • Fix backspacing leaving last character in IME prediction not removed on macOS native and Safari #7810 by @umajho
  • Implemented distance threshold for double/triple clicks #7817 by @bl4ze4447
  • Fix CentralPanel::show_inside_dyn to round panel_rect #7868 by @ripopov
  • Stop ctrl+arrow etc from moving focus #7897 by @emilk
  • Fix scroll area not consuming scroll events #7904 by @lucasmerlin
  • Pass in an explicit id in UiBuilder, to avoid wrapping passed in ids with Id::new() #7925 by @lucasmerlin
  • Fix crash when dragging a DragValue through small floats #7939 by @Fyrecean
  • Fix emoji icon font #7940 by @Jhynjhiruu
  • Fixes the overly aggressive overflow elision in truncate() and similar for os scaling other than 100% #7867 by @RndUsr123
  • Fix text color when selecting newline character #7951 by @emilk
  • Fix: repaint on drag-and-drop files #7953 by @emilk
  • Fix instable IDs following animated panels #7994 by @emilk
  • Enables every combination of TextEdit and LayoutJob alignments #7831 by @RndUsr123
  • Fix horizontal_wrapping row height after using text_edit_multiline #8000 by @optozorax
  • Fix menu keyboard toggle for open submenus #7957 by @fjkorf
  • Fix: Visuals::interact_cursor support in Button #7986 by @mango766

🚀 Performance

  • Shrink the byte-size of Response slightly #8011 by @emilk
2025-12-11 22:40:37
egui

0.33.3 - Improve kittest and text selection

egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native.

Try it now: https://www.egui.rs/

egui development is sponsored by Rerun, a startup building an SDK for visualizing streams of multimodal data.

egui

  • Treat . as a word-splitter in text navigation #7741 by @emilk
  • Change text color of selected text #7691 by @emilk

egui_kittest changelog

egui_extras changelog

2025-11-13 22:32:42
egui

0.33.2

egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native.

Try it now: https://www.egui.rs/

egui development is sponsored by Rerun, a startup building an SDK for visualizing streams of multimodal data.

egui changelog

⭐ Added

  • Add Plugin::on_widget_under_pointer to support widget inspector #7652 by @juancampa
  • Add Response::total_drag_delta and PointerState::total_drag_delta #7708 by @emilk

🔧 Changed

🐛 Fixed

  • Fix profiling::scope compile error when profiling using tracing backend #7646 by @PPakalns
  • Fix edge cases in "smart aiming" in sliders #7680 by @emilk
  • Hide scroll bars when dragging other things #7689 by @emilk
  • Prevent widgets sometimes appearing to move relative to each other #7710 by @emilk
  • Fix ui.response().interact(Sense::click()) being flakey #7713 by @lucasmerlin

eframe changelog

  • Fix jittering during window resize on MacOS for WGPU/Metal #7641 by @aspcartman
  • Make sure native_pixels_per_point is set during app creation #7683 by @emilk
2025-10-09 22:51:20
egui

0.33.0 - `egui::Plugin`, better kerning, kitdiff viewer

egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native.

Try it now: https://www.egui.rs/

egui development is sponsored by Rerun, a startup building an SDK for visualizing streams of multimodal data.

egui 0.33.0 changelog

Highlights from this release:

  • egui::Plugin a improved way to create and access egui plugins
  • kitdiff, a viewer for egui_kittest image snapshots (and a general image diff tool)
  • better kerning

Improved kerning

As a step towards using parley for font rendering, @valadaptive has refactored the font loading and rendering code. A result of this (next to the font rendering code being much nicer now) is improved kerning. Notice how the c moved away from the k:

Oct-09-2025 16-21-58

egui::Plugin trait

We've added a new trait-based plugin api, meant to replace Context::on_begin_pass and Context::on_end_pass. This makes it a lot easier to handle state in your plugins. Instead of having to write to egui memory it can live right on your plugin struct. The trait based api also makes easier to add new hooks that plugins can use. In addition to on_begin_pass and on_end_pass, the Plugin trait now has a input_hook and output_hook which you can use to inspect / modify the RawInput / FullOutput.

kitdiff, a image diff viewer

At rerun we have a ton of snapshots. Some PRs will change most of them (e.g. the one that updated egui and introduced the kerning improvements, ~500 snapshots changed!). If you really want to look at every changed snapshot it better be as efficient as possible, and the experience on github, fiddeling with the sliders, is kind of frustrating. In order to fix this, we've made kitdiff. You can use it locally via

  • kitdiff files . will search for .new.png and .diff.png files
  • kitdiff git will compare the current files to the default branch (main/master) Or in the browser via
  • going to https://rerun-io.github.io/kitdiff/ and pasting a PR or github artifact url
  • linking to kitdiff via e.g. a github workflow https://rerun-io.github.io/kitdiff/?url=<link_to_pr_or_artifact>

To install kitdiff run cargo install --git https://github.com/rerun-io/kitdiff. You might need to login with your github account for viewing artifacts and to prevent running into rate limits.

Here is a video showing the kerning changes in kitdiff (try it yourself):

https://github.com/user-attachments/assets/74640af1-09ba-435a-9d0c-2cbeee140c8f

Migration guide

  • egui::Mutex now has a timeout as a simple deadlock detection
    • If you use a egui::Mutex in some place where it's held for longer than a single frame, you should switch to the std mutex or parking_lot instead (egui mutexes are wrappers around parking lot)
  • screen_rect is deprecated
    • In order to support safe areas, egui now has viewport_rect and content_rect.
    • Update all usages of screen_rect to content_rect, unless you are sure that you want to draw outside the safe area (which would mean your Ui may be covered by notches, system ui, etc.)

⭐ Added

🔧 Changed

🔥 Removed

🐛 Fixed

2025-09-12 14:26:15
egui

0.32.3 - Fix tooltips for ellided text

egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native.

Try it now: https://www.egui.rs/

egui development is sponsored by Rerun, a startup building an SDK for visualizing streams of multimodal data.

egui

egui_extras

  • Fix deadlock in FileLoader and EhttpLoader #7515 by @emilk
2025-09-04 21:14:55
egui

0.32.2 - Ui::place, Harness::mask and more bug fixes

egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native.

Try it now: https://www.egui.rs/

egui development is sponsored by Rerun, a startup building an SDK for visualizing streams of multimodal data.

Add Ui::place

Ui::place is similar to Ui::put, but it doesn't update the current Uis cursor. This is very useful when using the new Atoms or making badge-like widgets. The following breaks with Ui::put but works just fine with Ui::place:

Screenshot 2025-07-14 at 10 58 30

Screenshot 2025-07-14 at 10 58 51

Add Harness::mask

Harness::mask allows for simple masking of Rects you don't want to be visible in snapshot test images. The rect will be masked with a ugly color to make it obvious whats going on:

image

egui

  • Add Ui::place, to place widgets without changing the cursor #7359 by @lucasmerlin
  • Fix: SubMenu should not display when ui is disabled #7428 by @ozwaldorf
  • Remove line breaks when pasting into single line TextEdit #7441 by @YgorSouza
  • Panic mutexes that can't lock for 30 seconds, in debug builds #7468 by @emilk
  • Fix: prevent calendar popup from closing on dropdown change #7409 by @AStrizh

egui_extras

egui_kittest

epaint

  • Panic mutexes that can't lock for 30 seconds, in debug builds #7468 by @emilk
  • Skip zero-length layout job sections #7430 by @HactarCE

Unsorted commits

  • Add track_caller to Mutex and RwLock for deadlock_detection b17d716
2025-08-15 19:41:22
egui

0.32.1 - Misc bug fixes

egui is an easy-to-use immediate mode GUI for Rust that runs on both web and native.

Try it now: https://www.egui.rs/

egui development is sponsored by Rerun, a startup building an SDK for visualizing streams of multimodal data.

egui changelog

⭐ Added

🐛 Fixed

eframe changelog

  • Enable wgpu default features in eframe / egui_wgpu default features #7344 by @lucasmerlin
  • Request a redraw when the url change through the popstate event listener #7403 by @irevoire

egui_kittest changelog

  • Fix UPDATE_SNAPSHOTS: only update if we didn't pass the test #7455 by @emilk