Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Add theme-aware outline around the Speakr logo wherever it appears — new .app-logo primitive in primitives.css that gives the colourful icon a quiet, theme-appropriate chip-style border + 1px soft shadow + tiny inner padding so the icon reads as 'chipped' against the surrounding chrome (same design language as the speaker-pill outlines that softens the speaker's identity colour into the surface); single class works for both light and dark via existing var(--border-secondary) / var(--bg-secondary) tokens plus a darker box-shadow in dark mode; applied to every <img alt="Speakr..."> in the codebase — global header (both the main-list path at line 19 and the detail-view path at line 36 of components/header.html), page-header.html (account/admin chrome), inquire.html header, share.html public-share page header, group-admin.html header, the Settings → About identity strip in account.html (line 1779), and the six auth pages (login, register, forgot_password, reset_password, check_email, verify_success) — so the outline is consistent everywhere the user sees the icon
Murtaza Nasirc5ce928109ce
diff --git a/static/css/primitives.css b/static/css/primitives.cssindex 40a0bc80..62bcb3b7 100644--- a/static/css/primitives.css+++ b/static/css/primitives.css@@ -1,3 +1,23 @@+/* App logo wrapper — gives the colourful Speakr icon a quiet, theme-+ appropriate outline wherever it appears (top-left header, page-header,+ inquire header, settings About page, share view). Pattern borrowed from+ .speaker-tablet: a hairline border that softens into the surrounding+ surface plus a 1-px shadow for separation. Padding is intentionally+ tight (1 px) so the existing img sizing classes (w-7 h-7, etc.) keep+ producing the right visual footprint — the outline reads as a "chip"+ around the icon rather than a frame. */+.app-logo {+ border: 1px solid var(--border-secondary);+ border-radius: 6px;+ background: var(--bg-secondary);+ padding: 1px;+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);+ box-sizing: border-box;+}+.dark .app-logo {+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);+}+/* ============================================================================* Speakr Design System – Primitives* ============================================================================diff --git a/templates/account.html b/templates/account.htmlindex 92be4ceb..a8e9bf27 100644--- a/templates/account.html+++ b/templates/account.html@@ -1776,7 +1776,7 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co<div class="max-w-4xl mx-auto space-y-6"><!-- Identity strip --><div class="flex items-center gap-4">- <img src="{{ url_for('static', filename='img/icon-192x192.png') }}" alt="Speakr Logo" class="h-12 w-12 flex-shrink-0">+ <img src="{{ url_for('static', filename='img/icon-192x192.png') }}" alt="Speakr Logo" class="app-logo h-12 w-12 flex-shrink-0"><div class="flex-1"><h2 class="text-2xl font-semibold text-[var(--text-primary)]">Speakr</h2><p class="text-sm text-[var(--text-muted)]" data-i18n="aboutPage.tagline">AI-Powered Audio Transcription & Note-Taking</p>diff --git a/templates/auth/check_email.html b/templates/auth/check_email.htmlindex 92bf9cb9..a836b198 100644--- a/templates/auth/check_email.html+++ b/templates/auth/check_email.html@@ -42,7 +42,7 @@<header class="flex justify-between items-center mb-6 pb-4 border-b border-[var(--border-primary)]"><h1 class="text-3xl font-bold text-[var(--text-primary)]"><a href="{{ url_for('recordings.index') }}" class="flex items-center">- <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="h-9 w-9 mr-2">+ <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="app-logo h-9 w-9 mr-2">Speakr</a></h1>diff --git a/templates/auth/forgot_password.html b/templates/auth/forgot_password.htmlindex e3902827..9af13a1b 100644--- a/templates/auth/forgot_password.html+++ b/templates/auth/forgot_password.html@@ -42,7 +42,7 @@<header class="flex justify-between items-center mb-6 pb-4 border-b border-[var(--border-primary)]"><h1 class="text-3xl font-bold text-[var(--text-primary)]"><a href="{{ url_for('recordings.index') }}" class="flex items-center">- <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="h-9 w-9 mr-2">+ <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="app-logo h-9 w-9 mr-2">Speakr</a></h1>diff --git a/templates/auth/reset_password.html b/templates/auth/reset_password.htmlindex f699bc8f..25e31787 100644--- a/templates/auth/reset_password.html+++ b/templates/auth/reset_password.html@@ -42,7 +42,7 @@<header class="flex justify-between items-center mb-6 pb-4 border-b border-[var(--border-primary)]"><h1 class="text-3xl font-bold text-[var(--text-primary)]"><a href="{{ url_for('recordings.index') }}" class="flex items-center">- <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="h-9 w-9 mr-2">+ <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="app-logo h-9 w-9 mr-2">Speakr</a></h1>diff --git a/templates/auth/verify_success.html b/templates/auth/verify_success.htmlindex 075cfd84..96718f7b 100644--- a/templates/auth/verify_success.html+++ b/templates/auth/verify_success.html@@ -42,7 +42,7 @@<header class="flex justify-between items-center mb-6 pb-4 border-b border-[var(--border-primary)]"><h1 class="text-3xl font-bold text-[var(--text-primary)]"><a href="{{ url_for('recordings.index') }}" class="flex items-center">- <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="h-9 w-9 mr-2">+ <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="app-logo h-9 w-9 mr-2">Speakr</a></h1>diff --git a/templates/components/header.html b/templates/components/header.htmlindex d2510e8d..092b15da 100644--- a/templates/components/header.html+++ b/templates/components/header.html@@ -16,7 +16,7 @@<!-- LIST VIEW (or any non-detail screen): Speakr logo + name --><div v-if="currentView !== 'detail' || !selectedRecording"class="flex items-center gap-2 sm:gap-3 min-w-0">- <img src="{{ url_for('static', filename='img/icon-32x32.png') }}" alt="Speakr" class="w-7 h-7 sm:w-8 sm:h-8 flex-shrink-0">+ <img src="{{ url_for('static', filename='img/icon-32x32.png') }}" alt="Speakr" class="app-logo w-7 h-7 sm:w-8 sm:h-8 flex-shrink-0"><h1 class="text-lg sm:text-xl font-bold text-[var(--text-primary)] truncate">Speakr</h1></div>@@ -33,7 +33,7 @@pixels in edit mode. --><div class="flex items-center gap-2 min-w-0 flex-1"><a href="/" class="flex-shrink-0 hidden sm:block" :title="'Back to Speakr'">- <img src="{{ url_for('static', filename='img/icon-32x32.png') }}" alt="Speakr" class="w-7 h-7">+ <img src="{{ url_for('static', filename='img/icon-32x32.png') }}" alt="Speakr" class="app-logo w-7 h-7"></a><h1 v-if="!editingTitle"@dblclick="selectedRecording.can_edit !== false ? toggleEditTitle() : null"diff --git a/templates/components/page-header.html b/templates/components/page-header.htmlindex ed203847..eb4e5f25 100644--- a/templates/components/page-header.html+++ b/templates/components/page-header.html@@ -11,7 +11,7 @@<!-- Left: Speakr logo + name + optional page label --><div class="flex items-center gap-2 sm:gap-3 min-w-0 flex-1"><a href="{{ url_for('recordings.index') }}" class="flex items-center gap-2 sm:gap-3 min-w-0 hover:opacity-80 transition-opacity">- <img src="{{ url_for('static', filename='img/icon-32x32.png') }}" alt="Speakr" class="w-7 h-7 sm:w-8 sm:h-8 flex-shrink-0">+ <img src="{{ url_for('static', filename='img/icon-32x32.png') }}" alt="Speakr" class="app-logo w-7 h-7 sm:w-8 sm:h-8 flex-shrink-0"><h1 class="text-lg sm:text-xl font-bold text-[var(--text-primary)] truncate">Speakr</h1></a>{% if page_label %}diff --git a/templates/group-admin.html b/templates/group-admin.htmlindex dda66a54..95d5c5fd 100644--- a/templates/group-admin.html+++ b/templates/group-admin.html@@ -117,7 +117,7 @@<header class="flex justify-between items-center mb-6 pb-4 border-b border-[var(--border-primary)]"><h1 class="text-3xl font-bold text-[var(--text-primary)]"><a href="{{ url_for('recordings.index') }}" class="flex items-center">- <img src="{{ url_for('static', filename='img/icon-192x192.png') }}" alt="Speakr Logo" class="h-9 w-9 mr-2">+ <img src="{{ url_for('static', filename='img/icon-192x192.png') }}" alt="Speakr Logo" class="app-logo h-9 w-9 mr-2">Speakr</a></h1>diff --git a/templates/inquire.html b/templates/inquire.htmlindex f597b2e9..4ad60129 100644--- a/templates/inquire.html+++ b/templates/inquire.html@@ -145,7 +145,7 @@<!-- Logo and Title (clickable to go back) --><a href="/" class="flex items-center gap-2 sm:gap-3 min-w-0 hover:opacity-80 transition-opacity">- <img src="{{ url_for('static', filename='img/icon-32x32.png') }}" alt="Speakr" class="w-6 h-6 sm:w-8 sm:h-8 flex-shrink-0">+ <img src="{{ url_for('static', filename='img/icon-32x32.png') }}" alt="Speakr" class="app-logo w-6 h-6 sm:w-8 sm:h-8 flex-shrink-0"><h1 class="text-lg sm:text-xl font-bold text-[var(--text-primary)] truncate">Speakr</h1><span class="text-xs sm:text-sm text-[var(--text-muted)] hidden sm:inline">• Inquire Mode</span></a>diff --git a/templates/login.html b/templates/login.htmlindex 87cab134..2b6d379e 100644--- a/templates/login.html+++ b/templates/login.html@@ -55,7 +55,7 @@<header class="flex justify-between items-center mb-6 pb-4 border-b border-[var(--border-primary)]"><h1 class="text-3xl font-bold text-[var(--text-primary)]"><a href="{{ url_for('recordings.index') }}" class="flex items-center">- <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="h-9 w-9 mr-2">+ <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="app-logo h-9 w-9 mr-2">Speakr</a></h1>diff --git a/templates/register.html b/templates/register.htmlindex f39468e0..99a4addd 100644--- a/templates/register.html+++ b/templates/register.html@@ -55,7 +55,7 @@<header class="flex justify-between items-center mb-6 pb-4 border-b border-[var(--border-primary)]"><h1 class="text-3xl font-bold text-[var(--text-primary)]"><a href="{{ url_for('recordings.index') }}" class="flex items-center">- <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="h-9 w-9 mr-2">+ <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr Logo" class="app-logo h-9 w-9 mr-2">Speakr</a></h1>diff --git a/templates/share.html b/templates/share.htmlindex 92711fca..9ba03223 100644--- a/templates/share.html+++ b/templates/share.html@@ -81,7 +81,7 @@<!-- Header --><header class="bg-[var(--bg-secondary)] border-b border-[var(--border-primary)] px-4 py-3 flex items-center justify-between flex-shrink-0 z-50"><div class="flex items-center gap-3">- <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr" class="w-8 h-8">+ <img src="{{ url_for('static', filename='img/favicon.ico') }}" alt="Speakr" class="app-logo w-8 h-8"><div><h1 class="text-xl font-bold text-[var(--text-primary)]">${ recording.title }</h1><p class="text-sm text-[var(--text-muted)]">Shared Recording</p>