forked from 1b-agent/opencadstudio-upstream
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 <[email protected]>
This commit is contained in:
1 parent
52850947d2
commit
07a2a05975
4 files changed
+9
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user