egui 0.37: the renamed APIs in this branch's code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
moppeeerandClaude Opus 5.5 committed 2026-10-29 22:02:59 +01:00
1 parent 10e9970cfe
commit 27684daabe
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -3279,7 +3279,7 @@ const FORMAT_SECTIONS: &[(&str, &str)] = &[
fn info_icon(ui: &mut egui::Ui, tip: &str) {
let (r, resp) = ui.allocate_exact_size(egui::vec2(16.0, 16.0), egui::Sense::hover());
crate::icons::paint(ui.painter(), r, "info", crate::theme::Tokens::get(ui.ctx()).icon);
resp.widget_info(|| egui::WidgetInfo::labeled(egui::WidgetType::Label, true, tip));
resp.widget_info(|| egui::WidgetInfo::labeled(egui::Role::Label, true, tip));
resp.on_hover_text(tip);
}
@@ -3348,7 +3348,7 @@ fn change_format_settings(app: &mut DesignApp, ctx: &egui::Context, d: &mut Dial
let cf = CharFields { base: &base, sparse: true };
let popup_open = egui::Popup::is_any_open(ctx);
let mut result = None;
let host = egui::Id::new("change_format_settings");
let host = egui::Id::unique("change_format_settings");
crate::modal_drag::modal(ctx, host, host).backdrop_color(egui::Color32::TRANSPARENT).show(ctx, |ui| {
let title_top = ui.cursor().top();
crate::rtl::label(ui, egui::RichText::new(crate::i18n::tr(&lang, "Change Format Settings")).font(semibold(16.0)));
+1 -1
View File
@@ -3542,7 +3542,7 @@ fn find_change_gives_the_found_text_a_change_format() {
}
let mut h = Harness::builder().with_size(egui::vec2(1200.0, 900.0)).build_ui_state(
|ui, app: &mut DesignApp| {
let key = egui::Id::new("change_format_test_fonts");
let key = egui::Id::unique("change_format_test_fonts");
if ui.data(|d| d.get_temp::<bool>(key)).is_none() {
crate::theme::install_fonts(ui.ctx(), "");
ui.data_mut(|d| d.insert_temp(key, true));