feat(dimstyle): add Annotative toggle to the Dimension Style editor

Adds the annotative property (DsField::Annotative) to the dim-style edit
buffers, load/apply, and a checkbox on the Fit/Scale tab — consistent with
the Text Style editor's annotative toggle.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-06-03 17:49:38 +03:00
commit 07a2a05975
4 changed files with 9 additions and 0 deletions

View file

@ -89,6 +89,7 @@ pub struct DimStyleValues<'a> {
pub dimtm: &'a str,
pub dimtdec: &'a str,
pub dimtfac: &'a str,
pub annotative: bool,
}
fn btn_s(accent: bool) -> impl Fn(&Theme, button::Status) -> button::Style {
@ -422,6 +423,7 @@ pub fn view_window<'a>(
.into(),
3 => column![
text("Scale").size(11).color(ACCENT),
chk("Annotative", vals.annotative, DsField::Annotative),
row![
lbl("Overall scale (DIMSCALE)"),
mk_field(DsField::Dimscale, vals.dimscale)