From 3ceb246c2a8ead1bf00795a6b3c690c0bb4492c3 Mon Sep 17 00:00:00 2001 From: tye-exe Date: Wed, 16 Apr 2025 20:36:13 +0100 Subject: [PATCH 01/13] Changed `ui.disable()` to modify opacity It previously tinted elements, which could have lackluster effects. --- crates/egui/src/ui.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index 0e8509bb873..32d6a5f3749 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -521,8 +521,7 @@ impl Ui { pub fn disable(&mut self) { self.enabled = false; if self.is_visible() { - self.painter - .set_fade_to_color(Some(self.visuals().fade_out_to_color())); + self.painter.multiply_opacity(0.5); } } From 450956f546a3609beb4f537f3ededb76797b2320 Mon Sep 17 00:00:00 2001 From: tye-exe Date: Fri, 25 Apr 2025 13:38:40 +0100 Subject: [PATCH 02/13] Opacity is used to gray out elements. "fade_out_to_color" was replaced by "fade_out_opacity" for this purpose. --- crates/egui/src/style.rs | 9 ++++----- crates/egui/src/ui.rs | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/egui/src/style.rs b/crates/egui/src/style.rs index 38d403749f5..6025fbdb638 100644 --- a/crates/egui/src/style.rs +++ b/crates/egui/src/style.rs @@ -1052,18 +1052,17 @@ impl Visuals { self.window_stroke } - /// When fading out things, we fade the colors towards this. - // TODO(emilk): replace with an alpha + /// When fading out things, we multiply the opacity by this. #[inline(always)] - pub fn fade_out_to_color(&self) -> Color32 { - self.widgets.noninteractive.weak_bg_fill + pub fn fade_out_opacity(&self) -> f32 { + 0.5 } /// Returned a "grayed out" version of the given color. #[doc(alias = "grey_out")] #[inline(always)] pub fn gray_out(&self, color: Color32) -> Color32 { - crate::ecolor::tint_color_towards(color, self.fade_out_to_color()) + color.gamma_multiply(self.fade_out_opacity()) } } diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index 32d6a5f3749..64affddaa21 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -521,7 +521,8 @@ impl Ui { pub fn disable(&mut self) { self.enabled = false; if self.is_visible() { - self.painter.multiply_opacity(0.5); + self.painter + .multiply_opacity(self.visuals().fade_out_opacity()); } } From 83a5c0f2b26e137d640fd4db5d04dc1532209e51 Mon Sep 17 00:00:00 2001 From: tye-exe Date: Wed, 30 Apr 2025 17:49:44 +0100 Subject: [PATCH 03/13] Customise fade amount The fade amount for UI elements can be customised. --- crates/egui/src/style.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/egui/src/style.rs b/crates/egui/src/style.rs index 6025fbdb638..261bd9387ef 100644 --- a/crates/egui/src/style.rs +++ b/crates/egui/src/style.rs @@ -1018,6 +1018,9 @@ pub struct Visuals { /// How to display numeric color values. pub numeric_color_space: NumericColorSpace, + + /// Opacity is multiplied by this amount when fading out widgets. + pub fade_out_by: f32, } impl Visuals { @@ -1055,7 +1058,7 @@ impl Visuals { /// When fading out things, we multiply the opacity by this. #[inline(always)] pub fn fade_out_opacity(&self) -> f32 { - 0.5 + self.fade_out_by } /// Returned a "grayed out" version of the given color. @@ -1382,6 +1385,7 @@ impl Visuals { image_loading_spinners: true, numeric_color_space: NumericColorSpace::GammaByte, + fade_out_by: 0.5, } } @@ -2061,6 +2065,7 @@ impl Visuals { image_loading_spinners, numeric_color_space, + fade_out_by, } = self; ui.collapsing("Background Colors", |ui| { @@ -2189,6 +2194,8 @@ impl Visuals { ui.label("Color picker type"); numeric_color_space.toggle_button_ui(ui); }); + + ui.add(Slider::new(fade_out_by, 0.0..=1.0).text("Fades out widgets by")); }); ui.vertical_centered(|ui| reset_button(ui, self, "Reset visuals")); From 3a8bf682acee55edd7d5a486d1c2cf5fe9b9b2be Mon Sep 17 00:00:00 2001 From: tye-exe Date: Mon, 19 May 2025 09:47:56 +0100 Subject: [PATCH 04/13] Renamed `Visuals::fade_out_by` to `Visuals::disabled_alpha` --- crates/egui/src/style.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/egui/src/style.rs b/crates/egui/src/style.rs index 261bd9387ef..0e4d990af79 100644 --- a/crates/egui/src/style.rs +++ b/crates/egui/src/style.rs @@ -1020,7 +1020,7 @@ pub struct Visuals { pub numeric_color_space: NumericColorSpace, /// Opacity is multiplied by this amount when fading out widgets. - pub fade_out_by: f32, + pub disabled_alpha: f32, } impl Visuals { @@ -1058,7 +1058,7 @@ impl Visuals { /// When fading out things, we multiply the opacity by this. #[inline(always)] pub fn fade_out_opacity(&self) -> f32 { - self.fade_out_by + self.disabled_alpha } /// Returned a "grayed out" version of the given color. @@ -1385,7 +1385,7 @@ impl Visuals { image_loading_spinners: true, numeric_color_space: NumericColorSpace::GammaByte, - fade_out_by: 0.5, + disabled_alpha: 0.5, } } @@ -2065,7 +2065,7 @@ impl Visuals { image_loading_spinners, numeric_color_space, - fade_out_by, + disabled_alpha: fade_out_by, } = self; ui.collapsing("Background Colors", |ui| { @@ -2195,7 +2195,7 @@ impl Visuals { numeric_color_space.toggle_button_ui(ui); }); - ui.add(Slider::new(fade_out_by, 0.0..=1.0).text("Fades out widgets by")); + ui.add(Slider::new(fade_out_by, 0.0..=1.0).text("Disabled element alpha")); }); ui.vertical_centered(|ui| reset_button(ui, self, "Reset visuals")); From 6cc0d10cf75e683cc6e19fef9a50dff0d771302b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 19 May 2025 11:10:32 +0200 Subject: [PATCH 05/13] Deprecate Painter::set_fade_to_color --- crates/egui/src/painter.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/egui/src/painter.rs b/crates/egui/src/painter.rs index 22a0a0a9d10..3b730c87d24 100644 --- a/crates/egui/src/painter.rs +++ b/crates/egui/src/painter.rs @@ -83,6 +83,7 @@ impl Painter { } /// If set, colors will be modified to look like this + #[deprecated = "Use `multiply_opacity` instead"] pub fn set_fade_to_color(&mut self, fade_to_color: Option) { self.fade_to_color = fade_to_color; } From f58199e2ce9444795e7cd1f602aba6bb471005f6 Mon Sep 17 00:00:00 2001 From: tye-exe Date: Mon, 19 May 2025 10:30:37 +0100 Subject: [PATCH 06/13] Removed remaining references to `Visuals::fade_out_by` --- crates/egui/src/style.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/egui/src/style.rs b/crates/egui/src/style.rs index 0e4d990af79..21dfb85a619 100644 --- a/crates/egui/src/style.rs +++ b/crates/egui/src/style.rs @@ -1057,7 +1057,7 @@ impl Visuals { /// When fading out things, we multiply the opacity by this. #[inline(always)] - pub fn fade_out_opacity(&self) -> f32 { + pub fn disabled_alpha(&self) -> f32 { self.disabled_alpha } @@ -1065,7 +1065,7 @@ impl Visuals { #[doc(alias = "grey_out")] #[inline(always)] pub fn gray_out(&self, color: Color32) -> Color32 { - color.gamma_multiply(self.fade_out_opacity()) + color.gamma_multiply(self.disabled_alpha()) } } @@ -2065,7 +2065,7 @@ impl Visuals { image_loading_spinners, numeric_color_space, - disabled_alpha: fade_out_by, + disabled_alpha, } = self; ui.collapsing("Background Colors", |ui| { @@ -2195,7 +2195,7 @@ impl Visuals { numeric_color_space.toggle_button_ui(ui); }); - ui.add(Slider::new(fade_out_by, 0.0..=1.0).text("Disabled element alpha")); + ui.add(Slider::new(disabled_alpha, 0.0..=1.0).text("Disabled element alpha")); }); ui.vertical_centered(|ui| reset_button(ui, self, "Reset visuals")); From 5df8faf5cbdc215238be606f8a7d65bdb53ae52b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 21 May 2025 13:34:25 +0200 Subject: [PATCH 07/13] Fix compilation --- crates/egui/src/ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index 64affddaa21..c088f807016 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -522,7 +522,7 @@ impl Ui { self.enabled = false; if self.is_visible() { self.painter - .multiply_opacity(self.visuals().fade_out_opacity()); + .multiply_opacity(self.visuals().disabled_alpha()); } } From ef20e2c071cf0fdd4119a215faccf74fbabcfae4 Mon Sep 17 00:00:00 2001 From: tye-exe Date: Sun, 25 May 2025 09:43:35 +0100 Subject: [PATCH 08/13] Split "disabling" and "graying out". Split these two behaviours into different functions, as either behaviour is sometimes desirable. --- crates/egui/src/style.rs | 17 +++++++++++++---- crates/egui/src/ui.rs | 4 ++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/crates/egui/src/style.rs b/crates/egui/src/style.rs index 21dfb85a619..43254d531ee 100644 --- a/crates/egui/src/style.rs +++ b/crates/egui/src/style.rs @@ -1019,7 +1019,7 @@ pub struct Visuals { /// How to display numeric color values. pub numeric_color_space: NumericColorSpace, - /// Opacity is multiplied by this amount when fading out widgets. + /// How much to modify the alpha of a disabled widget. pub disabled_alpha: f32, } @@ -1055,17 +1055,26 @@ impl Visuals { self.window_stroke } - /// When fading out things, we multiply the opacity by this. + /// Disabled widgets have their alpha modified by this. #[inline(always)] pub fn disabled_alpha(&self) -> f32 { self.disabled_alpha } - /// Returned a "grayed out" version of the given color. + /// Returns a "disabled" version of the given color. + /// + /// This function modifies the opcacity of the given color. + /// If this is undesirable use [`gray_out`](Self::gray_out). + #[inline(always)] + pub fn disable(&self, color: Color32) -> Color32 { + color.gamma_multiply(self.disabled_alpha()) + } + + /// Returns a "grayed out" version of the given color. #[doc(alias = "grey_out")] #[inline(always)] pub fn gray_out(&self, color: Color32) -> Color32 { - color.gamma_multiply(self.disabled_alpha()) + crate::ecolor::tint_color_towards(color, self.widgets.noninteractive.weak_bg_fill) } } diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index c088f807016..06e7989754b 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -2963,8 +2963,8 @@ impl Ui { if is_anything_being_dragged && !can_accept_what_is_being_dragged { // When dragging something else, show that it can't be dropped here: - fill = self.visuals().gray_out(fill); - stroke.color = self.visuals().gray_out(stroke.color); + fill = self.visuals().disable(fill); + stroke.color = self.visuals().disable(stroke.color); } frame.frame.fill = fill; From 189ff422da1167f0f74069f08f3b226056ce5bda Mon Sep 17 00:00:00 2001 From: tye-exe Date: Tue, 3 Jun 2025 16:10:47 +0100 Subject: [PATCH 09/13] Updated test snapshots. --- crates/egui_demo_app/Cargo.toml | 1 + crates/egui_demo_app/tests/snapshots/easymarkeditor.png | 4 ++-- crates/egui_demo_lib/tests/snapshots/demos/Clipboard Test.png | 3 +++ crates/egui_demo_lib/tests/snapshots/demos/Cursor Test.png | 3 +++ crates/egui_demo_lib/tests/snapshots/demos/Font Book.png | 4 ++-- crates/egui_demo_lib/tests/snapshots/demos/Grid Test.png | 3 +++ crates/egui_demo_lib/tests/snapshots/demos/ID Test.png | 3 +++ .../tests/snapshots/demos/Input Event History.png | 3 +++ crates/egui_demo_lib/tests/snapshots/demos/Input Test.png | 3 +++ crates/egui_demo_lib/tests/snapshots/demos/Layout Test.png | 3 +++ .../tests/snapshots/demos/Manual Layout Test.png | 3 +++ crates/egui_demo_lib/tests/snapshots/demos/SVG Test.png | 3 +++ crates/egui_demo_lib/tests/snapshots/demos/Scene.png | 4 ++-- .../egui_demo_lib/tests/snapshots/demos/Tessellation Test.png | 3 +++ .../tests/snapshots/demos/Window Resize Test.png | 3 +++ .../egui_kittest/tests/snapshots/should_wait_for_images.png | 3 +++ tests/egui_tests/tests/snapshots/layout/button.png | 3 +++ tests/egui_tests/tests/snapshots/layout/button_image.png | 3 +++ .../tests/snapshots/layout/button_image_shortcut.png | 3 +++ tests/egui_tests/tests/snapshots/layout/checkbox.png | 3 +++ tests/egui_tests/tests/snapshots/layout/checkbox_checked.png | 3 +++ tests/egui_tests/tests/snapshots/layout/drag_value.png | 3 +++ tests/egui_tests/tests/snapshots/layout/radio.png | 3 +++ tests/egui_tests/tests/snapshots/layout/radio_checked.png | 3 +++ tests/egui_tests/tests/snapshots/layout/selectable_value.png | 3 +++ .../tests/snapshots/layout/selectable_value_selected.png | 3 +++ tests/egui_tests/tests/snapshots/layout/slider.png | 3 +++ tests/egui_tests/tests/snapshots/layout/text_edit.png | 3 +++ tests/egui_tests/tests/snapshots/visuals/button.png | 3 +++ tests/egui_tests/tests/snapshots/visuals/button_image.png | 3 +++ .../tests/snapshots/visuals/button_image_shortcut.png | 3 +++ .../snapshots/visuals/button_image_shortcut_selected.png | 3 +++ tests/egui_tests/tests/snapshots/visuals/checkbox.png | 3 +++ tests/egui_tests/tests/snapshots/visuals/checkbox_checked.png | 3 +++ tests/egui_tests/tests/snapshots/visuals/drag_value.png | 3 +++ tests/egui_tests/tests/snapshots/visuals/radio.png | 3 +++ tests/egui_tests/tests/snapshots/visuals/radio_checked.png | 3 +++ tests/egui_tests/tests/snapshots/visuals/selectable_value.png | 3 +++ .../tests/snapshots/visuals/selectable_value_selected.png | 3 +++ tests/egui_tests/tests/snapshots/visuals/slider.png | 3 +++ tests/egui_tests/tests/snapshots/visuals/text_edit.png | 3 +++ 41 files changed, 118 insertions(+), 6 deletions(-) create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/Clipboard Test.png create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/Cursor Test.png create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/Grid Test.png create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/ID Test.png create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/Input Event History.png create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/Input Test.png create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/Layout Test.png create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/Manual Layout Test.png create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/SVG Test.png create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/Tessellation Test.png create mode 100644 crates/egui_demo_lib/tests/snapshots/demos/Window Resize Test.png create mode 100644 crates/egui_kittest/tests/snapshots/should_wait_for_images.png create mode 100644 tests/egui_tests/tests/snapshots/layout/button.png create mode 100644 tests/egui_tests/tests/snapshots/layout/button_image.png create mode 100644 tests/egui_tests/tests/snapshots/layout/button_image_shortcut.png create mode 100644 tests/egui_tests/tests/snapshots/layout/checkbox.png create mode 100644 tests/egui_tests/tests/snapshots/layout/checkbox_checked.png create mode 100644 tests/egui_tests/tests/snapshots/layout/drag_value.png create mode 100644 tests/egui_tests/tests/snapshots/layout/radio.png create mode 100644 tests/egui_tests/tests/snapshots/layout/radio_checked.png create mode 100644 tests/egui_tests/tests/snapshots/layout/selectable_value.png create mode 100644 tests/egui_tests/tests/snapshots/layout/selectable_value_selected.png create mode 100644 tests/egui_tests/tests/snapshots/layout/slider.png create mode 100644 tests/egui_tests/tests/snapshots/layout/text_edit.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/button.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/button_image.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/button_image_shortcut.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/button_image_shortcut_selected.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/checkbox.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/checkbox_checked.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/drag_value.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/radio.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/radio_checked.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/selectable_value.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/selectable_value_selected.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/slider.png create mode 100644 tests/egui_tests/tests/snapshots/visuals/text_edit.png diff --git a/crates/egui_demo_app/Cargo.toml b/crates/egui_demo_app/Cargo.toml index b3eeb565d64..9e79eb435f8 100644 --- a/crates/egui_demo_app/Cargo.toml +++ b/crates/egui_demo_app/Cargo.toml @@ -52,6 +52,7 @@ chrono = { version = "0.4", default-features = false, features = [ ] } eframe = { workspace = true, default-features = false, features = [ "web_screen_reader", + "wayland", ] } egui = { workspace = true, features = ["callstack", "default", "log"] } egui_demo_lib = { workspace = true, features = ["default", "chrono"] } diff --git a/crates/egui_demo_app/tests/snapshots/easymarkeditor.png b/crates/egui_demo_app/tests/snapshots/easymarkeditor.png index 7666b658ea2..ab3008f13bc 100644 --- a/crates/egui_demo_app/tests/snapshots/easymarkeditor.png +++ b/crates/egui_demo_app/tests/snapshots/easymarkeditor.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3e6a383dca7e91d07df4bf501e2de13d046f04546a08d026efe3f82fc96b6e29 -size 178887 +oid sha256:3f5ccd92f59d55919cbd837de49f2458feb11e74ffd65f82b74ae149e87b9c2e +size 178904 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Clipboard Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Clipboard Test.png new file mode 100644 index 00000000000..ec95100082a --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/Clipboard Test.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4f807098e0bc56eaacabb76d646a76036cc66a7a6e54b1c934fa9fecb5b0170 +size 26470 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Cursor Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Cursor Test.png new file mode 100644 index 00000000000..77849361286 --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/Cursor Test.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:629006243b61f25e48a454cc617b8e49e38985eebbfe136f3bcb0b361d204671 +size 61431 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Font Book.png b/crates/egui_demo_lib/tests/snapshots/demos/Font Book.png index 434f2e1e41e..2cbed60d2b3 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Font Book.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Font Book.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:af99bd49ceee6bbd96cc813cd96ac01f5c135ed7d94b8ff4010fa45feac5359a -size 127703 +oid sha256:1523b8ad99267eceb65a9009ca38d99937e61c45a1115d050644f037cadfc16c +size 127794 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Grid Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Grid Test.png new file mode 100644 index 00000000000..526dc7ace0d --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/Grid Test.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c69c211061663cd17756eb0ad5a7720ed883047dbcedb39c493c544cfc644ed3 +size 99087 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/ID Test.png b/crates/egui_demo_lib/tests/snapshots/demos/ID Test.png new file mode 100644 index 00000000000..dd67f7ad32e --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/ID Test.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d31533f812b2b72410b5caafea9b647d3f4cc9da3db9fcf37c332cb57d58742 +size 111670 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Input Event History.png b/crates/egui_demo_lib/tests/snapshots/demos/Input Event History.png new file mode 100644 index 00000000000..440fbf0b032 --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/Input Event History.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:502790125ddd0204ea8a468c80c6f3e824adcd98f5a3f626e97f3512d31e1074 +size 24516 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Input Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Input Test.png new file mode 100644 index 00000000000..91548c4274d --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/Input Test.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fc9e2ec3253a30ac9649995b019b6b23d745dba07a327886f574a15c0e99e84 +size 50082 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Layout Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Layout Test.png new file mode 100644 index 00000000000..e2899160b5d --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/Layout Test.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18fe761145335a60b1eeb1f7f2072224df86f0e2006caa09d1f3cc4bd263d90c +size 46560 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Manual Layout Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Manual Layout Test.png new file mode 100644 index 00000000000..857cd2d6c02 --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/Manual Layout Test.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3110fab8444cb41dffe8b27277fa5dafd0d335aaf13dca511bcccc8b53fb25c8 +size 24046 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/SVG Test.png b/crates/egui_demo_lib/tests/snapshots/demos/SVG Test.png new file mode 100644 index 00000000000..c02536cc5ff --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/SVG Test.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1160361c41ffa9cde6d83cb32eeb9f9b75b275e98b97b625eababee460b69ba9 +size 24072 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Scene.png b/crates/egui_demo_lib/tests/snapshots/demos/Scene.png index a2c2e7bac93..212a7ccd4d0 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Scene.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Scene.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b4bf35ad4ce01122de5bc0830018044fd70f116938293fbeb72a2278de0bbb22 -size 35068 +oid sha256:0fcfee082fe1dcbb7515ca6e3d5457e71fecf91a3efc4f76906a32fdb588adb4 +size 35096 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Tessellation Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Tessellation Test.png new file mode 100644 index 00000000000..723bb5995e0 --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/Tessellation Test.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f90d56d40004f61628e3f66cfac817c426cd18eb4b9c69ea1b3a6fe5e75e3f05 +size 70354 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Window Resize Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Window Resize Test.png new file mode 100644 index 00000000000..bfa5643fd70 --- /dev/null +++ b/crates/egui_demo_lib/tests/snapshots/demos/Window Resize Test.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c0ce7090ba12d849f9e3c77010503b394f3e1fce65c382738f55f7181fd7450 +size 42527 diff --git a/crates/egui_kittest/tests/snapshots/should_wait_for_images.png b/crates/egui_kittest/tests/snapshots/should_wait_for_images.png new file mode 100644 index 00000000000..c6ee32d19e4 --- /dev/null +++ b/crates/egui_kittest/tests/snapshots/should_wait_for_images.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6298e67d099002808d51e7494e4174adee66d7ef2880728126c1d761d1432372 +size 2145 diff --git a/tests/egui_tests/tests/snapshots/layout/button.png b/tests/egui_tests/tests/snapshots/layout/button.png new file mode 100644 index 00000000000..7232c72c834 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/button.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ccd7bdd86e587bcf0577c92e10ed7c3c35195e37df109a84554ceb30a434768d +size 315482 diff --git a/tests/egui_tests/tests/snapshots/layout/button_image.png b/tests/egui_tests/tests/snapshots/layout/button_image.png new file mode 100644 index 00000000000..737f0670cd7 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/button_image.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:975c279d6da2a2cb000df72bf5d9f3bdd200bb20adc00e29e8fd9ed4d2c6f6b1 +size 340923 diff --git a/tests/egui_tests/tests/snapshots/layout/button_image_shortcut.png b/tests/egui_tests/tests/snapshots/layout/button_image_shortcut.png new file mode 100644 index 00000000000..7dbda11d974 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/button_image_shortcut.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad14068e60fa678ee749925dd3713ee2b12a83ec1bca9c413bdeb9bc27d8ac20 +size 407795 diff --git a/tests/egui_tests/tests/snapshots/layout/checkbox.png b/tests/egui_tests/tests/snapshots/layout/checkbox.png new file mode 100644 index 00000000000..b8c014727d5 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/checkbox.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:996e02c1c10a0c76fa295160d117aceb764ef506608b151bafbdf263106dbe57 +size 385129 diff --git a/tests/egui_tests/tests/snapshots/layout/checkbox_checked.png b/tests/egui_tests/tests/snapshots/layout/checkbox_checked.png new file mode 100644 index 00000000000..66ae8115fc6 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/checkbox_checked.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aaf9b032037d0708894e568cc8e256b32be9cfb586eaffdc6167143b85562b37 +size 415016 diff --git a/tests/egui_tests/tests/snapshots/layout/drag_value.png b/tests/egui_tests/tests/snapshots/layout/drag_value.png new file mode 100644 index 00000000000..a9a64c55860 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/drag_value.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:043be3ece0697ea7114b7bd743e5c958610ae38ac359b6f8120886edff8541d8 +size 239522 diff --git a/tests/egui_tests/tests/snapshots/layout/radio.png b/tests/egui_tests/tests/snapshots/layout/radio.png new file mode 100644 index 00000000000..1e1a1faf37a --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/radio.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f7fbeeba8ae9e34c5400727690ac7941e2711f72f2dc23e3342cb06904e4a35 +size 335775 diff --git a/tests/egui_tests/tests/snapshots/layout/radio_checked.png b/tests/egui_tests/tests/snapshots/layout/radio_checked.png new file mode 100644 index 00000000000..323426ee9de --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/radio_checked.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96ae7be40161b0b42959b44c8f72b62fd2cd4b3b463fc7d5bcd02ead445edca1 +size 355550 diff --git a/tests/egui_tests/tests/snapshots/layout/selectable_value.png b/tests/egui_tests/tests/snapshots/layout/selectable_value.png new file mode 100644 index 00000000000..42794b19e09 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/selectable_value.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4991fdf58542ca14162cbd7f59b6a30d6c3d752a1215cc1890359bc3a1eb23c9 +size 388912 diff --git a/tests/egui_tests/tests/snapshots/layout/selectable_value_selected.png b/tests/egui_tests/tests/snapshots/layout/selectable_value_selected.png new file mode 100644 index 00000000000..554bbbf4134 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/selectable_value_selected.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ac8cbcdeed098d52009be77c8815931553d979f5aaf0baf0a9296daf6373605 +size 402699 diff --git a/tests/egui_tests/tests/snapshots/layout/slider.png b/tests/egui_tests/tests/snapshots/layout/slider.png new file mode 100644 index 00000000000..9017347f217 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/slider.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:605091767a73a934981d10d0ed59ff561772ed61e7691303b75b35ae01163ecc +size 336722 diff --git a/tests/egui_tests/tests/snapshots/layout/text_edit.png b/tests/egui_tests/tests/snapshots/layout/text_edit.png new file mode 100644 index 00000000000..fae07202c6f --- /dev/null +++ b/tests/egui_tests/tests/snapshots/layout/text_edit.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:465e34d94bf734a2a7a1e8e4a71ce64c908c737a7c4fa2a6f812351f2aaa6808 +size 233018 diff --git a/tests/egui_tests/tests/snapshots/visuals/button.png b/tests/egui_tests/tests/snapshots/visuals/button.png new file mode 100644 index 00000000000..8c8e9630c73 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/button.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99f64e581b97df6694cb7c85ee7728a955e3c1a851ab660e8b6091eee1885bbe +size 9719 diff --git a/tests/egui_tests/tests/snapshots/visuals/button_image.png b/tests/egui_tests/tests/snapshots/visuals/button_image.png new file mode 100644 index 00000000000..c71c2aeb09d --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/button_image.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d39ec25b91f5f5d68305d2cb7cc0285d715fe30ccbd66369efbe7327d1899b52 +size 10753 diff --git a/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut.png b/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut.png new file mode 100644 index 00000000000..42f8ff02a55 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46d86987ba895ead9b28efcc37e1b4374f34eedebac83d1db9eaa8e5a3202ee3 +size 13203 diff --git a/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut_selected.png b/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut_selected.png new file mode 100644 index 00000000000..3ff34c6be99 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut_selected.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09c5904877c8895d3ad41b7082019ef87db40c6a91ad47401bb9b8ac79a62bdc +size 12914 diff --git a/tests/egui_tests/tests/snapshots/visuals/checkbox.png b/tests/egui_tests/tests/snapshots/visuals/checkbox.png new file mode 100644 index 00000000000..a0e6e18d75c --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/checkbox.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1cd5e9ad416c3a0b6824debc343f196e6db90509fd201c60c7c1f9b022f37c1d +size 12322 diff --git a/tests/egui_tests/tests/snapshots/visuals/checkbox_checked.png b/tests/egui_tests/tests/snapshots/visuals/checkbox_checked.png new file mode 100644 index 00000000000..40852f3c239 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/checkbox_checked.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e03cf99a3d28f73d4a72c0e616dc54198663b94bf5cffda694cf4eb4dee01be8 +size 13445 diff --git a/tests/egui_tests/tests/snapshots/visuals/drag_value.png b/tests/egui_tests/tests/snapshots/visuals/drag_value.png new file mode 100644 index 00000000000..dbe3c13b644 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/drag_value.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e86a37c7b259a6bad61897545d927d75e8307916dc78d256e4d33c410fcd6876 +size 7306 diff --git a/tests/egui_tests/tests/snapshots/visuals/radio.png b/tests/egui_tests/tests/snapshots/visuals/radio.png new file mode 100644 index 00000000000..9c14f303284 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/radio.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:583fa78f79b39522a44c871642114ead9ed1d177bb8a3807d2c9e2cd89bf0b44 +size 11076 diff --git a/tests/egui_tests/tests/snapshots/visuals/radio_checked.png b/tests/egui_tests/tests/snapshots/visuals/radio_checked.png new file mode 100644 index 00000000000..a42ad5012e7 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/radio_checked.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1a172cfadc91467529e5546e686673be73ba0071a55d55abc7a41fb1d07214d +size 11700 diff --git a/tests/egui_tests/tests/snapshots/visuals/selectable_value.png b/tests/egui_tests/tests/snapshots/visuals/selectable_value.png new file mode 100644 index 00000000000..c2cbd733488 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/selectable_value.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eed80e11dd3ba478217cf004654934214b522ea666074e023dda9a323473615a +size 12452 diff --git a/tests/egui_tests/tests/snapshots/visuals/selectable_value_selected.png b/tests/egui_tests/tests/snapshots/visuals/selectable_value_selected.png new file mode 100644 index 00000000000..81f99551541 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/selectable_value_selected.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ef91dfedc74cae59099bce32b2e42cb04649e84442e8010282a9c1ff2a7f2c8 +size 12469 diff --git a/tests/egui_tests/tests/snapshots/visuals/slider.png b/tests/egui_tests/tests/snapshots/visuals/slider.png new file mode 100644 index 00000000000..6c83485590c --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/slider.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1892358a4552af3f529141d314cd18e4cf55a629d870798278a5470e3e0a8a94 +size 11030 diff --git a/tests/egui_tests/tests/snapshots/visuals/text_edit.png b/tests/egui_tests/tests/snapshots/visuals/text_edit.png new file mode 100644 index 00000000000..5f2a64b8d46 --- /dev/null +++ b/tests/egui_tests/tests/snapshots/visuals/text_edit.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7300a0b88d4fdb6c1e543bfaf50e8964b2f84aaaf8197267b671d0cf3c8da30a +size 7033 From 6e72db0fb6ec7c9f8d18ff68a36e55157579d0a4 Mon Sep 17 00:00:00 2001 From: tye-exe Date: Tue, 17 Jun 2025 13:33:54 +0100 Subject: [PATCH 10/13] Added `fade_out_to_color` as deprecated. --- crates/egui/src/style.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/egui/src/style.rs b/crates/egui/src/style.rs index d04ac512a66..2d0e28cb6a5 100644 --- a/crates/egui/src/style.rs +++ b/crates/egui/src/style.rs @@ -1056,6 +1056,13 @@ impl Visuals { self.window_stroke } + /// When fading out things, we fade the colors towards this. + #[inline(always)] + #[deprecated = "Use disabled_alpha(). Fading is now handled by modifying the alpha channel."] + pub fn fade_out_to_color(&self) -> Color32 { + self.widgets.noninteractive.weak_bg_fill + } + /// Disabled widgets have their alpha modified by this. #[inline(always)] pub fn disabled_alpha(&self) -> f32 { From a01139fbb801694f5145df2388d347ed57bdb7f8 Mon Sep 17 00:00:00 2001 From: tye-exe Date: Wed, 18 Jun 2025 12:52:10 +0100 Subject: [PATCH 11/13] Updated test image --- crates/egui_demo_app/tests/snapshots/easymarkeditor.png | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui_demo_app/tests/snapshots/easymarkeditor.png b/crates/egui_demo_app/tests/snapshots/easymarkeditor.png index 8367d87fa08..34cea1ecc5f 100644 --- a/crates/egui_demo_app/tests/snapshots/easymarkeditor.png +++ b/crates/egui_demo_app/tests/snapshots/easymarkeditor.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a8440e6956effab863b64c745fb3b0616a320250f6373fd3a3d66380cfa37c14 -size 262 +oid sha256:2849afd01ec3dae797b15893e28908f6b037588b3712fb6dec556edb7b230b5d +size 179082 From 6ec4c9df71701633b63c1bab3c6ace99e648f5b9 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 1 Jul 2025 13:52:15 +0200 Subject: [PATCH 12/13] Update snapshot images --- crates/egui_demo_lib/tests/snapshots/demos/Frame.png | 4 ++-- crates/egui_demo_lib/tests/snapshots/demos/Grid Test.png | 4 ++-- crates/egui_demo_lib/tests/snapshots/demos/Layout Test.png | 4 ++-- .../tests/snapshots/demos/Manual Layout Test.png | 4 ++-- crates/egui_demo_lib/tests/snapshots/demos/SVG Test.png | 4 ++-- crates/egui_demo_lib/tests/snapshots/demos/Scene.png | 4 ++-- crates/egui_demo_lib/tests/snapshots/demos/Sliders.png | 4 ++-- .../egui_demo_lib/tests/snapshots/demos/Tessellation Test.png | 4 ++-- crates/egui_demo_lib/tests/snapshots/demos/Undo Redo.png | 4 ++-- crates/egui_demo_lib/tests/snapshots/demos/Window Options.png | 4 ++-- .../tests/snapshots/tessellation_test/Normal.png | 4 ++-- tests/egui_tests/tests/snapshots/layout/button_image.png | 4 ++-- tests/egui_tests/tests/snapshots/layout/checkbox_checked.png | 4 ++-- tests/egui_tests/tests/snapshots/visuals/button.png | 4 ++-- tests/egui_tests/tests/snapshots/visuals/button_image.png | 4 ++-- .../tests/snapshots/visuals/button_image_shortcut.png | 4 ++-- .../snapshots/visuals/button_image_shortcut_selected.png | 4 ++-- tests/egui_tests/tests/snapshots/visuals/checkbox_checked.png | 4 ++-- tests/egui_tests/tests/snapshots/visuals/drag_value.png | 4 ++-- tests/egui_tests/tests/snapshots/visuals/radio_checked.png | 4 ++-- .../tests/snapshots/visuals/selectable_value_selected.png | 4 ++-- tests/egui_tests/tests/snapshots/visuals/slider.png | 4 ++-- tests/egui_tests/tests/snapshots/visuals/text_edit.png | 4 ++-- 23 files changed, 46 insertions(+), 46 deletions(-) diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Frame.png b/crates/egui_demo_lib/tests/snapshots/demos/Frame.png index 64c6b76ecfd..41d3995db53 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Frame.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Frame.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a0b999914adab3d44c614bdf3b28abd268a4ff6162c5680b43035b3f71cb69bb -size 23999 +oid sha256:6d5f3129e34e22b15245212904e0a3537a0c7e70f1d35fd3e9c784af707038b5 +size 24018 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Grid Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Grid Test.png index 46407b8bb01..7dbb397fa4e 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Grid Test.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Grid Test.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:72f442ded64947394ef90b16dc0a044d9bd8669a848b7f776d2b1d0788b5e244 -size 249 +oid sha256:5d05c74583024825d82f1fe8dbeb2a793e366016e87a639f51d46945831de82a +size 99106 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Layout Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Layout Test.png index b0178509f4f..7800f5f5f05 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Layout Test.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Layout Test.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4e71161bee8e69ad4d0ea9ced961c38d37cf611e1120649060570bb9dd283bbc -size 260 +oid sha256:c47a19d1f56fcc4c30c7e88aada2a50e038d66c1b591b4646b86c11bffb3c66f +size 46563 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Manual Layout Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Manual Layout Test.png index 857cd2d6c02..0e2bdbf80b7 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Manual Layout Test.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Manual Layout Test.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3110fab8444cb41dffe8b27277fa5dafd0d335aaf13dca511bcccc8b53fb25c8 -size 24046 +oid sha256:17f7065c47712f140e4a9fd9eed61a7118fe12cd79cf0745642a02921eaa596b +size 24065 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/SVG Test.png b/crates/egui_demo_lib/tests/snapshots/demos/SVG Test.png index 9dbe695a15b..9e14e624d04 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/SVG Test.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/SVG Test.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:af2a0e33647cf08c2927e18f8ea6a1c8388c19e6cac81e6f3eb1c1d5514408be -size 260 +oid sha256:22515363a812443b65cbe9060e2352e18eed04dc382fc993c33bd8a4b5ddff91 +size 24817 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Scene.png b/crates/egui_demo_lib/tests/snapshots/demos/Scene.png index 34a478f3582..ea8f9c85782 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Scene.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Scene.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5b205ddb14069ac41a912954518e2763bc16285b4c86048dc3aef98eed1c76a8 -size 260 +oid sha256:cdff6256488f3a40c65a3d73c0635377bf661c57927bce4c853b2a5f3b33274e +size 35121 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Sliders.png b/crates/egui_demo_lib/tests/snapshots/demos/Sliders.png index 92e94b78f93..c26e7e4f61f 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Sliders.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Sliders.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f0e3eeca8abb4fba632cef4621d478fb66af1a0f13e099dda9a79420cc2b6301 -size 115320 +oid sha256:7e80bf8c79e6e431806c85385a0bd9262796efc0a1e74d431a1b896dde0b8651 +size 115338 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Tessellation Test.png b/crates/egui_demo_lib/tests/snapshots/demos/Tessellation Test.png index 723bb5995e0..6f3ca31d568 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Tessellation Test.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Tessellation Test.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f90d56d40004f61628e3f66cfac817c426cd18eb4b9c69ea1b3a6fe5e75e3f05 -size 70354 +oid sha256:16dc96246f011c6e9304409af7b4084f28e20cd813e44abca73834386e98b9b1 +size 70373 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Undo Redo.png b/crates/egui_demo_lib/tests/snapshots/demos/Undo Redo.png index 53d6c8a3db7..b3dbb2ea19e 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Undo Redo.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Undo Redo.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c4d6a15094eee5d96a8af5c44ea9d0c962d650ee9b867344c86d1229e526dcb5 -size 12822 +oid sha256:26e4828e42f54da24d032f384f8829e42bcebaee072923f277db582f84302911 +size 12847 diff --git a/crates/egui_demo_lib/tests/snapshots/demos/Window Options.png b/crates/egui_demo_lib/tests/snapshots/demos/Window Options.png index a45e2be688a..217419e006c 100644 --- a/crates/egui_demo_lib/tests/snapshots/demos/Window Options.png +++ b/crates/egui_demo_lib/tests/snapshots/demos/Window Options.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:02abc0cbab97e572218f422f4b167957869d4e2b4b388355444c20148d998015 -size 35200 +oid sha256:4a4520aa68d6752992fd2f87090a317e6e5e24b5cdb5ee2e82daf07f9471ca80 +size 35251 diff --git a/crates/egui_demo_lib/tests/snapshots/tessellation_test/Normal.png b/crates/egui_demo_lib/tests/snapshots/tessellation_test/Normal.png index 677783cc569..9d19dbc9ba3 100644 --- a/crates/egui_demo_lib/tests/snapshots/tessellation_test/Normal.png +++ b/crates/egui_demo_lib/tests/snapshots/tessellation_test/Normal.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b567d4038fd73986c80d2bd12197a6df037fde043545993fa9fe4160d0af446c -size 54829 +oid sha256:c33617dfde24071fa65aff2543f22883f5526152fb344997b1877aeb38df72fe +size 54848 diff --git a/tests/egui_tests/tests/snapshots/layout/button_image.png b/tests/egui_tests/tests/snapshots/layout/button_image.png index 64ff5525e0f..fb6ff3b34ff 100644 --- a/tests/egui_tests/tests/snapshots/layout/button_image.png +++ b/tests/egui_tests/tests/snapshots/layout/button_image.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8cfab74bc5a6623f6a6108dd72072fbab68297668c341d95747d9c0eb98edf4c -size 262 +oid sha256:01309596ac9eb90b2dfc00074cfd39d26e3f6d1f83299f227cb4bbea9ccd3b66 +size 339917 diff --git a/tests/egui_tests/tests/snapshots/layout/checkbox_checked.png b/tests/egui_tests/tests/snapshots/layout/checkbox_checked.png index e6ee7ee4547..9c6fb4c076b 100644 --- a/tests/egui_tests/tests/snapshots/layout/checkbox_checked.png +++ b/tests/egui_tests/tests/snapshots/layout/checkbox_checked.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c59df7250a1b9734c6171250131318cafcba309f842a0ed41d99c17b32d8298a -size 262 +oid sha256:1d842f88b6a94f19aa59bdae9dbbf42f4662aaead1b8f73ac0194f183112e1b8 +size 415066 diff --git a/tests/egui_tests/tests/snapshots/visuals/button.png b/tests/egui_tests/tests/snapshots/visuals/button.png index 8c8e9630c73..364f7771f0a 100644 --- a/tests/egui_tests/tests/snapshots/visuals/button.png +++ b/tests/egui_tests/tests/snapshots/visuals/button.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:99f64e581b97df6694cb7c85ee7728a955e3c1a851ab660e8b6091eee1885bbe -size 9719 +oid sha256:a573976aacbb629c88c285089fca28ba7998a0c28ecee9f783920d67929a1e2d +size 9735 diff --git a/tests/egui_tests/tests/snapshots/visuals/button_image.png b/tests/egui_tests/tests/snapshots/visuals/button_image.png index c71c2aeb09d..c38571a6e14 100644 --- a/tests/egui_tests/tests/snapshots/visuals/button_image.png +++ b/tests/egui_tests/tests/snapshots/visuals/button_image.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d39ec25b91f5f5d68305d2cb7cc0285d715fe30ccbd66369efbe7327d1899b52 -size 10753 +oid sha256:9fbb9aca2006aeca555c138f1ebdb89409026f1bed48da74cd0fa03dcd8facbe +size 10746 diff --git a/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut.png b/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut.png index 42f8ff02a55..7cb8c01f70c 100644 --- a/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut.png +++ b/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:46d86987ba895ead9b28efcc37e1b4374f34eedebac83d1db9eaa8e5a3202ee3 -size 13203 +oid sha256:f74f5ff20b842c1990c50d8a66ab5b34e248786f01b1592485620d31426ce5ae +size 13302 diff --git a/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut_selected.png b/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut_selected.png index 28f70f29322..9115d69192b 100644 --- a/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut_selected.png +++ b/tests/egui_tests/tests/snapshots/visuals/button_image_shortcut_selected.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e96c3e61513b05d252e0325dd65fd137c11c7b2151d680402b4f828af74c7a48 -size 260 +oid sha256:df84f3fce07a45a208f6169f0df701b7971fc7d467151870d56d90ce49a2c819 +size 13522 diff --git a/tests/egui_tests/tests/snapshots/visuals/checkbox_checked.png b/tests/egui_tests/tests/snapshots/visuals/checkbox_checked.png index 40852f3c239..113839a2f32 100644 --- a/tests/egui_tests/tests/snapshots/visuals/checkbox_checked.png +++ b/tests/egui_tests/tests/snapshots/visuals/checkbox_checked.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e03cf99a3d28f73d4a72c0e616dc54198663b94bf5cffda694cf4eb4dee01be8 -size 13445 +oid sha256:ec75c3fccec8d6a72b808aba593f8c289618b6f95db08eb3cdb20a255b9d986e +size 13450 diff --git a/tests/egui_tests/tests/snapshots/visuals/drag_value.png b/tests/egui_tests/tests/snapshots/visuals/drag_value.png index dbe3c13b644..56b5bb0e338 100644 --- a/tests/egui_tests/tests/snapshots/visuals/drag_value.png +++ b/tests/egui_tests/tests/snapshots/visuals/drag_value.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e86a37c7b259a6bad61897545d927d75e8307916dc78d256e4d33c410fcd6876 -size 7306 +oid sha256:c7e66a490236b306ce03c504d29490cdadc3708a79e21e3b46d11df8eb22a26b +size 7309 diff --git a/tests/egui_tests/tests/snapshots/visuals/radio_checked.png b/tests/egui_tests/tests/snapshots/visuals/radio_checked.png index a42ad5012e7..8e89197e12a 100644 --- a/tests/egui_tests/tests/snapshots/visuals/radio_checked.png +++ b/tests/egui_tests/tests/snapshots/visuals/radio_checked.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d1a172cfadc91467529e5546e686673be73ba0071a55d55abc7a41fb1d07214d -size 11700 +oid sha256:895914fa37608ff68c5ae7fdd22d0363da26907c78d4980f6bf1ed19f7e5f388 +size 11697 diff --git a/tests/egui_tests/tests/snapshots/visuals/selectable_value_selected.png b/tests/egui_tests/tests/snapshots/visuals/selectable_value_selected.png index 81f99551541..67d80fed340 100644 --- a/tests/egui_tests/tests/snapshots/visuals/selectable_value_selected.png +++ b/tests/egui_tests/tests/snapshots/visuals/selectable_value_selected.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0ef91dfedc74cae59099bce32b2e42cb04649e84442e8010282a9c1ff2a7f2c8 -size 12469 +oid sha256:0e0c4277eebadb0c350b5110d5ea7ff9292ab2b0231d6b36e9ada3aeefc7c198 +size 12510 diff --git a/tests/egui_tests/tests/snapshots/visuals/slider.png b/tests/egui_tests/tests/snapshots/visuals/slider.png index 6c83485590c..7e868c0e738 100644 --- a/tests/egui_tests/tests/snapshots/visuals/slider.png +++ b/tests/egui_tests/tests/snapshots/visuals/slider.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1892358a4552af3f529141d314cd18e4cf55a629d870798278a5470e3e0a8a94 -size 11030 +oid sha256:ec09e0e3432668c0d08bbba0aa8608c4eefba33d57f2335fdf105d144791406d +size 11036 diff --git a/tests/egui_tests/tests/snapshots/visuals/text_edit.png b/tests/egui_tests/tests/snapshots/visuals/text_edit.png index 5f2a64b8d46..1e1e4d3942b 100644 --- a/tests/egui_tests/tests/snapshots/visuals/text_edit.png +++ b/tests/egui_tests/tests/snapshots/visuals/text_edit.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7300a0b88d4fdb6c1e543bfaf50e8964b2f84aaaf8197267b671d0cf3c8da30a -size 7033 +oid sha256:9353e6d39d309e7a6e6c0a17be819809c2dbea8979e9e73b3c73b67b07124a36 +size 7031 From fba9e3a998aa18c9123950819fa062c42152d24b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 1 Jul 2025 13:52:36 +0200 Subject: [PATCH 13/13] Revert unrelated change --- crates/egui_demo_app/Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/egui_demo_app/Cargo.toml b/crates/egui_demo_app/Cargo.toml index d11aa2c0f17..5868ed481ec 100644 --- a/crates/egui_demo_app/Cargo.toml +++ b/crates/egui_demo_app/Cargo.toml @@ -52,7 +52,6 @@ chrono = { version = "0.4", default-features = false, features = [ ] } eframe = { workspace = true, default-features = false, features = [ "web_screen_reader", - "wayland", ] } egui = { workspace = true, features = ["callstack", "default", "log"] } egui_demo_lib = { workspace = true, features = ["default", "chrono"] }