mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-11 04:50:53 +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
90185deb82
commit
68d96f3ec9
1 file changed
+1
-1
@@ -6930,7 +6930,7 @@ fn toc_dialog(app: &mut DesignApp, ui: &mut egui::Ui, d: &mut Dialog) {
|
||||
// 200 pt, reserved: a desired width alone is squeezed by the grid to a few characters.
|
||||
// Narrower when the dialog is, so the style selector beside it stays in view.
|
||||
let w = 200.0_f32.min(title_room.max(80.0));
|
||||
if ui.add_sized([w, ui.spacing().interact_size.y], egui::TextEdit::singleline(&mut title).horizontal_align(egui::Align::Min)).changed() {
|
||||
if ui.add_sized([w, ui.spacing().interact_size.y], egui::TextEdit::singleline(&mut title).align(egui::Align2::LEFT_TOP)).changed() {
|
||||
d.fields.insert("title".into(), json!(title));
|
||||
}
|
||||
crate::rtl::label(ui, tr("Style:"));
|
||||
|
||||
Reference in new issue
Block a user