forked from 1b-agent/opencadstudio-upstream
Add a searchable block palette with previews, file import, collision-safe nested definitions, and dependency/table-record import. Keep palette thumbnails current across drawing switches and block-definition edits.
12 lines
354 B
Rust
12 lines
354 B
Rust
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
|
pub const ICON: IconKind =
|
|
IconKind::Svg(include_bytes!("../../../assets/icons/blocks/insert.svg"));
|
|
pub fn tool() -> ToolDef {
|
|
ToolDef {
|
|
id: "BLOCKPALETTE",
|
|
label: "Block\nPalette",
|
|
icon: ICON,
|
|
event: ModuleEvent::Command("BLOCKPALETTE".to_string()),
|
|
}
|
|
}
|