mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-12 05:12:39 +00:00
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:
1 parent
454d5ca10c
commit
d1b647ac8c
2 files changed
+2
-2
No files matched your search
@@ -4700,7 +4700,7 @@ fn para_corners(lang: &str, ui: &mut egui::Ui, d: &mut Dialog, pv: &Value, key:
|
||||
let tip = crate::i18n::tr(lang, tip);
|
||||
let (r, resp) = ui.allocate_exact_size(egui::vec2(18.0, 18.0), egui::Sense::hover());
|
||||
crate::icons::paint(ui.painter(), r, icon, 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);
|
||||
let id = format!("ps{key}{i}");
|
||||
if let Some(v) = crate::widgets::NumField::measure(&id, Some(c.size), units).width(84.0).spinner().range(0.0, 10_000.0).show(ui) {
|
||||
|
||||
@@ -717,7 +717,7 @@ fn preview_rows_fit_long_translated_names() {
|
||||
let long = "Скругленный прямоугольник с обратным углом";
|
||||
let mut widths = (0.0, 0.0);
|
||||
let mut out = ctx.run_ui(egui::RawInput::default(), |ui| {
|
||||
egui::Area::new(egui::Id::new("rows")).show(ui.ctx(), |ui| {
|
||||
egui::Area::new(egui::Id::unique("rows")).show(ui.ctx(), |ui| {
|
||||
ui.set_max_width(10.0);
|
||||
let r = preview_row(ui, false, long, 40.0, |_, _, _| {});
|
||||
let text = ui.fonts_mut(|f| f.layout_no_wrap(long.to_string(), egui::FontId::proportional(12.0), egui::Color32::WHITE).size().x);
|
||||
|
||||
Reference in new issue
Block a user