Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Fix queue #6 (proper fix) — speaker pill time half uses the saturated speaker palette colour as its BACKGROUND with white text on top, no more colour-overlay hacks — the previous attempts all tried to manipulate the existing pastel via a translucent overlay (black darkens to grey, white lightens to washed-out, opacity reduces contrast) — none of them keep the speaker hue saturated; the correct architectural fix is to expose each speaker palette's saturated foreground as a CSS custom property (--speaker-fg, set on .speaker-color-1 through 16) and have .speaker-tablet-time use background: var(--speaker-fg) + color: white; this gives WCAG-AAA contrast, keeps the full hue identity per speaker, and reads as clearly distinct from the pastel name half without any greying; dark mode reverts to the original 0.18 black overlay since the dark-mode speaker palette already worked there
Murtaza Nasire91eefc57240
diff --git a/static/css/styles.css b/static/css/styles.cssindex 93585718..a0b5b594 100644--- a/static/css/styles.css+++ b/static/css/styles.css@@ -1711,28 +1711,25 @@ body {font-size: 0.7rem;letter-spacing: 0.02em;user-select: none;- /* Light mode: darken the time half by a multiplicative speaker-hue- shade (color-burn produces a more saturated darker shade than- black overlay would, which previously desaturated to grey) and- force white text for high contrast. The result reads as a- saturated darker version of the speaker pastel with clear- white time digits. Fallback to a 0.32 black overlay for- browsers that don't support mix-blend-mode (it's near-universal- though). */- background-image: linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32));+ /* Use the speaker palette's saturated foreground as the BG and+ white text on top. This keeps the hue (no grey desaturation),+ gives WCAG-AAA contrast for the time digits, and reads as+ clearly distinct from the pastel name half. The custom property+ is set on .speaker-color-N up above; if absent we fall back to+ a neutral dark colour so the layout doesn't break. */+ background: var(--speaker-fg, #424242);+ background-image: none;color: #ffffff;- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);display: inline-flex;align-items: center;}.dark .speaker-tablet-group .speaker-tablet-time {- /* Dark mode: the inherited speaker-color foreground is a light- pastel and was already legible on the slightly-darker tint, so- we keep the original 0.18 black overlay (a small darken on the- already-dark speaker palette). */+ /* Dark mode: the inherited speaker-color foreground is already a+ light pastel that reads well on the existing 0.18 black overlay+ and the original design was correct there, so we revert to it. */+ background: transparent;background-image: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18));color: inherit;- text-shadow: none;opacity: 0.9;}@@ -2031,23 +2028,29 @@ body {border-color: var(--border-secondary);}-/* Speaker colors - enhanced palette with 16 colors for better variation */-.speaker-color-1 { background-color: #E3F2FD; color: #0D47A1; } /* Blue */-.speaker-color-2 { background-color: #F3E5F5; color: #6A1B9A; } /* Purple */-.speaker-color-3 { background-color: #E8F5E9; color: #1B5E20; } /* Green */-.speaker-color-4 { background-color: #FFF3E0; color: #E65100; } /* Orange */-.speaker-color-5 { background-color: #FCE4EC; color: #AD1457; } /* Pink */-.speaker-color-6 { background-color: #E0F7FA; color: #006064; } /* Cyan */-.speaker-color-7 { background-color: #FFF9C4; color: #F57F17; } /* Yellow */-.speaker-color-8 { background-color: #EFEBE9; color: #5D4037; } /* Brown */-.speaker-color-9 { background-color: #E8EAF6; color: #283593; } /* Indigo */-.speaker-color-10 { background-color: #F1F8E9; color: #558B2F; } /* Lime */-.speaker-color-11 { background-color: #FFEBEE; color: #C62828; } /* Red */-.speaker-color-12 { background-color: #ECEFF1; color: #37474F; } /* Blue Grey */-.speaker-color-13 { background-color: #FFF8E1; color: #FF8F00; } /* Amber */-.speaker-color-14 { background-color: #EDE7F6; color: #4527A0; } /* Deep Purple */-.speaker-color-15 { background-color: #E0F2F1; color: #00695C; } /* Teal */-.speaker-color-16 { background-color: #FBE9E7; color: #BF360C; } /* Deep Orange */+/* Speaker colors — pastel surface + saturated dark foreground. The+ --speaker-fg custom property exposes the foreground for places like+ the speaker-tablet-time half that want to use the saturated colour+ as a background (with white text on top) — without exposing this+ variable we'd have to either desaturate the existing surface with a+ black/white overlay (which kills the hue) or duplicate the colour+ list in another stylesheet. */+.speaker-color-1 { background-color: #E3F2FD; color: #0D47A1; --speaker-fg: #0D47A1; } /* Blue */+.speaker-color-2 { background-color: #F3E5F5; color: #6A1B9A; --speaker-fg: #6A1B9A; } /* Purple */+.speaker-color-3 { background-color: #E8F5E9; color: #1B5E20; --speaker-fg: #1B5E20; } /* Green */+.speaker-color-4 { background-color: #FFF3E0; color: #E65100; --speaker-fg: #E65100; } /* Orange */+.speaker-color-5 { background-color: #FCE4EC; color: #AD1457; --speaker-fg: #AD1457; } /* Pink */+.speaker-color-6 { background-color: #E0F7FA; color: #006064; --speaker-fg: #006064; } /* Cyan */+.speaker-color-7 { background-color: #FFF9C4; color: #F57F17; --speaker-fg: #F57F17; } /* Yellow */+.speaker-color-8 { background-color: #EFEBE9; color: #5D4037; --speaker-fg: #5D4037; } /* Brown */+.speaker-color-9 { background-color: #E8EAF6; color: #283593; --speaker-fg: #283593; } /* Indigo */+.speaker-color-10 { background-color: #F1F8E9; color: #558B2F; --speaker-fg: #558B2F; } /* Lime */+.speaker-color-11 { background-color: #FFEBEE; color: #C62828; --speaker-fg: #C62828; } /* Red */+.speaker-color-12 { background-color: #ECEFF1; color: #37474F; --speaker-fg: #37474F; } /* Blue Grey */+.speaker-color-13 { background-color: #FFF8E1; color: #FF8F00; --speaker-fg: #FF8F00; } /* Amber */+.speaker-color-14 { background-color: #EDE7F6; color: #4527A0; --speaker-fg: #4527A0; } /* Deep Purple */+.speaker-color-15 { background-color: #E0F2F1; color: #00695C; --speaker-fg: #00695C; } /* Teal */+.speaker-color-16 { background-color: #FBE9E7; color: #BF360C; --speaker-fg: #BF360C; } /* Deep Orange *//* Dark mode speaker colors - tasteful muted pastels with 16 colors */.dark .speaker-color-1 { background-color: #1E3A5F; color: #A5C9EA; } /* Blue */diff --git a/templates/components/detail/tab-navigation.html b/templates/components/detail/tab-navigation.htmlindex c3d8388f..2349d152 100644--- a/templates/components/detail/tab-navigation.html+++ b/templates/components/detail/tab-navigation.html@@ -1,8 +1,11 @@-<!-- Mobile Bottom Tab Navigation (design system v1).- Three primary tabs (Summary / Transcript / Chat) plus a More overflow- menu that surfaces Notes / Events / Settings. 56px tall to comfortably- accommodate icon + label + 44×44 touch target per HIG. -->-<div class="flex-shrink-0 border-t border-[var(--border-primary)] bg-[var(--bg-secondary)] flex items-stretch" style="min-height: 56px;">+<!-- Mobile Bottom Tab Navigation. The base nav always shows Summary,+ Transcript, Chat and Notes (four direct tabs). When the recording+ also has extracted Events the total would exceed 4, so we surface+ Notes inside a More overflow with Events instead — at 4 or fewer+ items there's no overflow menu so the user can reach every tab in+ one tap (queue #9). 56px tall to accommodate icon + label + 44×44+ touch target per HIG. -->+<div class="flex-shrink-0 border-t border-[var(--border-primary)] bg-[var(--bg-secondary)] flex items-stretch" style="min-height: 56px; padding-bottom: env(safe-area-inset-bottom);"><button @click="mobileTab = 'summary'"class="flex-1 flex flex-col items-center justify-center gap-0.5 px-2 transition-colors":class="mobileTab === 'summary' ? 'text-[var(--text-accent)]' : 'text-[var(--text-muted)]'">@@ -26,13 +29,23 @@${chatMessages.length}</span></button>- <!-- More menu (overflow): houses Notes, Events, etc. -->- <button @click="mobileMoreOpen = !mobileMoreOpen"+ <!-- Notes appears DIRECTLY in the bar when the recording has no+ events (total stays at 4 tabs); when events ARE present it+ moves into the More overflow alongside Events. -->+ <button v-if="!selectedRecording || !selectedRecording.events || selectedRecording.events.length === 0"+ @click="mobileTab = 'notes'"+ class="flex-1 flex flex-col items-center justify-center gap-0.5 px-2 transition-colors"+ :class="mobileTab === 'notes' ? 'text-[var(--text-accent)]' : 'text-[var(--text-muted)]'">+ <i class="fas fa-sticky-note text-base"></i>+ <span class="text-[10px] font-medium" v-text="t('notes.title')"></span>+ </button>+ <!-- More menu only when there's actual overflow (events present). -->+ <button v-else+ @click="mobileMoreOpen = !mobileMoreOpen"class="flex-1 flex flex-col items-center justify-center gap-0.5 px-2 transition-colors relative":class="['notes','events'].includes(mobileTab) ? 'text-[var(--text-accent)]' : 'text-[var(--text-muted)]'"><i class="fas fa-ellipsis-h text-base"></i><span class="text-[10px] font-medium">More</span>- <!-- Indicator when an overflow tab is active --><span v-if="['notes','events'].includes(mobileTab)"class="absolute top-1 right-3 inline-flex items-center justify-center w-1.5 h-1.5 rounded-full"style="background: var(--text-accent);"></span>