DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
egui 0.37: the renamed APIs in this branch's code
moppeeer15b2f49342cf
diff --git a/crates/ui-egui/src/panels/properties/tests.rs b/crates/ui-egui/src/panels/properties/tests.rsindex 96a1b14b6..2f6a6f4fb 100644--- a/crates/ui-egui/src/panels/properties/tests.rs+++ b/crates/ui-egui/src/panels/properties/tests.rs@@ -657,7 +657,7 @@ fn double_clicking_a_fill_chip_opens_the_color_picker() {let panel = |app: DesignApp| {let mut h = Harness::builder().with_size(vec2(320.0, 1400.0)).with_step_dt(0.001).build_ui_state(|ui, app: &mut DesignApp| {- let id = egui::Id::new("test_fonts");+ let id = egui::Id::unique("test_fonts");if ui.data(|d| d.get_temp::<bool>(id)).is_none() {crate::theme::install_fonts(ui.ctx(), "");ui.data_mut(|d| d.insert_temp(id, true));diff --git a/crates/ui-egui/src/panels/properties/text.rs b/crates/ui-egui/src/panels/properties/text.rsindex 64c6d6890..ad25a5a5a 100644--- a/crates/ui-egui/src/panels/properties/text.rs+++ b/crates/ui-egui/src/panels/properties/text.rs@@ -129,7 +129,7 @@ pub(super) fn text_appearance_section(app: &mut DesignApp, ui: &mut Ui) {}let resp = ui.interact(chip, ui.scope_id().with(("tchip", k)), Sense::click()).on_hover_text(format!("{label}: {sw}"));resp.widget_info(|| {- egui::WidgetInfo::labeled(egui::WidgetType::Button, true, if k == 0 { "Text fill swatch" } else { "Text stroke swatch" })+ egui::WidgetInfo::labeled(egui::Role::Button, true, if k == 0 { "Text fill swatch" } else { "Text stroke swatch" })});swatch_menu(app, &resp, &doc, &sw, k != 0, false, true);if resp.double_clicked() {