Plus de couleur au choix ni de thèmes Nuit/Étoilé ; police Inter partout

- Apparence : auto, clair ou sombre seulement ; Nuit et Étoilé sont relus comme sombre
- Accent ambre fixe, défini dans le CSS (plus foncé en clair pour rester lisible) ;
  la section « Couleur d'accent » des réglages et ses textes disparaissent
- Une seule police, Inter (titres en gras), à la place de Gloock / Onest / Sometype Mono

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
Claude committed 2026-11-27 15:49:12 +00:00
1 parent 59f515663e
commit b9cbbfe2f2
34 files changed
+85 -679

No files matched your search

+1 -41
View File
@@ -10,7 +10,7 @@ import { exportBackup, parseBackupFile, type ParsedBackup } from '../lib/backup'
import { testTmdbKey } from '../lib/catalogApi'
import { checkTmdbProxy, type ProxyState } from '../lib/cloud/api'
import { ALL_TOP_CATEGORIES, TOP_CATEGORIES } from '../lib/constants'
import { isHexColor, THEME_MODES, THEME_PRESETS } from '../lib/theme'
import { THEME_MODES } from '../lib/theme'
import { detectPlatform, useInstallPrompt } from '../lib/pwa'
import { isAdmin } from '../lib/cloud/admin'
import { cx } from '../lib/utils'
@@ -254,46 +254,6 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
</div>
<p className="mt-2.5 text-xs text-ink-3">{t('settings.appearanceHint')}</p>
<SectionTitle>{t('settings.accentColor')}</SectionTitle>
<div className="grid grid-cols-6 gap-3">
{THEME_PRESETS.map((p) => {
const on = settings.accentColor.toLowerCase() === p.color
return (
<button
key={p.color}
onClick={() => updateSettings({ accentColor: p.color })}
className="flex flex-col items-center gap-1.5"
aria-pressed={on}
aria-label={t('settings.themeX', { name: p.name })}
>
<span
className={cx('grid size-10 place-items-center rounded-full transition', on ? 'ring-2 ring-ink ring-offset-2 ring-offset-bg' : '')}
style={{ background: p.color }}
>
{on && <Check size={17} strokeWidth={3} className="text-on-accent" />}
</span>
<span className={cx('text-[11px]', on ? 'text-ink' : 'text-ink-3')}>{p.name}</span>
</button>
)
})}
</div>
<label className="mt-4 flex items-center gap-3 rounded-2xl border border-line px-4 py-3">
<span className="relative size-8 shrink-0 overflow-hidden rounded-full border border-line-strong" style={{ background: settings.accentColor }}>
<input
type="color"
value={settings.accentColor}
onChange={(e) => isHexColor(e.target.value) && updateSettings({ accentColor: e.target.value })}
className="absolute inset-0 size-full cursor-pointer opacity-0"
aria-label={t('settings.pickColor')}
/>
</span>
<span className="flex-1 text-sm">
{t('settings.freeColor')}
<span className="block text-xs text-ink-3">{t('settings.freeColorHint')}</span>
</span>
<span className="code text-xs text-ink-3">{settings.accentColor}</span>
</label>
<SectionTitle>{t('settings.installApp')}</SectionTitle>
<div className="card overflow-hidden">
{installed ? (