forked from 1b-agent/opencadstudio-upstream
Merge pull request #1702 from MarcelP102/Pallet-placement
[UX] Pallets you can dock, group and float (including LAYERS panel)
This commit is contained in:
commit
7ca457a6cc
54 files changed
+4245
-1098
No files matched your search
@@ -1,4 +1,4 @@
|
||||
// Layers panel toggle — ribbon definition.
|
||||
// Layer Manager pallet — ribbon definition.
|
||||
|
||||
use crate::modules::{IconKind, ModuleEvent, ToolDef};
|
||||
|
||||
@@ -7,6 +7,8 @@ pub fn tool() -> ToolDef {
|
||||
id: "LAYERS",
|
||||
label: "Layers",
|
||||
icon: IconKind::Svg(include_bytes!("../../../../assets/icons/layers/panel.svg")),
|
||||
event: ModuleEvent::ToggleLayers,
|
||||
// A command like the Blocks palette's: it opens the pallet, and the
|
||||
// ribbon drops the button's highlight once it has run.
|
||||
event: ModuleEvent::Command("LAYERS".to_string()),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user