mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 14:49:06 -04:00
## Short bluesky announcement: We just released egui 0.33.0! Highlights: - `egui::Plugin` a improved way to create and access egui plugins - [kitdiff](https://github.com/rerun-io/kitdiff), a viewer for egui_kittest image snapshots (and a general image diff tool) - better kerning (check the diff on [kitdiff](https://rerun-io.github.io/kitdiff/?url=https://github.com/emilk/egui/pull/7431)) https://github.com/user-attachments/assets/971f0493-6dae-42e5-8019-58b74cf5d203 ## Relaese Changelog: 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](https://www.rerun.io/), 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](https://github.com/rerun-io/kitdiff), a viewer for egui_kittest image snapshots (and a general image diff tool) - better kerning ### Improved kerning As a step towards using [parley](https://github.com/linebender/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:  ### `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](https://github.com/rerun-io/rerun/pull/11253/files) [one](https://rerun-io.github.io/kitdiff/?url=https://github.com/rerun-io/rerun/pull/11253/files) 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](https://rerun-io.github.io/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_artefact>` To install kitdiff run `cargo install --git https://github.com/rerun-io/kitdiff` Here is a video showing the kerning changes in kitdiff ([try it yourself](https://rerun-io.github.io/kitdiff/?url=https://github.com/rerun-io/rerun/pull/11253/files)): 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.)
4.8 KiB
4.8 KiB
Changelog for egui_kittest
All notable changes to the egui_kittest crate will be noted in this file.
This file is updated upon each release.
Changes since the last release can be found at https://github.com/emilk/egui/compare/latest...HEAD or by running the scripts/generate_changelog.py script.
0.33.0 - 2025-10-09
⭐ Added
- Kittest: Add
UPDATE_SNAPSHOTS=force#7508 by @emilk - Add
egui_kittest::HarnessBuilder::with_osand set the default toNix#7493 by @lucasmerlin - Add
Harness::debug_open_snapshothelper #7590 by @lucasmerlin
🔧 Changed
- Include popups and tooltips in
Harness::fit_contents#7556 by @oxkitsune - Adjust when we write .diff and .new snapshot images #7571 by @emilk
- Update MSRV from 1.86 to 1.88 #7579 by @Wumpf
Harness: Addremove_cursor,eventandevent_modifiers#7607 by @lucasmerlin- Use software texture filtering in kittest #7602 by @emilk
- Write .new.png file if snapshot is missing #7610 by @lucasmerlin
🔥 Removed
0.32.3 - 2025-09-12
Nothing new
0.32.2 - 2025-09-04
- Allow masking widgets in kittest snapshots #7467 by @lucasmerlin
0.32.1 - 2025-08-15
0.32.0 - 2025-07-10
⭐ Added
- Add
ImageLoader::has_pendingandwait_for_pending_images#7030 by @lucasmerlin - Create custom
egui_kittest::Node#7138 by @lucasmerlin - Add
HarnessBuilder::theme#7289 by @emilk - Add support for scrolling via accesskit / kittest #7286 by @lucasmerlin
- Add
failed_pixel_count_threshold#7092 by @bircni
🔧 Changed
- More ergonomic functions taking
Impl Into<String>#7307 by @emlik - Update kittest to 0.2 #7332 by @lucasmerlin
0.31.1 - 2025-03-05
- Fix modifiers not working in kittest #5693 by @lucasmerlin
- Enable all features for egui_kittest docs #5711 by @YgorSouza
- Run a frame per queued event in egui_kittest #5704 by @lucasmerlin
- Add guidelines for image comparison tests #5714 by @Wumpf
0.31.0 - 2025-02-04
⭐ Added
- Add
Harness::new_eframeandTestRenderertrait #5539 by @lucasmerlin - Change
Harness::runto run until no more repaints are requested #5580 by @lucasmerlin - Add
SnapshotResultsstruct toegui_kittest#5672 by @lucasmerlin
🔧 Changed
- Extend
WgpuSetup,egui_kittestnow prefers software rasterizers for testing #5506 by @Wumpf - Write
.old.pngfiles when updating images #5578 by @emilk - Succeed and keep going when
UPDATE_SNAPSHOTSis set #5649 by @emilk
0.30.0 - 2024-12-16 - Initial relrease
- Support for egui 0.30.0
- Automate clicks and text input
- Automatic screenshot testing with wgpu