Merge pull request #1702 from MarcelP102/Pallet-placement

[UX] Pallets you can dock, group and float (including LAYERS panel)
This commit is contained in:
Hakan Seven committed 2026-10-12 00:27:53 +03:00
commit 7ca457a6cc
54 files changed
+4245 -1098

No files matched your search

+4 -2
View File
@@ -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()),
}
}