forked from 1b-agent/opencadstudio-upstream
Align linear dimension properties and grips
This commit is contained in:
1 parent
f556a2b027
commit
f0d00c1d53
5 files changed
+749
-36
No files matched your search
+24
-1
@@ -1021,7 +1021,11 @@ impl OpenCADStudio {
|
||||
&& s.name.eq_ignore_ascii_case("Standard"))
|
||||
})
|
||||
{
|
||||
sections.extend(crate::entities::dimension::style_sections(style));
|
||||
sections.extend(crate::entities::dimension::style_sections(
|
||||
style,
|
||||
d,
|
||||
&self.tabs[i].scene.document,
|
||||
));
|
||||
|
||||
// The style groups are a read-only mirror, but the
|
||||
// dim-line colour is an editable per-object override:
|
||||
@@ -1036,6 +1040,25 @@ impl OpenCADStudio {
|
||||
"dim_line_color",
|
||||
PropValue::ColorChoice(dim_c),
|
||||
);
|
||||
for (field, code, inherited) in [
|
||||
("dim_ext_line_color", dov::DIMCLRE, style.dimclre),
|
||||
("dim_text_color", dov::DIMCLRT, style.dimclrt),
|
||||
(
|
||||
"dim_text_fill_color",
|
||||
dov::DIMTFILLCLR,
|
||||
style.dimtfillclr,
|
||||
),
|
||||
] {
|
||||
let color = dov::color(&d.base().common.extended_data, code)
|
||||
.unwrap_or_else(|| {
|
||||
acadrust::types::Color::from_index(inherited)
|
||||
});
|
||||
set_row_value(
|
||||
&mut sections,
|
||||
field,
|
||||
PropValue::ColorChoice(color),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user