Control bar: Hide Shape Widgets hides the selected live shapes' widgets

With the Rectangle, Rounded Rectangle, Ellipse, Polygon or Star tool, the
Control bar starts the tool's options with a Hide Shape Widgets button,
which reads Show Shape Widgets while the widgets are hidden
(`view.shapeWidgets {on?}`). Hidden, a selected live rectangle's or
polygon's corner widgets, a live ellipse's pie widgets and a live
polygon's side widget are not drawn, and the Selection tool and the shape
tools do not answer a press, a double-click or the cursor on them. The
bounding box and its handles, the center point and Direct Selection's
corner widgets (View › Hide Corner Widget) stay as they are.

The setting is on by default, saved with the interface state and kept
across tool switches; it adds no undo step. Its scope beyond the shape
tools, its default and what it leaves shown are VectorCraft's own rules.

The help page describes the button:
https://helpx.adobe.com/illustrator/using/live-shapes.html
This commit is contained in:
dotCooCoo committed 2026-11-16 15:45:34 -08:00
1 parent 4e3175bbbf
commit 0904472ffc
51 files changed
+389 -16

No files matched your search

+5
View File
@@ -35,6 +35,9 @@ pub struct ViewInfo {
pub snap_to_glyph: bool,
/// View → Show Corner Widget.
pub corner_widgets: bool,
/// The Control bar's Show Shape Widgets: selected live shapes show their corner, pie and side
/// widgets to the Selection tool and the shape tools.
pub shape_widgets: bool,
/// The document window (none headless): screen-fixed widgets sit in it.
pub screen: Option<vectorcraft_tools::ScreenFrame>,
/// The view's active artboard (an index): artboard rulers measure from it.
@@ -55,6 +58,7 @@ impl Default for ViewInfo {
snap_to_point: true,
snap_to_glyph: false,
corner_widgets: true,
shape_widgets: true,
screen: None,
artboard: 0,
}
@@ -381,6 +385,7 @@ impl Session {
snap_to_glyph: view.snap_to_glyph && smart_guides && !view.snap_to_grid,
glyph_snap: self.prefs.glyph_snap,
corner_widgets: view.corner_widgets,
shape_widgets: view.shape_widgets,
fill_active: self.fill_active,
gradient_stop: self.selected_stop(),
appearance_item: self.appearance_item(),