mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-26 03:49:11 +00:00
Preserve typed Fill and Sign font sizes
This commit is contained in:
@@ -324,8 +324,11 @@ fn fill_text_controls(ui: &mut egui::Ui, app: &mut PdfCraftApp) {
|
||||
tl!("Font size"),
|
||||
|ui| IconButton::new(IconId::new("a-large-small")).label(tl!("Font size")).show(ui).response,
|
||||
|ui| {
|
||||
let field =
|
||||
SliderField::new(tl!("Font size"), Bind::bound(&mut size), min..=max).scale(SliderScale::Log).unit_kind(UnitKind::Points).show(ui);
|
||||
let field = SliderField::new(tl!("Font size"), Bind::bound(&mut size), min..=max)
|
||||
.scale(SliderScale::Log)
|
||||
.typed_decimals(12)
|
||||
.unit_kind(UnitKind::Points)
|
||||
.show(ui);
|
||||
committed |= field.edit.events.committed().is_some();
|
||||
false
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user