From 12b51efffaae4b45a62bd2eea3f99bcfb60cdc92 Mon Sep 17 00:00:00 2001 From: Igor Zinken <730069+igorski@users.noreply.github.com> Date: Sat, 15 Mar 2025 08:16:02 +0100 Subject: [PATCH] Updates to layer and mask position management --- src/components/layer-panel/layer-panel.vue | 9 ++-- .../tool-options-drag/messages.json | 1 + .../tool-options-drag/tool-options-drag.vue | 46 ++++++++++++++++--- 3 files changed, 46 insertions(+), 10 deletions(-) diff --git a/src/components/layer-panel/layer-panel.vue b/src/components/layer-panel/layer-panel.vue index 660f73d..dd8569d 100644 --- a/src/components/layer-panel/layer-panel.vue +++ b/src/components/layer-panel/layer-panel.vue @@ -77,7 +77,7 @@ v-tooltip.left="$t( element.maskSelected ? 'clickToEditLayer' : 'dblClickToRename')" class="layer__name" :class="{ - 'layer--highlight': element.index === activeLayerIndex && !activeLayerMask + 'layer--selected': element.index === activeLayerIndex && !element.maskSelected }" @dblclick="handleLayerDoubleClick( element )" @click="handleLayerClick( element )" @@ -448,7 +448,7 @@ export default { @include mixins.boxSize(); @include typography.customFont(); display: flex; - color: #FFF; + color: colors.$color-lines; &:hover { background-color: colors.$color-4; @@ -492,6 +492,7 @@ export default { &--active { background-color: colors.$color-1; border: none; + color: colors.$color-2; } &--active, @@ -501,8 +502,8 @@ export default { } } - &--highlight { - color: #000; + &--selected { + color: #FFF; } } diff --git a/src/components/tool-options-panel/tool-options-drag/messages.json b/src/components/tool-options-panel/tool-options-drag/messages.json index e0c714e..1b2e9f9 100644 --- a/src/components/tool-options-panel/tool-options-drag/messages.json +++ b/src/components/tool-options-panel/tool-options-drag/messages.json @@ -1,6 +1,7 @@ { "en-US": { "layerPosition": "Layer position", + "maskPosition": "Mask position", "coordinates": "Coordinates", "reset": "Reset", "center": "Center" diff --git a/src/components/tool-options-panel/tool-options-drag/tool-options-drag.vue b/src/components/tool-options-panel/tool-options-drag/tool-options-drag.vue index fae1d24..2a8e84e 100644 --- a/src/components/tool-options-panel/tool-options-drag/tool-options-drag.vue +++ b/src/components/tool-options-panel/tool-options-drag/tool-options-drag.vue @@ -23,10 +23,10 @@