Add Graphic Attributes palette toggle and persistence

This commit is contained in:
Marcel committed 2026-09-29 21:34:31 +02:00
1 parent 3b74c7e7ea
commit 3e45331de1
14 files changed
+220 -71

No files matched your search

@@ -0,0 +1,14 @@
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!(
"../../../assets/icons/graphic_attributes.svg"
));
pub fn tool() -> ToolDef {
ToolDef {
id: "GRAPHICATTRIBUTES",
label: "Graphic Attributes",
icon: ICON,
event: ModuleEvent::Command("GRAPHICATTRIBUTES".to_string()),
}
}
+2
View File
@@ -2,6 +2,7 @@
mod cascade;
mod file_tabs;
mod graphic_attributes_palette;
mod layout_tabs;
pub mod limits;
mod orbit;
@@ -120,6 +121,7 @@ impl CadModule for ViewModule {
tools: vec![
RibbonItem::LargeTool(tool_palettes::tool()),
RibbonItem::LargeTool(properties_palette::tool()),
RibbonItem::LargeTool(graphic_attributes_palette::tool()),
RibbonItem::LargeTool(sheetset::tool()),
],
},