This commit is contained in:
Henry Jameson 2024-09-12 16:10:39 +03:00
parent a044dc377e
commit 2b9968eacd
4 changed files with 11 additions and 9 deletions

View file

@ -8,7 +8,7 @@
class="label -before" class="label -before"
:class="{ faint: disabled }" :class="{ faint: disabled }"
> >
<slot name="before"/> <slot name="before" />
</span> </span>
<input <input
type="checkbox" type="checkbox"

View file

@ -20,7 +20,7 @@
<div <div
class="input color-input-field" class="input color-input-field"
:class="{ disabled: !present || disabled }" :class="{ disabled: !present || disabled }"
> >
<input <input
:id="name + '-t'" :id="name + '-t'"
class="textColor unstyled" class="textColor unstyled"

View file

@ -123,10 +123,13 @@
</div> </div>
</div> </div>
<!-- eslint-disable vue/no-v-text-v-html-on-component --> <!-- eslint-disable vue/no-v-html vue/no-v-text-v-html-on-component -->
<component :is="'style'" v-html="themeV3Preview"/> <component
<!-- eslint-enable vue/no-v-text-v-html-on-component --> :is="'style'"
<preview id="theme-preview"/> v-html="themeV3Preview"
/>
<!-- eslint-enable vue/no-v-html vue/no-v-text-v-html-on-component -->
<preview id="theme-preview" />
<div> <div>
<button <button

View file

@ -60,21 +60,20 @@
> >
{{ $t('settings.style.shadows.light_grid') }} {{ $t('settings.style.shadows.light_grid') }}
</Checkbox> </Checkbox>
</div> </div>
<div class="shadow-switcher"> <div class="shadow-switcher">
<Select <Select
class="shadow-list"
id="shadow-list" id="shadow-list"
v-model="selectedId" v-model="selectedId"
class="shadow-list"
size="10" size="10"
:disabled="!ready || usingFallback" :disabled="!ready || usingFallback"
> >
<option <option
v-for="(shadow, index) in cValue" v-for="(shadow, index) in cValue"
:key="index"
:value="index" :value="index"
:class="{ '-active': index === Number(selectedId) }" :class="{ '-active': index === Number(selectedId) }"
:key="index"
> >
{{ shadow.name ?? $t('settings.style.shadows.shadow_id', { value: index }) }} {{ shadow.name ?? $t('settings.style.shadows.shadow_id', { value: index }) }}
</option> </option>