|
@@ -56,7 +56,7 @@
|
|
@input="e => updateProperty('x', e.target.value)"
|
|
@input="e => updateProperty('x', e.target.value)"
|
|
>
|
|
>
|
|
<Checkbox
|
|
<Checkbox
|
|
- id="inset"
|
|
|
|
|
|
+ id="lightGrid"
|
|
v-model="lightGrid"
|
|
v-model="lightGrid"
|
|
:disabled="!present"
|
|
:disabled="!present"
|
|
name="lightGrid"
|
|
name="lightGrid"
|
|
@@ -83,7 +83,7 @@
|
|
</option>
|
|
</option>
|
|
</Select>
|
|
</Select>
|
|
<div
|
|
<div
|
|
- class="id-control arrange-buttons"
|
|
|
|
|
|
+ class="id-control btn-group arrange-buttons"
|
|
>
|
|
>
|
|
<button
|
|
<button
|
|
class="btn button-default"
|
|
class="btn button-default"
|
|
@@ -132,12 +132,11 @@
|
|
</div>
|
|
</div>
|
|
<div class="shadow-tweak">
|
|
<div class="shadow-tweak">
|
|
<div
|
|
<div
|
|
- :disabled="!present"
|
|
|
|
:class="{ disabled: !present }"
|
|
:class="{ disabled: !present }"
|
|
class="name-control style-control"
|
|
class="name-control style-control"
|
|
>
|
|
>
|
|
<label
|
|
<label
|
|
- for="spread"
|
|
|
|
|
|
+ for="name"
|
|
class="label"
|
|
class="label"
|
|
:class="{ faint: !present }"
|
|
:class="{ faint: !present }"
|
|
>
|
|
>
|
|
@@ -163,7 +162,7 @@
|
|
:disabled="!present"
|
|
:disabled="!present"
|
|
name="inset"
|
|
name="inset"
|
|
class="input-inset input-boolean"
|
|
class="input-inset input-boolean"
|
|
- @input="e => updateProperty('inset', e.target.value)"
|
|
|
|
|
|
+ @input="e => updateProperty('inset', e.target.checked)"
|
|
>
|
|
>
|
|
<template #before>
|
|
<template #before>
|
|
{{ $t('settings.style.shadows.inset') }}
|
|
{{ $t('settings.style.shadows.inset') }}
|
|
@@ -176,7 +175,7 @@
|
|
class="blur-control style-control"
|
|
class="blur-control style-control"
|
|
>
|
|
>
|
|
<label
|
|
<label
|
|
- for="spread"
|
|
|
|
|
|
+ for="blur"
|
|
class="label"
|
|
class="label"
|
|
:class="{ faint: !present }"
|
|
:class="{ faint: !present }"
|
|
>
|
|
>
|
|
@@ -205,22 +204,21 @@
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
- :disabled="!present"
|
|
|
|
class="spread-control style-control"
|
|
class="spread-control style-control"
|
|
- :class="{ disabled: !present }"
|
|
|
|
|
|
+ :class="{ disabled: !present || (separateInset && !selected?.inset) }"
|
|
>
|
|
>
|
|
<label
|
|
<label
|
|
for="spread"
|
|
for="spread"
|
|
class="label"
|
|
class="label"
|
|
- :class="{ faint: !present }"
|
|
|
|
|
|
+ :class="{ faint: !present || (separateInset && !selected?.inset) }"
|
|
>
|
|
>
|
|
{{ $t('settings.style.shadows.spread') }}
|
|
{{ $t('settings.style.shadows.spread') }}
|
|
</label>
|
|
</label>
|
|
<input
|
|
<input
|
|
id="spread"
|
|
id="spread"
|
|
:value="selected?.spread"
|
|
:value="selected?.spread"
|
|
- :disabled="!present"
|
|
|
|
- :class="{ disabled: !present }"
|
|
|
|
|
|
+ :disabled="!present || (separateInset && !selected?.inset)"
|
|
|
|
+ :class="{ disabled: !present || (separateInset && !selected?.inset) }"
|
|
name="spread"
|
|
name="spread"
|
|
class="input input-range"
|
|
class="input input-range"
|
|
type="range"
|
|
type="range"
|
|
@@ -230,26 +228,26 @@
|
|
>
|
|
>
|
|
<input
|
|
<input
|
|
:value="selected?.spread"
|
|
:value="selected?.spread"
|
|
- :disabled="!present"
|
|
|
|
- :class="{ disabled: !present }"
|
|
|
|
|
|
+ :disabled="{ disabled: !present || (separateInset && !selected?.inset) }"
|
|
|
|
+ :class="{ disabled: !present || (separateInset && !selected?.inset) }"
|
|
class="input input-number"
|
|
class="input input-number"
|
|
type="number"
|
|
type="number"
|
|
@input="e => updateProperty('spread', e.target.value)"
|
|
@input="e => updateProperty('spread', e.target.value)"
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
<ColorInput
|
|
<ColorInput
|
|
- :modelValue="selected?.color"
|
|
|
|
|
|
+ :model-value="selected?.color"
|
|
:disabled="!present"
|
|
:disabled="!present"
|
|
:label="$t('settings.style.common.color')"
|
|
:label="$t('settings.style.common.color')"
|
|
:fallback="currentFallback?.color"
|
|
:fallback="currentFallback?.color"
|
|
:show-optional-tickbox="false"
|
|
:show-optional-tickbox="false"
|
|
name="shadow"
|
|
name="shadow"
|
|
- @update:modelValue="e => updateProperty('color', e.target.value)"
|
|
|
|
|
|
+ @update:modelValue="e => updateProperty('color', e)"
|
|
/>
|
|
/>
|
|
<OpacityInput
|
|
<OpacityInput
|
|
- :modelValue="selected?.alpha"
|
|
|
|
|
|
+ :model-value="selected?.alpha"
|
|
:disabled="!present"
|
|
:disabled="!present"
|
|
- @update:modelValue="e => updateProperty('alpha', e.target.value)"
|
|
|
|
|
|
+ @update:modelValue="e => updateProperty('alpha', e)"
|
|
/>
|
|
/>
|
|
<i18n-t
|
|
<i18n-t
|
|
scope="global"
|
|
scope="global"
|
|
@@ -260,8 +258,8 @@
|
|
<code>--variable,mod</code>
|
|
<code>--variable,mod</code>
|
|
</i18n-t>
|
|
</i18n-t>
|
|
<Popover
|
|
<Popover
|
|
- trigger="hover"
|
|
|
|
v-if="separateInset"
|
|
v-if="separateInset"
|
|
|
|
+ trigger="hover"
|
|
>
|
|
>
|
|
<template #trigger>
|
|
<template #trigger>
|
|
<div
|
|
<div
|