Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Visually link the video file rows and the Keep audio only toggle by sharing the sky-blue palette + a video-themed icon — the previous wiring used emerald/teal for the toggle and sky-blue for the file icon, so a user with a video in the queue couldn't tell at a glance that the Keep audio only toggle was the action that operated on those blue file rows; now the toggle uses the same sky-blue palette as the fa-file-video icon (sky-500/blue-500 gradient on, sky-700 text) and its icon switches from the generic fa-volume-up to fa-video-slash which directly represents 'drop the video stream' — the action is visible without reading the label; also retuned the implicit-mode inline hint that shows on each video row when VIDEO_RETENTION is off at the server: now uses the same sky-blue colour + fa-video-slash icon for the same visual continuity (was emerald + fa-volume-up); other hint on the row (the large-video size notice) was already sky-blue and stays unchanged

Murtaza Nasir7bfdeade7f34
diff --git a/templates/components/upload-view.html b/templates/components/upload-view.html
index d3fefbb1..f9fac8f2 100644
--- a/templates/components/upload-view.html
+++ b/templates/components/upload-view.html
@@ -76,8 +76,8 @@
the icon roughly under the file-icon column;
mt-0.5 gives the row breathing room. -->
<div v-if="!videoRetentionEnabled && /\.(mp4|mov|mkv|avi|webm|m4v|wmv|flv|ts|mts)$/i.test(item.file.name)"
- class="flex items-start gap-1.5 pl-5 mt-0.5 text-[11px] leading-snug text-emerald-700 dark:text-emerald-400">
- <i class="fas fa-volume-up text-xs mt-0.5 flex-shrink-0"></i>
+ class="flex items-start gap-1.5 pl-5 mt-0.5 text-[11px] leading-snug text-sky-700 dark:text-sky-400">
+ <i class="fas fa-video-slash text-xs mt-0.5 flex-shrink-0"></i>
<span>${ t('upload.videoAudioOnlyAuto') }</span>
</div>
<!-- Informational hint for video files larger
@@ -143,41 +143,45 @@
least one video file. When off, videos in the queue
get the larger audio-only size limit automatically
(the hint on each video row makes that visible).
- Markup mirrors the Incognito Mode toggle above so the
- two share the exact visual rhythm. -->
+ Palette: sky-blue, matching the fa-file-video glyph
+ on the video file rows above, so the toggle reads
+ as "the thing that acts on those blue file rows"
+ at a glance. Icon is fa-video-slash so the action
+ ("drop the video stream") is visible without
+ reading the label. -->
<div v-if="videoRetentionEnabled && uploadQueue.some(item => item.file && /\.(mp4|mov|mkv|avi|webm|m4v|wmv|flv|ts|mts)$/i.test(item.file.name))"
class="mt-3">
<button @click="keepAudioOnly = !keepAudioOnly"
:class="[
'w-full flex items-center justify-between px-3 py-2.5 rounded-lg border transition-all duration-200',
keepAudioOnly
- ? 'bg-gradient-to-r from-emerald-500/10 to-teal-500/10 border-emerald-400/50 dark:border-emerald-500/50'
+ ? 'bg-gradient-to-r from-sky-500/10 to-blue-500/10 border-sky-400/50 dark:border-sky-500/50'
: 'bg-[var(--bg-tertiary)] border-[var(--border-secondary)] hover:border-[var(--border-focus)]'
]">
<div class="flex items-center gap-3">
<div :class="[
'w-8 h-8 rounded-full flex items-center justify-center transition-all',
keepAudioOnly
- ? 'bg-gradient-to-br from-emerald-500 to-teal-600 text-white'
+ ? 'bg-gradient-to-br from-sky-500 to-blue-600 text-white'
: 'bg-[var(--bg-secondary)] text-[var(--text-muted)]'
]">
- <i class="fas fa-volume-up text-sm"></i>
+ <i class="fas fa-video-slash text-sm"></i>
</div>
<div class="text-left">
- <span :class="['text-sm font-medium', keepAudioOnly ? 'text-emerald-700 dark:text-emerald-300' : 'text-[var(--text-secondary)]']">
+ <span :class="['text-sm font-medium', keepAudioOnly ? 'text-sky-700 dark:text-sky-300' : 'text-[var(--text-secondary)]']">
${ t('upload.keepAudioOnly') }
</span>
<p v-if="!keepAudioOnly" class="text-[10px] text-[var(--text-muted)]">
${ t('upload.keepAudioOnlySubtitleOff') }
</p>
- <p v-else class="text-[10px] text-emerald-600 dark:text-emerald-400">
+ <p v-else class="text-[10px] text-sky-600 dark:text-sky-400">
${ t('upload.keepAudioOnlySubtitleOn') } &bull; ${ t('upload.keepAudioOnlyLargerAllowed') }
</p>
</div>
</div>
<div :class="[
'w-10 h-5 rounded-full relative transition-all duration-200',
- keepAudioOnly ? 'bg-gradient-to-r from-emerald-500 to-teal-500' : 'bg-[var(--bg-secondary)]'
+ keepAudioOnly ? 'bg-gradient-to-r from-sky-500 to-blue-500' : 'bg-[var(--bg-secondary)]'
]">
<div :class="[
'absolute top-0.5 w-4 h-4 rounded-full bg-white shadow transition-all duration-200',