Files
vectorcraft/crates/ui-egui/src/addons/contour.rs
T
BFlat 6f37bd839c VectorCraft on the craft UI framework (#8800)
VectorCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (`next`; the framework side is storytold/craft-libs#2809), as PhotoCraft's did. The app keeps its engine, document model, file formats, commands and automation; its windows, panels, bars, dialogs and canvas are now built and driven by the framework: shell, docking and panels, hosted dialogs, keyboard, focus, IME and pointer routing, and theme tokens.

About 264,000 lines of VectorCraft's own egui UI code are removed and about 154,000 added. craft-libs is pinned at bf62d509f (in `next`), the egui fork at f5025284.

Tests that drove the old UI were rewritten against the port where only their premise changed, with their assertions kept. The UI tests still failing at merge, and their follow-ups, are listed in the pull request.
2026-11-24 08:25:24 +07:00

14 lines
503 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//! The Contour add-on in the interface: its submenu (Object › Plug-ins › Contour), which selects the
//! Contour tool. The Contour bar (`canvas/contour_bar.rs`) shows over the selection while the tool is
//! active. Everything acts through `addon.contour.set` and Expand Appearance.
use craft::menu::Node;
use serde_json::json;
use vectorcraft_tools::addons::contour;
use crate::menus::cp;
pub fn menu() -> Vec<Node> {
vec![cp("Contour Tool", "tool.select", json!({"tool": contour::ID}))]
}