From cc7cae7d8e9e8e518cbb4173d23dee76cd303f0d Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Fri, 25 Sep 2026 14:47:44 +0300 Subject: [PATCH] Remove Clipping tools show a small red cross on the clip icon Co-Authored-By: Claude Opus 5.5 --- assets/icons/xclip_remove.svg | 9 +++++++++ src/ui/ribbon/context_tools.rs | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 assets/icons/xclip_remove.svg diff --git a/assets/icons/xclip_remove.svg b/assets/icons/xclip_remove.svg new file mode 100644 index 000000000..2c808ee42 --- /dev/null +++ b/assets/icons/xclip_remove.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/ui/ribbon/context_tools.rs b/src/ui/ribbon/context_tools.rs index c5f69819f..c642a0bd0 100644 --- a/src/ui/ribbon/context_tools.rs +++ b/src/ui/ribbon/context_tools.rs @@ -24,6 +24,8 @@ fn tool(id: &'static str, label: &'static str, icon: &'static [u8]) -> ToolDef { } const CLIP: &[u8] = include_bytes!("../../../assets/icons/xclip.svg"); +/// The clip icon with a small red cross at its lower right. +const UNCLIP: &[u8] = include_bytes!("../../../assets/icons/xclip_remove.svg"); /// PDF underlay tools: display, clipping, options, layers and import. pub fn pdf_underlay_tools() -> Vec {