M4: the text-style level lists are craft-ui combo boxes

Main now refuses egui::ComboBox through clippy (#4988: its menu can't
grow back while open, egui#5225), and the merge brought that rule in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GbuSKAS2k5248LGFEapMUR
This commit is contained in:
Claude
2026-10-27 22:27:27 +00:00
parent d915af5ed5
commit 7f33b11ba1
@@ -93,7 +93,7 @@ pub(crate) fn body(ui: &mut egui::Ui, app: &mut PdfCraftApp, t: &Tokens) -> bool
ui.add_enabled_ui(open, |ui| {
let Some(slot) = d.levels.get_mut(level) else { return };
let shown = slot.and_then(|i| d.styles.get(i)).map_or_else(|| none.to_string(), style_label);
egui::ComboBox::from_id_salt(("text_style_level", level))
craft_ui::ComboBox::from_id_salt(("text_style_level", level))
.selected_text(shown)
.width(460.0)
.show_ui(ui, |ui| {