From a15bf92d7fa1e43e7bcbc01b4421324283189791 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Thu, 19 Nov 2026 15:34:54 +0100 Subject: [PATCH] Remove inspector clipboard buttons --- Cargo.lock | 2 +- Cargo.toml | 2 +- crates/canvas-pilot/src/gui.rs | 16 ++-------------- docs/canvas-pilot/changelog.md | 5 +++++ 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a264a50..6e20317 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -602,7 +602,7 @@ dependencies = [ [[package]] name = "canvas-pilot" -version = "0.10.7" +version = "0.10.8" dependencies = [ "base64 0.22.1", "craft-dwg", diff --git a/Cargo.toml b/Cargo.toml index 530c95f..cf0a5e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ default-members = ["crates/canvas-pilot"] resolver = "3" [workspace.package] -version = "0.10.7" +version = "0.10.8" edition = "2024" license = "MIT" repository = "https://proxy.dandaedre.com/gitea/idle-org/canvas-pilot" diff --git a/crates/canvas-pilot/src/gui.rs b/crates/canvas-pilot/src/gui.rs index 2cd63fd..8a544ba 100644 --- a/crates/canvas-pilot/src/gui.rs +++ b/crates/canvas-pilot/src/gui.rs @@ -1628,7 +1628,7 @@ impl Editor { - input_reference_rows as f32 * (44.0 - capture_ui::INPUT_REFERENCE_ROW_HEIGHT); let details_height = match self.layout.selected_indices().len() { 0 => 220.0, - 1 => 927.0, + 1 => 823.0, _ => 1071.0, }; let palette = theme::palette(ui.ctx()); @@ -2169,17 +2169,9 @@ impl Editor { 12.0, palette.muted, ); - ink.button(0.0, 695.0, w, "Copy layer values", true); - if click(ui, &ink, [0.0, 695.0, w, 34.0], "copy-values") { - self.copy(ui.ctx()); - } - ink.button(0.0, 744.0, w, "Paste layer(s) values", false); - if click(ui, &ink, [0.0, 744.0, w, 34.0], "paste-button") { - self.open_paste(String::new()); - } ink.text( 0.0, - 799.0, + 695.0, &tr( ink.painter.ctx(), "ui.or-ctrl-cmd-v-with-the-viewport-focused", @@ -2732,10 +2724,6 @@ impl Editor { palette.text, ); } - ink.button(0.0, 552.0, w, "Copy selected layer values", true); - if click(ui, ink, [0.0, 552.0, w, 34.0], "copy-selected") { - self.copy(ui.ctx()); - } ink.text( 0.0, 609.0, diff --git a/docs/canvas-pilot/changelog.md b/docs/canvas-pilot/changelog.md index 98ca605..6a2a72e 100644 --- a/docs/canvas-pilot/changelog.md +++ b/docs/canvas-pilot/changelog.md @@ -4,6 +4,11 @@ ## Unreleased +### v0.10.8 + +- Remove inspector Copy/Paste buttons, including the multi-selection Copy button, + while retaining clipboard shortcuts and context-menu actions. + ### v0.10.7 - Pre-map geometry imports by exact included-item count: selected layers, their