mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-10 04:22:34 +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
6f6ddb3272
commit
888b8a2d90
1 file changed
+2
-2
@@ -484,7 +484,7 @@ pub fn show(app: &mut DesignApp, ui: &mut egui::Ui) {
|
||||
Stroke::NONE,
|
||||
));
|
||||
let marker =
|
||||
ui.interact(egui::Rect::from_center_size(c, vec2(12.0, 8.0)), ui.id().with(("section", abs)), Sense::click());
|
||||
ui.interact(egui::Rect::from_center_size(c, vec2(12.0, 8.0)), ui.scope_id().with(("section", abs)), Sense::click());
|
||||
let label = format!(
|
||||
"{}: {}",
|
||||
crate::i18n::tr(&app.ui.language, "Numbering & Section Options…").trim_end_matches('…'),
|
||||
@@ -551,7 +551,7 @@ pub fn show(app: &mut DesignApp, ui: &mut egui::Ui) {
|
||||
ui.painter().rect_filled(br, 0.0, BADGE);
|
||||
}
|
||||
ui.painter().galley(c - g.size() / 2.0, g, Color32::WHITE);
|
||||
let lr = ui.interact(br, ui.id().with(("spread_label", si)), Sense::click());
|
||||
let lr = ui.interact(br, ui.scope_id().with(("spread_label", si)), Sense::click());
|
||||
lr.widget_info(|| egui::WidgetInfo::labeled(egui::WidgetType::Label, true, &label));
|
||||
if lr.clicked() {
|
||||
if editing_parents {
|
||||
|
||||
Reference in new issue
Block a user