* Render appearance: click, drag and paint to assign, Pick Up, copy and paste, and Remove * Exclude the workspace Shots strip from dialog width checks * Exclude the collapsed Shots control from dialog width checks * Retain assembly cache listings and measure actual dialog bounds * fix: handle toast button rectangles in assignment status * fix: restrict gallery note measurement helper to tests * test: measure assignment help at the catalogue footer * fix: share the command revision snapshot after restacking
This commit is contained in:
@@ -131,7 +131,7 @@ impl Item {
|
||||
swatch: None,
|
||||
}
|
||||
}
|
||||
fn heading(label: &str) -> Item {
|
||||
pub(crate) fn heading(label: &str) -> Item {
|
||||
Item {
|
||||
id: format!("#{label}"),
|
||||
label: label.into(),
|
||||
@@ -439,6 +439,11 @@ pub fn items(app: &SolveApp, target: &Target) -> Vec<Item> {
|
||||
);
|
||||
}
|
||||
}
|
||||
if crate::render_workspace::active(app)
|
||||
&& let Target::Body { name } = target
|
||||
{
|
||||
v.push(crate::render_workspace::assign::menu(app, name));
|
||||
}
|
||||
// Several items of the folder selected: they can be grouped.
|
||||
if let Some(p) = crate::browser::selection_group(app, target) {
|
||||
v.push(Item::sep());
|
||||
@@ -1230,6 +1235,9 @@ pub fn run_item(app: &mut SolveApp, item: &Item, at: Pos2) {
|
||||
let p = item.params.clone().unwrap_or(Value::Null);
|
||||
let bodies = strs(&p, "bodies");
|
||||
match item.id.as_str() {
|
||||
"appearance.library" if crate::render_workspace::active(app) => {
|
||||
app.start("appearance.library");
|
||||
}
|
||||
"parts.resize" => {
|
||||
if let Some(component) = id_of(&p, "component") {
|
||||
crate::dialogs_part_size::open(app, component);
|
||||
|
||||
Reference in New Issue
Block a user