---
title: "egui 0.38.0 Breaking Changes on crates.io | Since.dev"
description: "What each egui release removed, renamed or changed: 42 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/egui
last_updated: 2026-12-04
---

# egui breaking changes

egui 0.38.0 (December 1, 2026) is its newest release with breaking changes, 42 of them. The first: Removed ColorImage. Every breaking API change we have recorded in egui on crates.io: 42 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.38.0`, released December 1, 2026. [Source repository](https://github.com/emilk/egui)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

## egui 0.38.0 breaking changes

egui 0.38.0, released December 1, 2026: 42 breaking changes.

- **Removed** `ColorImage`  

The internal fields of ColorImage are no longer public, so code that reads or writes them must use the public methods instead. [github.com](https://github.com/emilk/egui/releases/tag/0.38.0)
- **Removed** `egui::Style::compact_menu_style`  

egui::Style::compact_menu_style was removed in egui 0.38.0 [crates.io](https://crates.io/crates/egui/0.38.0)
- **Removed** `egui::style::Style::compact_menu_style`  

egui::style::Style::compact_menu_style was removed in egui 0.38.0 [crates.io](https://crates.io/crates/egui/0.38.0)
- **Removed** `egui::style::Visuals::code_bg_color`  

egui::style::Visuals::code_bg_color was removed in egui 0.38.0 [crates.io](https://crates.io/crates/egui/0.38.0)
- **Removed** `egui::Visuals::code_bg_color`  

egui::Visuals::code_bg_color was removed in egui 0.38.0 [crates.io](https://crates.io/crates/egui/0.38.0)
- **Removed** `Style.compact_menu_style`  

The compact_menu_style field of Style was removed, so code referencing it will no longer compile. [github.com](https://github.com/emilk/egui/releases/tag/0.38.0)
- **Behavior changed** `egui_extras.Table`  

Table cells now get padding from TableStyle::cell_margin, which changes layout size. [github.com](https://github.com/emilk/egui/releases/tag/0.38.0)
- **Behavior changed** `Grid`  

Grid cells now get padding from TableStyle::cell_margin, which changes layout size. [github.com](https://github.com/emilk/egui/releases/tag/0.38.0)
- **Default changed** `Grid`  

Grid now has its own TableStyle and striped tables are the default, so grids look different unless styling is adjusted. [github.com](https://github.com/emilk/egui/releases/tag/0.38.0)
- **Default changed** `TextEdit`  

Single-line TextEdit now centers its text vertically by default, so its appearance changes. [github.com](https://github.com/emilk/egui/releases/tag/0.38.0)
- **Signature changed** `CollapsingHeader`  

CollapsingHeader now accepts atoms rather than WidgetText, so callers passing WidgetText must change. [github.com](https://github.com/emilk/egui/releases/tag/0.38.0)
- **Signature changed** `egui::Atoms::iter_texts`  

Was fn iter_texts(&self) -> impl Iterator\<Item = &WidgetText> + use<'\_, 'a>; now fn iter_texts(&self) -> impl Iterator\<Item = &WidgetText>. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::Atoms::iter_texts_mut`  

Was fn iter_texts_mut(&mut self) -> impl Iterator\<Item = &mut WidgetText> + use<'a, '\_>; now fn iter_texts_mut(&mut self) -> impl Iterator\<Item = &mut WidgetText>. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::CollapsingHeader`  

Was struct CollapsingHeader; now struct CollapsingHeader<'a>. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::CollapsingHeader::default_open`  

Was fn default_open(mut self, open: bool) -> Self; now fn default_open(mut self, open: bool) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::CollapsingHeader::enabled`  

Was fn enabled(mut self, enabled: bool) -> Self; now fn enabled(mut self, enabled: bool) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::CollapsingHeader::icon`  

Was fn icon(mut self, icon_fn: impl FnOnce(&mut Ui, f32, &Response) + 'static) -> Self; now fn icon(mut self, icon_fn: impl FnOnce(&mut Ui, f32, &Response) + 'static) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::CollapsingHeader::id_salt`  

Was fn id_salt(mut self, id_salt: impl AsIdSalt) -> Self; now fn id_salt(mut self, id_salt: impl AsIdSalt) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::CollapsingHeader::new`  

