VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Layers: the panel options command describes when Locate Selected Objects opens nothing
dotCooCooe1761eb489fe
diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rsindex 74dae2a99..06102e856 100644--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@ -553,7 +553,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &["ui.layersPanelOptions","Panel Options…","",- "{} open the Layers panel's Panel Options: dialog `layersPanelOptions`, fields layersOnly, locateSelected (Locate Selected Objects, off by default: when the last selected object changes outside the panel, on the canvas or by a command, the panel opens the layers and groups around it and scrolls to its row, as after layer.locate, without highlighting the row; a change made during a drag is located when the drag ends), rowSize (small|medium|large|other), otherSize (12–100 pt), thumbLayers, thumbGroups, thumbObjects; OK applies them (kept with the UI state)",+ "{} open the Layers panel's Panel Options: dialog `layersPanelOptions`, fields layersOnly, locateSelected (Locate Selected Objects, off by default: when the last selected object changes outside the panel, on the canvas or by a command, the panel opens the layers and groups around it and scrolls to its row, as after layer.locate, without highlighting the row; when Show Layers Only, a search or the filter leaves the object without a row, the panel opens no rows for it and scrolls as with the option off; a change made during a drag is located when the drag ends), rowSize (small|medium|large|other), otherSize (12–100 pt), thumbLayers, thumbGroups, thumbObjects; OK applies them (kept with the UI state)",),("ui.layersExpand",diff --git a/crates/ui-egui/src/panels/layers.rs b/crates/ui-egui/src/panels/layers.rsindex 8e52dd0d8..3871b7df7 100644--- a/crates/ui-egui/src/panels/layers.rs+++ b/crates/ui-egui/src/panels/layers.rs@@ -68,7 +68,8 @@ pub struct PanelOptions {pub layers_only: bool,/// Locate Selected Objects (off by default): when the last selected object changes outside the/// panel, on the canvas or by a command, the panel opens the rows around it and scrolls to its- /// row, as after Locate Object, without highlighting the row.+ /// row, as after Locate Object, without highlighting the row. When Show Layers Only, a search or+ /// the filter leaves the object without a row, the panel opens no rows for it.pub locate_selected: bool,/// Row height in points: [`ROW_SMALL`], [`ROW_MEDIUM`], [`ROW_LARGE`] or another (12–100).pub row_size: f32,