Skip to content

Commit 3a82dcf

Browse files
committed
fix(export): use primary instead of neutral colors for ui
1 parent 58a835b commit 3a82dcf

2 files changed

Lines changed: 29 additions & 23 deletions

File tree

frontend/app/components/export/ExportForm.vue

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ watchDebounced(
4545
if (fresh.length === 0) return;
4646
resolving.value = true;
4747
try {
48-
assets.value = [...assets.value, ...(await props.resolveTitles(fresh))];
48+
assets.value = [
49+
...assets.value,
50+
...(await props.resolveTitles(fresh)),
51+
];
4952
} finally {
5053
resolving.value = false;
5154
}
@@ -143,7 +146,9 @@ function startExport() {
143146
emit("start-export", {
144147
vxIds: assets.value.map((a) => a.vxId),
145148
selection: {
146-
destinations: props.config.destinations.filter((d) => destChecked[d]),
149+
destinations: props.config.destinations.filter(
150+
(d) => destChecked[d],
151+
),
147152
audioSource: audioSource.value,
148153
languages: props.config.languages
149154
.filter((l) => langChecked[l.code])
@@ -270,11 +275,12 @@ function startExport() {
270275
v-for="d in config.destinations"
271276
:key="d"
272277
v-model="destChecked[d]"
273-
color="neutral"
274278
>
275279
<template #label>
276-
<span class="text-sm">{{ destinationName(d) }}</span>
277-
<span class="text-muted font-mono text-xs ml-2">
280+
<span class="text-sm">{{
281+
destinationName(d)
282+
}}</span>
283+
<span class="text-muted ml-2 font-mono text-xs">
278284
{{ d }}</span
279285
>
280286
</template>
@@ -302,7 +308,9 @@ function startExport() {
302308
<h3 class="text-highlighted text-sm font-semibold">
303309
{{ $t("export.subclips") }}
304310
</h3>
305-
<p class="text-muted text-xs">{{ $t("export.subclipsHint") }}</p>
311+
<p class="text-muted text-xs">
312+
{{ $t("export.subclipsHint") }}
313+
</p>
306314
<div
307315
v-if="config.subclips.length > 0"
308316
class="flex flex-col gap-2"
@@ -311,7 +319,6 @@ function startExport() {
311319
v-for="s in config.subclips"
312320
:key="s.title"
313321
v-model="subclipChecked[s.title]"
314-
color="neutral"
315322
:label="s.title"
316323
/>
317324
</div>
@@ -325,7 +332,9 @@ function startExport() {
325332
</h3>
326333
<div class="flex items-center gap-2">
327334
<span class="text-muted text-xs">
328-
{{ $t("export.nSelected", { n: selectedLangCount }) }}
335+
{{
336+
$t("export.nSelected", { n: selectedLangCount })
337+
}}
329338
</span>
330339
<UButton
331340
color="neutral"
@@ -366,7 +375,6 @@ function startExport() {
366375
v-for="l in config.languages"
367376
:key="l.code"
368377
v-model="langChecked[l.code]"
369-
color="neutral"
370378
>
371379
<template #label>
372380
<span class="font-mono text-sm">{{ l.code }}</span>
@@ -388,11 +396,7 @@ function startExport() {
388396
:key="`${r.width}x${r.height}`"
389397
class="flex items-center gap-6"
390398
>
391-
<UCheckbox
392-
v-model="r.enabled"
393-
color="neutral"
394-
:ui="{ root: 'w-28' }"
395-
>
399+
<UCheckbox v-model="r.enabled" :ui="{ root: 'w-28' }">
396400
<template #label>
397401
<span class="font-mono text-sm">
398402
{{ r.width }}x{{ r.height }}
@@ -401,7 +405,6 @@ function startExport() {
401405
</UCheckbox>
402406
<UCheckbox
403407
v-model="r.downloadable"
404-
color="neutral"
405408
:label="$t('export.downloadable')"
406409
:disabled="!r.enabled"
407410
/>
@@ -422,17 +425,14 @@ function startExport() {
422425
<div class="space-y-3">
423426
<UCheckbox
424427
v-model="withChapters"
425-
color="neutral"
426428
:label="$t('export.withChapters')"
427429
/>
428430
<UCheckbox
429431
v-model="ignoreSilence"
430-
color="neutral"
431432
:label="$t('export.ignoreSilence')"
432433
/>
433434
<UCheckbox
434435
v-model="exportAiSubs"
435-
color="neutral"
436436
:label="$t('export.exportAiSubs')"
437437
/>
438438
</div>
@@ -446,7 +446,9 @@ function startExport() {
446446
:disabled="selectedDestCount === 0 || assets.length === 0"
447447
@click="startExport"
448448
>
449-
{{ bulkMode ? $t("export.bulkStart") : $t("export.startExport") }}
449+
{{
450+
bulkMode ? $t("export.bulkStart") : $t("export.startExport")
451+
}}
450452
</UButton>
451453
</div>
452454
</div>

frontend/app/components/vb-export/VbExportForm.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ watchDebounced(
5151
if (fresh.length === 0) return;
5252
resolving.value = true;
5353
try {
54-
assets.value = [...assets.value, ...(await props.resolveTitles(fresh))];
54+
assets.value = [
55+
...assets.value,
56+
...(await props.resolveTitles(fresh)),
57+
];
5558
} finally {
5659
resolving.value = false;
5760
}
@@ -169,11 +172,12 @@ function startExport() {
169172
v-for="d in config.destinations"
170173
:key="d"
171174
v-model="destChecked[d]"
172-
color="neutral"
173175
>
174176
<template #label>
175-
<span class="text-sm">{{ destinationName(d) }}</span>
176-
<span class="text-muted font-mono text-xs ml-2">
177+
<span class="text-sm">{{
178+
destinationName(d)
179+
}}</span>
180+
<span class="text-muted ml-2 font-mono text-xs">
177181
{{ d }}</span
178182
>
179183
</template>

0 commit comments

Comments
 (0)