From ad5be8ec7095da6a1dc841db41f70e7717a9da5a Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Thu, 16 Oct 2025 21:02:55 -0700 Subject: [PATCH] [style] update style of mask editor button on Vue node image preview (#6060) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates style of mask editor button on Vue nodes image preview overlay to align with [design](https://www.figma.com/design/31uH3r4x3xbIctuRWYW6NM/V3---Vue-Nodes?node-id=7744-84270&m=dev). Also makes the custom mask have color be derived from text color class. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6060-style-update-style-of-mask-editor-button-on-Vue-node-image-preview-28c6d73d36508111a562c6a22c64f027) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action --- packages/design-system/src/css/style.css | 8 ++++++++ packages/design-system/src/icons/mask.svg | 12 ++++++------ .../extensions/vueNodes/components/ImagePreview.vue | 13 ++++++++----- .../vueNodes/components/ImagePreview.test.ts | 10 ++++++++-- 4 files changed, 30 insertions(+), 13 deletions(-) diff --git a/packages/design-system/src/css/style.css b/packages/design-system/src/css/style.css index 769f52d55..c1cb42ce5 100644 --- a/packages/design-system/src/css/style.css +++ b/packages/design-system/src/css/style.css @@ -63,6 +63,7 @@ --color-sand-200: #d6cfc2; --color-sand-300: #888682; + --color-pure-black: #000000; --color-pure-white: #ffffff; --color-slate-100: #9c9eab; @@ -144,6 +145,9 @@ --content-hover-bg: #adadad; --content-hover-fg: #000; + --button-surface: var(--color-pure-white); + --button-surface-contrast: var(--color-pure-black); + /* Code styling colors for help menu*/ --code-text-color: rgb(0 122 255 / 1); --code-bg-color: rgb(96 165 250 / 0.2); @@ -201,6 +205,8 @@ .dark-theme { --accent-primary: var(--color-pure-white); --backdrop: var(--color-neutral-900); + --button-surface: var(--color-charcoal-600); + --button-surface-contrast: var(--color-pure-white); --button-hover-surface: var(--color-charcoal-600); --button-active-surface: var(--color-charcoal-600); --dialog-surface: var(--color-neutral-700); @@ -246,6 +252,8 @@ --color-backdrop: var(--backdrop); --color-button-hover-surface: var(--button-hover-surface); --color-button-active-surface: var(--button-active-surface); + --color-button-surface: var(--button-surface); + --color-button-surface-contrast: var(--button-surface-contrast); --color-dialog-surface: var(--dialog-surface); --color-interface-menu-component-surface-hovered: var(--interface-menu-component-surface-hovered); --color-interface-menu-component-surface-selected: var(--interface-menu-component-surface-selected); diff --git a/packages/design-system/src/icons/mask.svg b/packages/design-system/src/icons/mask.svg index 1e1a6d97c..4993ab52b 100644 --- a/packages/design-system/src/icons/mask.svg +++ b/packages/design-system/src/icons/mask.svg @@ -1,14 +1,14 @@ - - - - - + + + + + - \ No newline at end of file + diff --git a/src/renderer/extensions/vueNodes/components/ImagePreview.vue b/src/renderer/extensions/vueNodes/components/ImagePreview.vue index 52f7c8a0b..462f86fcf 100644 --- a/src/renderer/extensions/vueNodes/components/ImagePreview.vue +++ b/src/renderer/extensions/vueNodes/components/ImagePreview.vue @@ -41,21 +41,21 @@ /> -
+