mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-12 13:24:56 +00:00
Package: the PDF Preset dropdown named by its label, for screen readers; craft_ui's dropdown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
261f698aa2
commit
cd612b1836
1 file changed
+5
-3
@@ -278,9 +278,9 @@ pub fn show(app: &DesignApp, ui: &mut egui::Ui, d: &mut Dialog) {
|
||||
ui.add_enabled_ui(d.b("pdf"), |ui| {
|
||||
ui.horizontal(|ui| {
|
||||
ui.add_space(24.0);
|
||||
crate::rtl::label(ui, tr("PDF Preset:"));
|
||||
let name = crate::rtl::label(ui, tr("PDF Preset:"));
|
||||
let cur = d.s("pdfPreset");
|
||||
egui::ComboBox::from_id_salt("package_pdf_preset").selected_text(crate::rtl::widget(ui, tr(&cur))).width(180.0).show_ui(
|
||||
craft_ui::ComboBox::from_id_salt("package_pdf_preset").selected_text(crate::rtl::widget(ui, tr(&cur))).width(180.0).show_ui(
|
||||
ui,
|
||||
|ui| {
|
||||
for p in crate::dialogs::pdf_presets() {
|
||||
@@ -289,7 +289,9 @@ pub fn show(app: &DesignApp, ui: &mut egui::Ui, d: &mut Dialog) {
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
)
|
||||
.response
|
||||
.labelled_by(name.id);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user