Was fn new(text: impl Into\<WidgetText>) -> Self; now fn new(atoms: impl IntoAtoms<'a>) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::CollapsingHeader::open`  

Was fn open(mut self, open: Option\<bool>) -> Self; now fn open(mut self, open: Option\<bool>) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::CollapsingHeader::show_background`  

Was fn show_background(mut self, show_background: bool) -> Self; now fn show_background(mut self, show_background: bool) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::collapsing_header::CollapsingHeader`  

Was struct CollapsingHeader; now struct CollapsingHeader<'a>. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::collapsing_header::CollapsingHeader::default_open`  

Was fn default_open(mut self, open: bool) -> Self; now fn default_open(mut self, open: bool) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::collapsing_header::CollapsingHeader::enabled`  

Was fn enabled(mut self, enabled: bool) -> Self; now fn enabled(mut self, enabled: bool) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::collapsing_header::CollapsingHeader::icon`  

Was fn icon(mut self, icon_fn: impl FnOnce(&mut Ui, f32, &Response) + 'static) -> Self; now fn icon(mut self, icon_fn: impl FnOnce(&mut Ui, f32, &Response) + 'static) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::collapsing_header::CollapsingHeader::id_salt`  

Was fn id_salt(mut self, id_salt: impl AsIdSalt) -> Self; now fn id_salt(mut self, id_salt: impl AsIdSalt) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::collapsing_header::CollapsingHeader::new`  

Was fn new(text: impl Into\<WidgetText>) -> Self; now fn new(atoms: impl IntoAtoms<'a>) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::collapsing_header::CollapsingHeader::open`  

Was fn open(mut self, open: Option\<bool>) -> Self; now fn open(mut self, open: Option\<bool>) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::collapsing_header::CollapsingHeader::show_background`  

Was fn show_background(mut self, show_background: bool) -> Self; now fn show_background(mut self, show_background: bool) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::CollapsingHeader`  

Was struct CollapsingHeader; now struct CollapsingHeader<'a>. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::CollapsingHeader::default_open`  

Was fn default_open(mut self, open: bool) -> Self; now fn default_open(mut self, open: bool) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::CollapsingHeader::enabled`  

Was fn enabled(mut self, enabled: bool) -> Self; now fn enabled(mut self, enabled: bool) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::CollapsingHeader::icon`  

Was fn icon(mut self, icon_fn: impl FnOnce(&mut Ui, f32, &Response) + 'static) -> Self; now fn icon(mut self, icon_fn: impl FnOnce(&mut Ui, f32, &Response) + 'static) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::CollapsingHeader::id_salt`  

Was fn id_salt(mut self, id_salt: impl AsIdSalt) -> Self; now fn id_salt(mut self, id_salt: impl AsIdSalt) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::CollapsingHeader::new`  

Was fn new(text: impl Into\<WidgetText>) -> Self; now fn new(atoms: impl IntoAtoms<'a>) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::CollapsingHeader::open`  

Was fn open(mut self, open: Option\<bool>) -> Self; now fn open(mut self, open: Option\<bool>) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::containers::CollapsingHeader::show_background`  

Was fn show_background(mut self, show_background: bool) -> Self; now fn show_background(mut self, show_background: bool) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::Grid::spacing`  

Was fn spacing(mut self, spacing: impl Into\<Vec2>) -> Self; now fn spacing(self, spacing: impl Into\<Vec2>) -> Self. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::SizedContainerAtom::iter_texts`  

Was fn iter_texts(&self) -> impl Iterator\<Item = &Arc\<Galley>> + use<'atom, '\_>; now fn iter_texts(&self) -> impl Iterator\<Item = &Arc\<Galley>>. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::SizedContainerAtom::iter_texts_mut`  

Was fn iter_texts_mut(&mut self) -> impl Iterator\<Item = &mut Arc\<Galley>> + use<'atom, '\_>; now fn iter_texts_mut(&mut self) -> impl Iterator\<Item = &mut Arc\<Galley>>. [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::Ui::collapsing`  

Was fn collapsing\<R>(&mut self, heading: impl Into\<WidgetText>, add_contents: impl FnOnce(&mut Ui) -> R) -> CollapsingResponse\<R>; now fn collapsing<'a, R>(&mut self, heading: impl IntoAtoms<'a>, add_contents: impl FnOnce(&mut Ui) -> R) ->... [crates.io](https://crates.io/crates/egui/0.38.0)
- **Signature changed** `egui::UiBuilder::sizing_pass`  

Was sizing_pass: bool; now sizing_pass: Option\<bool>. [crates.io](https://crates.io/crates/egui/0.38.0)

## Related packages

- [egui_extras](https://since.dev/packages/crates/egui%5Fextras.md)
- [egui_demo_lib](https://since.dev/packages/crates/egui%5Fdemo%5Flib.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
