From 86099aca1276fe786921992c8d5a68914ee79bec Mon Sep 17 00:00:00 2001 From: Lucas Meurer Date: Thu, 15 Oct 2026 17:52:45 +0200 Subject: [PATCH] Release 0.37.0 - Color emojis (#8725) Co-authored-by: Claude Opus 5.5 (1M context) --- CHANGELOG.md | 105 +++++++++++++++++- Cargo.lock | 36 +++--- Cargo.toml | 30 ++--- crates/ecolor/CHANGELOG.md | 4 + crates/eframe/CHANGELOG.md | 26 +++++ crates/egui-wgpu/CHANGELOG.md | 4 + crates/egui-winit/CHANGELOG.md | 17 +++ crates/egui_demo_lib/Cargo.toml | 2 +- crates/egui_extras/CHANGELOG.md | 15 +++ crates/egui_extras/Cargo.toml | 3 +- crates/egui_glow/CHANGELOG.md | 4 + crates/egui_inspection/CHANGELOG.md | 4 + crates/egui_kittest/CHANGELOG.md | 17 +++ crates/egui_system_font_provider/CHANGELOG.md | 2 +- crates/emath/CHANGELOG.md | 6 + crates/epaint/CHANGELOG.md | 24 ++++ crates/epaint_default_fonts/CHANGELOG.md | 4 + deny.toml | 1 + scripts/publish_crates.sh | 2 +- 19 files changed, 266 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e045ef4f..7e45dad8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. -## 0.37.0 - UNRELEASED - Colored emojis! 🚀 +## 0.37.0 - Colored emojis! 🚀 ### Highlights ✨ @@ -24,7 +24,15 @@ egui can now render _any_ glyph that is supported on your system, including colo To enable this, the integration has to use one of two APIs: * `Context::add_glyph_rasterizer(GlyphRasterizer)`: a `GlyphRasterizer` renders a single glyph. `eframe` uses this on web to render individual glyphs to an off-screen canvas [#8490](https://github.com/emilk/egui/pull/8490), [#8545](https://github.com/emilk/egui/pull/8545). -* `Context::add_font_provider(Arc)`: lets egui find and load whole fonts at runtime. Native `eframe` uses this to list system fonts with [`fontique`](https://crates.io/crates/fontique) [#8512](https://github.com/emilk/egui/pull/8512). +* `Context::add_font_provider(Arc)`: lets egui find and load whole fonts at runtime. Native `eframe` uses this through the new `egui_system_font_provider` crate, which lists system fonts with [`fontique`](https://crates.io/crates/fontique) [#8512](https://github.com/emilk/egui/pull/8512). + +#### Completion popup +We've added a new `CompletionPopup` widget that adds autocomplete to a `TextEdit`. +You can use it e.g. to add emoji selection like in discord: + + +https://github.com/user-attachments/assets/f688eca0-cedf-4d17-99b6-5158cccfdbda + #### Experimental theme customizations This release adds a theme plugin system [#8153](https://github.com/emilk/egui/pull/8153) by [@AdrienZianne](https://github.com/AdrienZianne). Enable the new `experimental` feature flag, and there will be a @@ -50,12 +58,27 @@ fn init(ctx: &Context) { } ``` +#### Record videos of integration tests +Reading an integration test to understand what its doing can be challenging, so we've added a `egui_kittest/video` +feature that records a mp4 video from it, using `ffmpeg`! Enable it and pass `EGUI_KITTEST_RECORD=1` or `EGUI_KITTEST_RECORD=open`, +and a video of the test will be recorded. This is an example from one of our more complex rerun integration tests: + + +https://github.com/user-attachments/assets/6c8e2b15-4316-42a1-b18a-2f2fb6864db9 + + + + #### Improved accessibility * Better popup, menu, modal and panel trees [#8581](https://github.com/emilk/egui/pull/8581). * AccessKit support on panel resize handles [#8578](https://github.com/emilk/egui/pull/8578) by [@YuEfSaEDU](https://github.com/YuEfSaEDU). * `WidgetType` is replaced with `accesskit::Role` (re-exported as `egui::Role`) [#8555](https://github.com/emilk/egui/pull/8555). * New `Response::accessible_name`, `Ui::label_inputs_by` / `Ui::name_inputs`, and `Area::role` [#8604](https://github.com/emilk/egui/pull/8604), [#8608](https://github.com/emilk/egui/pull/8608), [#8612](https://github.com/emilk/egui/pull/8612). * Invisible widgets are now hidden from the accessibility tree [#8621](https://github.com/emilk/egui/pull/8621). +* Improved arrow key navigation within menus [#8548](https://github.com/emilk/egui/pull/8548) by [@pederbe](https://github.com/pederbe) + + https://github.com/user-attachments/assets/ab5270f1-2221-4c69-9398-50cadbc2bb41 + #### Other * Paste images from the clipboard: `Event::PasteImage` [#8472](https://github.com/emilk/egui/pull/8472) by [@BernardDGS](https://github.com/BernardDGS). @@ -73,7 +96,83 @@ fn init(ctx: &Context) { * New: `Id::unique`, `IdSaltSet`, `IdSaltMap` [#8534](https://github.com/emilk/egui/pull/8534), [#8590](https://github.com/emilk/egui/pull/8590). * `Panel` constructors take `impl AsIdSalt` [#8592](https://github.com/emilk/egui/pull/8592). -TODO: all the added/changed/removed/fixed +### ⭐ Added +* Add `epaint::RoundedRect` primitive [#8440](https://github.com/emilk/egui/pull/8440) by [@emilk](https://github.com/emilk) +* Add `BandShape` [#8476](https://github.com/emilk/egui/pull/8476) by [@emilk](https://github.com/emilk) +* Allow transforming after shapes were tessellated and rounded [#8587](https://github.com/emilk/egui/pull/8587) by [@lucasmerlin](https://github.com/lucasmerlin) +* Add `AtomLayoutStyle` [#8465](https://github.com/emilk/egui/pull/8465) by [@lucasmerlin](https://github.com/lucasmerlin) +* Add `AtomKind::Paint` [#8524](https://github.com/emilk/egui/pull/8524) by [@lucasmerlin](https://github.com/lucasmerlin) +* StyleProvider for TextEdit and DragValue [#8455](https://github.com/emilk/egui/pull/8455) by [@lucasmerlin](https://github.com/lucasmerlin) +* Add `WidgetText::concat` for joining differently styled `RichText`s [#8538](https://github.com/emilk/egui/pull/8538) by [@emilk](https://github.com/emilk) +* Add `RichText::color_override` to read the explicit text color [#8564](https://github.com/emilk/egui/pull/8564) by [@pederbe](https://github.com/pederbe) +* Add `CollapsingHeader::custom` for collapsing headers with a custom header UI [#8549](https://github.com/emilk/egui/pull/8549) by [@Its-Just-Nans](https://github.com/Its-Just-Nans) +* Add `MenuConfig::submenu_gap` to override the hardcoded gap between a menu and its submenus [#8338](https://github.com/emilk/egui/pull/8338) by [@kiwirm](https://github.com/kiwirm) +* Allow explicit popup sizing passes [#8407](https://github.com/emilk/egui/pull/8407) by [@yay](https://github.com/yay) +* Add `Context::root_ui` and `Context::run_pass` [#8535](https://github.com/emilk/egui/pull/8535) by [@emilk](https://github.com/emilk) +* Add `Context::set_repaint_observer` [#8644](https://github.com/emilk/egui/pull/8644) by [@syl20bnr](https://github.com/syl20bnr) +* Add `Plugin::on_exit` [#8527](https://github.com/emilk/egui/pull/8527) by [@lucasmerlin](https://github.com/lucasmerlin) +* Add `Response::container_hovered`, `container_clicked`, `container_context_menu`, etc [#8537](https://github.com/emilk/egui/pull/8537) by [@emilk](https://github.com/emilk) +* Make `Areas::set_state` public [#8645](https://github.com/emilk/egui/pull/8645) by [@syl20bnr](https://github.com/syl20bnr) +* IdTypeMap: add iterator iter_temp_by_type (analogous to remove_by_type) [#8672](https://github.com/emilk/egui/pull/8672) by [@the-maddin](https://github.com/the-maddin) +* Add `Key`s specific to Windows & Mac keyboards [#8373](https://github.com/emilk/egui/pull/8373) by [@ans1ble](https://github.com/ans1ble) +* Add `KeyboardShortcut::conflicts_with_text_editing` [#8536](https://github.com/emilk/egui/pull/8536) by [@emilk](https://github.com/emilk) +* Add `MouseWheelSource` and `InputState::scroll_source()` [#8665](https://github.com/emilk/egui/pull/8665) by [@emilk](https://github.com/emilk) +* Add option ```scroll_zooms``` for mouse wheel to zoom instead of scroll inside a ```Scene``` container [#7891](https://github.com/emilk/egui/pull/7891) by [@Tristan117](https://github.com/Tristan117) +* Add double-click-and-drag and triple-click-and-drag text selection [#8370](https://github.com/emilk/egui/pull/8370) by [@mudbungie](https://github.com/mudbungie) +* Support AccessKit `SetValue` and `ReplaceSelectedText` in `TextEdit` [#8701](https://github.com/emilk/egui/pull/8701) by [@Elitelord](https://github.com/Elitelord) +* Improve the fallback syntax highlighter in `egui_extras` [#8708](https://github.com/emilk/egui/pull/8708) by [@emilk](https://github.com/emilk) + +### 🔧 Changed +* Make `Context::add_glyph_rasterizer` idempotent [#8600](https://github.com/emilk/egui/pull/8600) by [@emilk](https://github.com/emilk) +* Apply `set_fonts`/`add_font` right away when no font is loaded yet, or no text has been laid out this pass [#8602](https://github.com/emilk/egui/pull/8602), [#8609](https://github.com/emilk/egui/pull/8609) by [@emilk](https://github.com/emilk) +* Name a `Ui`, `Area`, `Popup` or `Tooltip` in the accessibility tree [#8607](https://github.com/emilk/egui/pull/8607) by [@emilk](https://github.com/emilk) +* Fail kittest tests when an input widget has no accessible name (read-only text fields are exempt) [#8589](https://github.com/emilk/egui/pull/8589), [#8611](https://github.com/emilk/egui/pull/8611) by [@emilk](https://github.com/emilk) +* Clarify what `Id` to pass in `accessibility_parent` [#8582](https://github.com/emilk/egui/pull/8582) by [@lucasmerlin](https://github.com/lucasmerlin) +* Bump accesskit{,_consumer,_winit} to latest versions [#8496](https://github.com/emilk/egui/pull/8496) by [@alice](https://github.com/alice) +* Rename `Ui::id` to `Ui::scope_id` and clarify its docstring [#8542](https://github.com/emilk/egui/pull/8542) by [@emilk](https://github.com/emilk) +* Use `Ui::unique_id` for `WidgetRect::parent_id` [#8543](https://github.com/emilk/egui/pull/8543) by [@emilk](https://github.com/emilk) +* Build `ComboBox` from atoms, and take `impl IntoAtoms` [#8618](https://github.com/emilk/egui/pull/8618) by [@emilk](https://github.com/emilk) +* Round the corners of the color picker [#8439](https://github.com/emilk/egui/pull/8439) by [@emilk](https://github.com/emilk) +* Deprecate `global_theme_preference_switch` in favor of `global_theme_preference_buttons` [#8505](https://github.com/emilk/egui/pull/8505) by [@emilk](https://github.com/emilk) +* Feat: add more documentation on `Image::texture_options` [#8357](https://github.com/emilk/egui/pull/8357) by [@Its-Just-Nans](https://github.com/Its-Just-Nans) +* Support the X11/Wayland PRIMARY selection [#8428](https://github.com/emilk/egui/pull/8428) by [@hallyhaa](https://github.com/hallyhaa) +* Make `DroppedFile::web_file` (and its `web-sys` dependency) opt-in [#8669](https://github.com/emilk/egui/pull/8669) by [@DouglasDwyer](https://github.com/DouglasDwyer) +* Keep `egui::Context` `Send + Sync` with wasm threads [#8638](https://github.com/emilk/egui/pull/8638) by [@teolines](https://github.com/teolines) +* Enable `clippy::std_instead_of_alloc` in core egui crates [#8702](https://github.com/emilk/egui/pull/8702) by [@emilk](https://github.com/emilk) + +### 🔥 Removed +* Remove the `Font` borrow-bag; put its methods on `FontsImpl` [#8504](https://github.com/emilk/egui/pull/8504) by [@emilk](https://github.com/emilk) +* Remove the `AsId` trait [#8584](https://github.com/emilk/egui/pull/8584) by [@emilk](https://github.com/emilk) + +### 🐛 Fixed +* Fix changing widget IDs and false-positive ID change warnings across passes [#8316](https://github.com/emilk/egui/pull/8316) by [@vlansco](https://github.com/vlansco) +* Warn again when automatic widget IDs shift between passes [#8670](https://github.com/emilk/egui/pull/8670) by [@emilk](https://github.com/emilk) +* Ensure nested `AtomLayout`s have unique ids [#8556](https://github.com/emilk/egui/pull/8556) by [@lucasmerlin](https://github.com/lucasmerlin) +* Remove unfocusable widgets from the widget cache [#8653](https://github.com/emilk/egui/pull/8653) by [@ori-sky](https://github.com/ori-sky) +* Fix AccessKit `ScrollIntoView` for a `Ui` with `UiBuilder::sense` [#8646](https://github.com/emilk/egui/pull/8646) by [@GavinPizza](https://github.com/GavinPizza) +* Fix popups immediately closing on mouse button release [#7624](https://github.com/emilk/egui/pull/7624) by [@vladbat00](https://github.com/vladbat00) +* Show menu without a click if another menu is open [#7802](https://github.com/emilk/egui/pull/7802) by [@mkeeter](https://github.com/mkeeter) +* Respect the menu style config in sub menus [#8572](https://github.com/emilk/egui/pull/8572) by [@lucasmerlin](https://github.com/lucasmerlin) +* Paint `SubMenuButton` arrow as a triangle instead of a glyph [#8525](https://github.com/emilk/egui/pull/8525) by [@lucasmerlin](https://github.com/lucasmerlin) +* Show tooltips of container responses when hovering their children [#7909](https://github.com/emilk/egui/pull/7909) by [@optozorax](https://github.com/optozorax) +* Enable mouse wheel scrolling while dragging inside a `ScrollArea` [#7919](https://github.com/emilk/egui/pull/7919) by [@rustbasic](https://github.com/rustbasic) +* Fix #8495: Match scrollbar interaction rect to drawn bar rect (remove dead zone) [#8635](https://github.com/emilk/egui/pull/8635) by [@dajiaohuang](https://github.com/dajiaohuang) +* Fix scroll modifiers getting stuck when `TouchPhase::End` never arrives [#8636](https://github.com/emilk/egui/pull/8636) by [@SulimanAbdulrazzaq](https://github.com/SulimanAbdulrazzaq) +* Fix NaN panic in `Scene` with zero `scene_rect` and unbounded zoom [#8622](https://github.com/emilk/egui/pull/8622) by [@emilk](https://github.com/emilk) +* Fix: Panel/Scene clip rect should respect parent [#8562](https://github.com/emilk/egui/pull/8562) by [@DouglasDwyer](https://github.com/DouglasDwyer) +* Fix : an issue where double-clicks were judged as triple-clicks [#7915](https://github.com/emilk/egui/pull/7915) by [@rustbasic](https://github.com/rustbasic) +* Fix `TextEdit` layout shift with custom margin; unclipped `TextEdit` grows to fit text [#8628](https://github.com/emilk/egui/pull/8628) by [@emilk](https://github.com/emilk) +* Fix: TextFormat::valign not applied correctly with custom line_height [#8030](https://github.com/emilk/egui/pull/8030) by [@rustbasic](https://github.com/rustbasic) +* Don't start a CJK row with full-width closing punctuation [#8658](https://github.com/emilk/egui/pull/8658) by [@Zaneris](https://github.com/Zaneris) +* Fix `DragValue` reporting changes while typing with `update_while_editing(false)` [#8627](https://github.com/emilk/egui/pull/8627) by [@SulimanAbdulrazzaq](https://github.com/SulimanAbdulrazzaq) +* Fix color picker RGB drift when editing alpha [#8483](https://github.com/emilk/egui/pull/8483) by [@ishuowang](https://github.com/ishuowang) +* Preserve drop-zone frame styling when idle [#8633](https://github.com/emilk/egui/pull/8633) by [@pederbe](https://github.com/pederbe) +* Keep a `Window`'s position after a restart [#8637](https://github.com/emilk/egui/pull/8637) by [@teolines](https://github.com/teolines) +* Fix burst of extra repaints before request_repaint_after deadlines [#8595](https://github.com/emilk/egui/pull/8595) by [@xmakro](https://github.com/xmakro) +* Preserve safe area insets when appending input [#8484](https://github.com/emilk/egui/pull/8484) by [@ishuowang](https://github.com/ishuowang) + +### 🚀 Performance +* Avoid cross-viewport GalleyCache eviction [#8528](https://github.com/emilk/egui/pull/8528) by [@rustbasic](https://github.com/rustbasic) ## 0.36.2 - 2026-09-08 ### ⭐ Added diff --git a/Cargo.lock b/Cargo.lock index 614fe1c6..493f0fe3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1255,7 +1255,7 @@ checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" [[package]] name = "ecolor" -version = "0.36.2" +version = "0.37.0" dependencies = [ "bytemuck", "cint", @@ -1267,7 +1267,7 @@ dependencies = [ [[package]] name = "eframe" -version = "0.36.2" +version = "0.37.0" dependencies = [ "ahash", "bytemuck", @@ -1307,7 +1307,7 @@ dependencies = [ [[package]] name = "egui" -version = "0.36.2" +version = "0.37.0" dependencies = [ "accesskit", "ahash", @@ -1329,7 +1329,7 @@ dependencies = [ [[package]] name = "egui-wgpu" -version = "0.36.2" +version = "0.37.0" dependencies = [ "ahash", "bytemuck", @@ -1347,7 +1347,7 @@ dependencies = [ [[package]] name = "egui-winit" -version = "0.36.2" +version = "0.37.0" dependencies = [ "accesskit_winit", "arboard", @@ -1373,7 +1373,7 @@ dependencies = [ [[package]] name = "egui_demo_app" -version = "0.36.2" +version = "0.37.0" dependencies = [ "accesskit", "accesskit_consumer", @@ -1402,7 +1402,7 @@ dependencies = [ [[package]] name = "egui_demo_lib" -version = "0.36.2" +version = "0.37.0" dependencies = [ "criterion", "document-features", @@ -1420,7 +1420,7 @@ dependencies = [ [[package]] name = "egui_extras" -version = "0.36.2" +version = "0.37.0" dependencies = [ "ahash", "document-features", @@ -1442,7 +1442,7 @@ dependencies = [ [[package]] name = "egui_glow" -version = "0.36.2" +version = "0.37.0" dependencies = [ "bytemuck", "document-features", @@ -1458,7 +1458,7 @@ dependencies = [ [[package]] name = "egui_inspection" -version = "0.36.2" +version = "0.37.0" dependencies = [ "document-features", "egui", @@ -1471,7 +1471,7 @@ dependencies = [ [[package]] name = "egui_kittest" -version = "0.36.2" +version = "0.37.0" dependencies = [ "dify", "document-features", @@ -1492,7 +1492,7 @@ dependencies = [ [[package]] name = "egui_system_font_provider" -version = "0.36.2" +version = "0.37.0" dependencies = [ "egui", "epaint", @@ -1506,7 +1506,7 @@ dependencies = [ [[package]] name = "egui_tests" -version = "0.36.2" +version = "0.37.0" dependencies = [ "egui", "egui_extras", @@ -1536,7 +1536,7 @@ checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34" [[package]] name = "emath" -version = "0.36.2" +version = "0.37.0" dependencies = [ "bytemuck", "document-features", @@ -1644,7 +1644,7 @@ dependencies = [ [[package]] name = "epaint" -version = "0.36.2" +version = "0.37.0" dependencies = [ "ahash", "bytemuck", @@ -1674,7 +1674,7 @@ dependencies = [ [[package]] name = "epaint_default_fonts" -version = "0.36.2" +version = "0.37.0" [[package]] name = "equivalent" @@ -3762,7 +3762,7 @@ dependencies = [ [[package]] name = "popups" -version = "0.36.2" +version = "0.37.0" dependencies = [ "eframe", "env_logger", @@ -6166,7 +6166,7 @@ checksum = "ec7a2a501ed189703dba8b08142f057e887dfc4b2cc4db2d343ac6376ba3e0b9" [[package]] name = "xtask" -version = "0.36.2" +version = "0.37.0" [[package]] name = "yaml-rust" diff --git a/Cargo.toml b/Cargo.toml index 38ee8601..399748f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ members = [ edition = "2024" license = "MIT OR Apache-2.0" rust-version = "1.95" -version = "0.36.2" +version = "0.37.0" [profile.release] @@ -57,20 +57,20 @@ opt-level = 2 [workspace.dependencies] -emath = { version = "0.36.2", path = "crates/emath", default-features = false } -ecolor = { version = "0.36.2", path = "crates/ecolor", default-features = false } -epaint = { version = "0.36.2", path = "crates/epaint", default-features = false } -epaint_default_fonts = { version = "0.36.2", path = "crates/epaint_default_fonts" } -egui = { version = "0.36.2", path = "crates/egui", default-features = false } -egui-winit = { version = "0.36.2", path = "crates/egui-winit", default-features = false } -egui_extras = { version = "0.36.2", path = "crates/egui_extras", default-features = false } -egui-wgpu = { version = "0.36.2", path = "crates/egui-wgpu", default-features = false } -egui_demo_lib = { version = "0.36.2", path = "crates/egui_demo_lib", default-features = false } -egui_glow = { version = "0.36.2", path = "crates/egui_glow", default-features = false } -egui_inspection = { version = "0.36.2", path = "crates/egui_inspection", default-features = false } -egui_kittest = { version = "0.36.2", path = "crates/egui_kittest", default-features = false } -egui_system_font_provider = { version = "0.36.2", path = "crates/egui_system_font_provider", default-features = false } -eframe = { version = "0.36.2", path = "crates/eframe", default-features = false } +emath = { version = "0.37.0", path = "crates/emath", default-features = false } +ecolor = { version = "0.37.0", path = "crates/ecolor", default-features = false } +epaint = { version = "0.37.0", path = "crates/epaint", default-features = false } +epaint_default_fonts = { version = "0.37.0", path = "crates/epaint_default_fonts" } +egui = { version = "0.37.0", path = "crates/egui", default-features = false } +egui-winit = { version = "0.37.0", path = "crates/egui-winit", default-features = false } +egui_extras = { version = "0.37.0", path = "crates/egui_extras", default-features = false } +egui-wgpu = { version = "0.37.0", path = "crates/egui-wgpu", default-features = false } +egui_demo_lib = { version = "0.37.0", path = "crates/egui_demo_lib", default-features = false } +egui_glow = { version = "0.37.0", path = "crates/egui_glow", default-features = false } +egui_inspection = { version = "0.37.0", path = "crates/egui_inspection", default-features = false } +egui_kittest = { version = "0.37.0", path = "crates/egui_kittest", default-features = false } +egui_system_font_provider = { version = "0.37.0", path = "crates/egui_system_font_provider", default-features = false } +eframe = { version = "0.37.0", path = "crates/eframe", default-features = false } accesskit = "0.25.0" accesskit_consumer = "0.39.0" diff --git a/crates/ecolor/CHANGELOG.md b/crates/ecolor/CHANGELOG.md index fbb56d5f..a21fe900 100644 --- a/crates/ecolor/CHANGELOG.md +++ b/crates/ecolor/CHANGELOG.md @@ -6,6 +6,10 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. +## 0.37.0 - 2026-10-15 +Nothing new + + ## 0.36.2 - 2026-09-08 Nothing new diff --git a/crates/eframe/CHANGELOG.md b/crates/eframe/CHANGELOG.md index e3dd5d91..40cc9d7e 100644 --- a/crates/eframe/CHANGELOG.md +++ b/crates/eframe/CHANGELOG.md @@ -7,6 +7,32 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. +## 0.37.0 - 2026-10-15 +### ⭐ Added +* Add option to turn off the default clipboard keyboard shortcuts in egui-winit and eframe [#5615](https://github.com/emilk/egui/pull/5615) by [@YgorSouza](https://github.com/YgorSouza) +* Add `Frame::set_traffic_lights_position` for macOS custom title bars [#8494](https://github.com/emilk/egui/pull/8494) by [@martenbjork-rerun](https://github.com/martenbjork-rerun) + +### 🔧 Changed +* Fall back to a compatibility-profile OpenGL context [#8655](https://github.com/emilk/egui/pull/8655) by [@crmne](https://github.com/crmne) +* Deliver raw mouse motion to the viewport under the pointer, even if unfocused [#8405](https://github.com/emilk/egui/pull/8405) by [@Le-Syl21](https://github.com/Le-Syl21) +* Don't switch the GL context twice per frame on Windows with one viewport [#8461](https://github.com/emilk/egui/pull/8461) by [@Platon7788](https://github.com/Platon7788) +* Support the X11/Wayland PRIMARY selection [#8428](https://github.com/emilk/egui/pull/8428) by [@hallyhaa](https://github.com/hallyhaa) +* Make `DroppedFile::web_file` (and its `web-sys` dependency) opt-in [#8669](https://github.com/emilk/egui/pull/8669) by [@DouglasDwyer](https://github.com/DouglasDwyer) +* Make clipboard feature optional [#8392](https://github.com/emilk/egui/pull/8392) by [@eaglesemanation](https://github.com/eaglesemanation) +* Keep running on Wayland when frame callbacks stop [#8631](https://github.com/emilk/egui/pull/8631) by [@crmne](https://github.com/crmne) + +### 🐛 Fixed +* Fix eframe web text agent being visible [#8550](https://github.com/emilk/egui/pull/8550) by [@lucasmerlin](https://github.com/lucasmerlin) +* Use `arboard` if `smithay` does not find text in the clipboard [#8624](https://github.com/emilk/egui/pull/8624) by [@grtlr](https://github.com/grtlr) +* Use the activation token from the environment on window creation [#8406](https://github.com/emilk/egui/pull/8406) by [@Le-Syl21](https://github.com/Le-Syl21) +* Fix: Refresh Windows title bar after theme changes [#8402](https://github.com/emilk/egui/pull/8402) by [@rustbasic](https://github.com/rustbasic) +* Save window settings only from the root viewport [#8661](https://github.com/emilk/egui/pull/8661) by [@rustbasic](https://github.com/rustbasic) +* Preserve transparent viewport windows on Windows [#8616](https://github.com/emilk/egui/pull/8616) by [@rustbasic](https://github.com/rustbasic) +* Fix `Frame::set_wgpu_surface_config` being ignored [#8442](https://github.com/emilk/egui/pull/8442) by [@chicoferreira](https://github.com/chicoferreira) +* Improve window restoration logic [#8687](https://github.com/emilk/egui/pull/8687) by [@lucasmerlin](https://github.com/lucasmerlin) +* Fix premultiplied alpha when copying images to the clipboard [#8715](https://github.com/emilk/egui/pull/8715) by [@emilk](https://github.com/emilk) + + ## 0.36.2 - 2026-09-08 * Don't busy-loop a CPU core while waiting for a redraw [#8398](https://github.com/emilk/egui/pull/8398) by [@42Pupusas](https://github.com/42Pupusas) * Hide drop shadow window decoration when in fullscreen mode [#8449](https://github.com/emilk/egui/pull/8449) by [@tarolling](https://github.com/tarolling) diff --git a/crates/egui-wgpu/CHANGELOG.md b/crates/egui-wgpu/CHANGELOG.md index 82bc4e52..bc644ed3 100644 --- a/crates/egui-wgpu/CHANGELOG.md +++ b/crates/egui-wgpu/CHANGELOG.md @@ -6,6 +6,10 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. +## 0.37.0 - 2026-10-15 +* Fix `Frame::set_wgpu_surface_config` being ignored [#8442](https://github.com/emilk/egui/pull/8442) by [@chicoferreira](https://github.com/chicoferreira) + + ## 0.36.2 - 2026-09-08 * Fix `egui-wgpu` build on `wasm32-unknown-emscripten` [#8454](https://github.com/emilk/egui/pull/8454) by [@bfeip](https://github.com/bfeip) diff --git a/crates/egui-winit/CHANGELOG.md b/crates/egui-winit/CHANGELOG.md index 2c9c8ddd..1223fb6a 100644 --- a/crates/egui-winit/CHANGELOG.md +++ b/crates/egui-winit/CHANGELOG.md @@ -5,6 +5,23 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. +## 0.37.0 - 2026-10-15 +### ⭐ Added +* Add `MouseWheelSource` and `InputState::scroll_source()` [#8665](https://github.com/emilk/egui/pull/8665) by [@emilk](https://github.com/emilk) +* Add option to turn off the default clipboard keyboard shortcuts in egui-winit and eframe [#5615](https://github.com/emilk/egui/pull/5615) by [@YgorSouza](https://github.com/YgorSouza) + +### 🔧 Changed +* Make Clipboard::new unsafe [#7826](https://github.com/emilk/egui/pull/7826) by [@SuchAFuriousDeath](https://github.com/SuchAFuriousDeath) +* Eframe: hand focus to a launched process with an activation token [#8282](https://github.com/emilk/egui/pull/8282) by [@Le-Syl21](https://github.com/Le-Syl21) + +### 🐛 Fixed +* Use `arboard` if `smithay` does not find text in the clipboard [#8624](https://github.com/emilk/egui/pull/8624) by [@grtlr](https://github.com/grtlr) +* Only treat Cmd+X/C/V without extra modifiers as cut/copy/paste [#8668](https://github.com/emilk/egui/pull/8668) by [@emilk](https://github.com/emilk) +* Position the IME candidate window at the text cursor [#8681](https://github.com/emilk/egui/pull/8681) by [@lucasmerlin](https://github.com/lucasmerlin) +* Pick Cmd vs Ctrl shortcut modifier from Context::os() [#8677](https://github.com/emilk/egui/pull/8677) by [@OlegOAndreev](https://github.com/OlegOAndreev) +* Fix premultiplied alpha when copying images to the clipboard [#8715](https://github.com/emilk/egui/pull/8715) by [@emilk](https://github.com/emilk) + + ## 0.36.2 - 2026-09-08 * Hide drop shadow window decoration when in fullscreen mode [#8449](https://github.com/emilk/egui/pull/8449) by [@tarolling](https://github.com/tarolling) diff --git a/crates/egui_demo_lib/Cargo.toml b/crates/egui_demo_lib/Cargo.toml index 9a1f7935..2b1eeb90 100644 --- a/crates/egui_demo_lib/Cargo.toml +++ b/crates/egui_demo_lib/Cargo.toml @@ -39,7 +39,7 @@ syntect = ["egui_extras/syntect"] [dependencies] -egui = { workspace = true, default-features = false, features = ["color-hex"] } +egui = { workspace = true, default-features = false, features = ["color-hex", "default_fonts"] } egui_extras = { workspace = true, features = ["image", "svg"] } log.workspace = true diff --git a/crates/egui_extras/CHANGELOG.md b/crates/egui_extras/CHANGELOG.md index f2dfe160..8f6e2bc0 100644 --- a/crates/egui_extras/CHANGELOG.md +++ b/crates/egui_extras/CHANGELOG.md @@ -5,6 +5,21 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. +## 0.37.0 - 2026-10-15 +### ⭐ Added +* Add JSON to the simple syntax highlighter in egui_extras [#8632](https://github.com/emilk/egui/pull/8632) by [@emilk](https://github.com/emilk) +* Add feature for supporting raster images in svg [#8139](https://github.com/emilk/egui/pull/8139) by [@onsdagens](https://github.com/onsdagens) +* Add simple SQL syntax highlighting to `egui_extras` [#8673](https://github.com/emilk/egui/pull/8673) by [@emilk](https://github.com/emilk) + +### 🐛 Fixed +* Fix window resizing with clipped table content [#8517](https://github.com/emilk/egui/pull/8517) by [@pederbe](https://github.com/pederbe) +* Fix image loading in egui_extras to support image plugins [#8547](https://github.com/emilk/egui/pull/8547) by [@programmerlexi](https://github.com/programmerlexi) +* Percent-decode file:// URIs in the file loader [#8342](https://github.com/emilk/egui/pull/8342) by [@Lfan-ke](https://github.com/Lfan-ke) + +### 🚀 Performance +* non-blocking webp loader [#8514](https://github.com/emilk/egui/pull/8514) by [@yawnnn](https://github.com/yawnnn) + + ## 0.36.2 - 2026-09-08 Nothing new diff --git a/crates/egui_extras/Cargo.toml b/crates/egui_extras/Cargo.toml index 502009b8..6e8eb5d4 100644 --- a/crates/egui_extras/Cargo.toml +++ b/crates/egui_extras/Cargo.toml @@ -108,5 +108,6 @@ ehttp = { workspace = true, optional = true } [dev-dependencies] egui = { workspace = true, features = ["default_fonts"] } -egui_kittest = { workspace = true, features = ["snapshot", "wgpu"] } +# Can't use a workspace dependency here since that adds a cyclic dep during publish +egui_kittest = { path = "../egui_kittest", features = ["snapshot", "wgpu"] } tempfile.workspace = true diff --git a/crates/egui_glow/CHANGELOG.md b/crates/egui_glow/CHANGELOG.md index 28318630..30c1feca 100644 --- a/crates/egui_glow/CHANGELOG.md +++ b/crates/egui_glow/CHANGELOG.md @@ -6,6 +6,10 @@ Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. +## 0.37.0 - 2026-10-15 +* Handle `egui_inspection` requests even while a window is hidden [#8571](https://github.com/emilk/egui/pull/8571) by [@emilk](https://github.com/emilk) + + ## 0.36.2 - 2026-09-08 Nothing new diff --git a/crates/egui_kittest/CHANGELOG.md b/crates/egui_kittest/CHANGELOG.md index 369bf91a..a39bb9d2 100644 --- a/crates/egui_kittest/CHANGELOG.md +++ b/crates/egui_kittest/CHANGELOG.md @@ -6,6 +6,23 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. +## 0.37.0 - 2026-10-15 +### ⭐ Added +* Add `diagnostic_max_steps` for a better`ExceededMaxStepsError` [#8421](https://github.com/emilk/egui/pull/8421) by [@lucasmerlin](https://github.com/lucasmerlin) +* Record egui_kittest tests as mp4s via `KITTEST_RECORD=1` [#8118](https://github.com/emilk/egui/pull/8118) by [@lucasmerlin](https://github.com/lucasmerlin) +* Add `HarnessBuilder::with_render_cursor` [#8551](https://github.com/emilk/egui/pull/8551) by [@lucasmerlin](https://github.com/lucasmerlin) +* Add `HarnessBuilder::with_context_setup` to configure the `Context` before the first pass [#8686](https://github.com/emilk/egui/pull/8686) by [@emilk](https://github.com/emilk) + +### 🔧 Changed +* Fail kittest tests when an input widget has no accessible name [#8589](https://github.com/emilk/egui/pull/8589) by [@emilk](https://github.com/emilk) +* Draw tofu for families without fonts, and add `MissingGlyphPolicy` (panics by default in `egui_kittest`) [#8601](https://github.com/emilk/egui/pull/8601) by [@emilk](https://github.com/emilk) +* Apply `set_fonts`/`add_font` right away when no font is loaded yet [#8602](https://github.com/emilk/egui/pull/8602) by [@emilk](https://github.com/emilk) +* A read-only text field needs no accessible name [#8611](https://github.com/emilk/egui/pull/8611) by [@emilk](https://github.com/emilk) + +### 🐛 Fixed +* Make kittest's predictable texture filtering honor `TextureOptions::NEAREST` [#8441](https://github.com/emilk/egui/pull/8441) by [@emilk](https://github.com/emilk) + + ## 0.36.2 - 2026-09-08 * Add new `render_every_step` flag to egui_kittest [#8487](https://github.com/emilk/egui/pull/8487) by [@lucasmerlin](https://github.com/lucasmerlin) diff --git a/crates/egui_system_font_provider/CHANGELOG.md b/crates/egui_system_font_provider/CHANGELOG.md index f1492b94..8076b03a 100644 --- a/crates/egui_system_font_provider/CHANGELOG.md +++ b/crates/egui_system_font_provider/CHANGELOG.md @@ -6,4 +6,4 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. -## Unreleased - Initial release +## 0.37.0 - Initial release diff --git a/crates/emath/CHANGELOG.md b/crates/emath/CHANGELOG.md index 2aed4718..870cd494 100644 --- a/crates/emath/CHANGELOG.md +++ b/crates/emath/CHANGELOG.md @@ -6,6 +6,12 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. +## 0.37.0 - 2026-10-15 +* Add `Align2` helpers [#8485](https://github.com/emilk/egui/pull/8485) by [@lucasmerlin](https://github.com/lucasmerlin) +* Add `Rangef::union` [#8603](https://github.com/emilk/egui/pull/8603) by [@emilk](https://github.com/emilk) +* Feat: add utils methods to Rect (floor, round, ceil) [#8654](https://github.com/emilk/egui/pull/8654) by [@Its-Just-Nans](https://github.com/Its-Just-Nans) + + ## 0.36.2 - 2026-09-08 Nothing new diff --git a/crates/epaint/CHANGELOG.md b/crates/epaint/CHANGELOG.md index f437c402..e4aaea1d 100644 --- a/crates/epaint/CHANGELOG.md +++ b/crates/epaint/CHANGELOG.md @@ -5,6 +5,30 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. +## 0.37.0 - 2026-10-15 +### ⭐ Added +* Add `epaint::RoundedRect` primitive [#8440](https://github.com/emilk/egui/pull/8440) by [@emilk](https://github.com/emilk) +* Add `FaceStore`: one place that parses and stores font faces [#8502](https://github.com/emilk/egui/pull/8502) by [@emilk](https://github.com/emilk) +* Add `BandShape` [#8476](https://github.com/emilk/egui/pull/8476) by [@emilk](https://github.com/emilk) + +### 🔧 Changed +* Split `fonts.rs` and `font.rs` into one file per type [#8500](https://github.com/emilk/egui/pull/8500) by [@emilk](https://github.com/emilk) +* Move glyph bitmap caches out of `FontFace` into a new `GlyphAtlas` [#8501](https://github.com/emilk/egui/pull/8501) by [@emilk](https://github.com/emilk) +* Replace `CachedFamily` with `Family`, which owns the fallback walk [#8503](https://github.com/emilk/egui/pull/8503) by [@emilk](https://github.com/emilk) +* Draw tofu for families without fonts, and add `MissingGlyphPolicy` (panics by default in `egui_kittest`) [#8601](https://github.com/emilk/egui/pull/8601) by [@emilk](https://github.com/emilk) +* Apply font changes right away while no text has been laid out this pass [#8609](https://github.com/emilk/egui/pull/8609) by [@emilk](https://github.com/emilk) + +### 🔥 Removed +* Remove the `Font` borrow-bag; put its methods on `FontsImpl` [#8504](https://github.com/emilk/egui/pull/8504) by [@emilk](https://github.com/emilk) + +### 🐛 Fixed +* Fix: TextFormat::valign not applied correctly with custom line_height [#8030](https://github.com/emilk/egui/pull/8030) by [@rustbasic](https://github.com/rustbasic) +* Fix missing Chinese characters from system fonts on Windows [#8688](https://github.com/emilk/egui/pull/8688) by [@lucasmerlin](https://github.com/lucasmerlin) + +### 🚀 Performance +* Optimize CubicBezierShape::find_cross_t [#8413](https://github.com/emilk/egui/pull/8413) by [@oscargus](https://github.com/oscargus) + + ## 0.36.2 - 2026-09-08 * Fix rendering of thin, angled rectangles [#8482](https://github.com/emilk/egui/pull/8482) by [@emilk](https://github.com/emilk) * Simplify and optimize `Color32::from_rgba_unmultiplied` [#8427](https://github.com/emilk/egui/pull/8427) by [@Keith-Cancel](https://github.com/Keith-Cancel) diff --git a/crates/epaint_default_fonts/CHANGELOG.md b/crates/epaint_default_fonts/CHANGELOG.md index a2d8db17..f8d612f9 100644 --- a/crates/epaint_default_fonts/CHANGELOG.md +++ b/crates/epaint_default_fonts/CHANGELOG.md @@ -5,6 +5,10 @@ This file is updated upon each release. Changes since the last release can be found at or by running the `scripts/generate_changelog.py` script. +## 0.37.0 - 2026-10-15 +Nothing new + + ## 0.36.2 - 2026-09-08 Nothing new diff --git a/deny.toml b/deny.toml index 2d347eb5..ebae1c86 100644 --- a/deny.toml +++ b/deny.toml @@ -40,6 +40,7 @@ ignore = [ [bans] multiple-versions = "deny" # Use `cargo tree --duplicates` to easily find duplicates wildcards = "deny" +allow-wildcard-paths = true # For the path-only `egui_kittest` dev-dependency of `egui_extras` deny = [ { name = "cmake", reason = "It has hurt me too much" }, { name = "openssl-sys", reason = "Use rustls" }, diff --git a/scripts/publish_crates.sh b/scripts/publish_crates.sh index cc762746..ecfe99d8 100755 --- a/scripts/publish_crates.sh +++ b/scripts/publish_crates.sh @@ -9,7 +9,7 @@ (cd crates/egui_glow && cargo publish --quiet) && echo "✅ egui_glow" (cd crates/egui-wgpu && cargo publish --quiet) && echo "✅ egui-wgpu" (cd crates/egui_system_font_provider && cargo publish --quiet) && echo "✅ egui_system_font_provider" -(cd crates/egui_inspection && cargo publish --quiet) && echo "✅ eframe" +(cd crates/egui_inspection && cargo publish --quiet) && echo "✅ egui_inspection" (cd crates/eframe && cargo publish --quiet) && echo "✅ eframe" (cd crates/egui_extras && cargo publish --quiet) && echo "✅ egui_extras" (cd crates/egui_kittest && cargo publish --quiet) && echo "✅ egui_kittest"