Allow using alternate ratios when holding down shift during rectangular selection creation

This commit is contained in:
Igor Zinken
2023-04-01 11:59:46 +02:00
parent d2b581d2ee
commit 317868d83e
3 changed files with 5 additions and 7 deletions

View File

@@ -1,9 +1,8 @@
{
"en-US": {
"selection": "Selection",
"lockedRatio": "Locked ratio",
"lockRatio": "Lock ratio",
"shiftKey": "Hold Shift while drawing selection",
"mergeDescr": "Hold shift prior to drawing a new selection to add to the existing selection.",
"widthToHeight": "Width : height",
"existingSelection": "Existing selection",
"coordinates": "Coordinates",

View File

@@ -27,10 +27,9 @@
@focusout="handleBlur"
>
<h3 v-t="'selection'"></h3>
<p v-t="'mergeDescr'"></p>
<template v-if="!isLassoSelection">
<div class="wrapper input">
<label v-t="'lockedRatio'" v-tooltip="$t('shiftKey')"></label>
<label v-t="'lockRatio'" v-tooltip="$t('shiftKey')"></label>
<toggle-button
v-model="maintainRatio"
name="ratio"
@@ -44,13 +43,13 @@
type="number"
v-model.number="xRatio"
class="input-field half"
:disabled="!activeLayer || !maintainRatio"
:disabled="!activeLayer"
/>
<input
type="number"
v-model.number="yRatio"
class="input-field half"
:disabled="!activeLayer || !maintainRatio"
:disabled="!activeLayer"
/>
</div>
</template>

View File

@@ -3,6 +3,6 @@
"magicWand": "Magic wand",
"sampleMerged": "Sample merged layers",
"threshold": "Threshold",
"wandDescr": "Select a region by color similarity. Hold shift while selecting a region to add to the existing selection."
"wandDescr": "Select a region by color similarity."
}
}