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:
34 files changed
+85
-679
No files matched your search
@@ -133,7 +133,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
|
||||
<span key={m}>{m}</span>
|
||||
))}
|
||||
</p>
|
||||
<h2 className="mt-1.5 line-clamp-2 text-[2.15rem] leading-[1.02] lg:text-[2.75rem]">{item.title}</h2>
|
||||
<h2 className="mt-1.5 line-clamp-2 text-[1.9rem] leading-[1.08] lg:text-[2.5rem]">{item.title}</h2>
|
||||
{progress && (
|
||||
<div className="mt-4">
|
||||
<div className="flex items-baseline justify-between gap-3 text-sm text-ink-2">
|
||||
@@ -195,7 +195,7 @@ export function ContinueCard({ item, onOpen }: { item: MediaItem; onOpen: (item:
|
||||
<button onClick={() => onOpen(item)} className="flex min-w-0 flex-1 items-stretch text-start" aria-label={t('card.open', { title: item.title })}>
|
||||
<span className="block w-[3.6rem] shrink-0 bg-surface-2">{image && <img src={image} alt="" loading="lazy" className="size-full object-cover" />}</span>
|
||||
<span className="flex min-w-0 flex-1 flex-col justify-center px-3">
|
||||
<span className="block truncate font-display text-[1.2rem] leading-tight">{item.title}</span>
|
||||
<span className="block truncate font-bold text-base leading-tight">{item.title}</span>
|
||||
<span className="mt-0.5 block truncate text-xs text-ink-3">
|
||||
{item.rewatch && <span className="me-1.5 font-medium text-accent">{t('rewatch.badge')}</span>}
|
||||
{next ? (
|
||||
|
||||
@@ -19,7 +19,7 @@ interface Props {
|
||||
export default function SideNav({ current, onChange, onAdd }: Props) {
|
||||
return (
|
||||
<nav className="fixed inset-y-0 start-0 z-30 hidden w-60 flex-col border-e border-line bg-bg px-4 py-6 lg:flex">
|
||||
<p className="px-2 font-display text-[1.75rem] leading-none">
|
||||
<p className="px-2 font-bold text-[1.75rem] leading-none">
|
||||
Bobin<span className="text-accent">oo</span>
|
||||
</p>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ export function StatTile({ label, value, hint }: { label: string; value: ReactNo
|
||||
return (
|
||||
<div className="card min-w-0 p-4">
|
||||
<p className="text-xs text-ink-3">{label}</p>
|
||||
<p className="mt-1.5 truncate font-display text-[1.85rem] leading-none tabular-nums lg:text-[2.2rem]">{value}</p>
|
||||
<p className="mt-1.5 truncate font-bold text-[1.85rem] leading-none tabular-nums lg:text-[2.2rem]">{value}</p>
|
||||
{hint && <p className="mt-0.5 truncate text-xs text-ink-2">{hint}</p>}
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import type { ReactNode } from 'react'
|
||||
import { cx } from '../lib/utils'
|
||||
|
||||
/** En-tête de page : titre en Gloock. La partie « accent » n'est colorée que pour le logo (wordmark). */
|
||||
/** En-tête de page : titre en gras. La partie « accent » n'est colorée que pour le logo (wordmark). */
|
||||
export function PageHeader({ title, accent, subtitle, action, wordmark }: { title: string; accent?: string; subtitle?: string; action?: ReactNode; wordmark?: boolean }) {
|
||||
return (
|
||||
<header className="flex items-end justify-between gap-3 pb-5 pt-7">
|
||||
<div className="min-w-0">
|
||||
<h1 className={cx('leading-[1.05]', wordmark ? 'text-[2.15rem]' : 'text-[2rem]')}>
|
||||
<h1 className={cx('leading-[1.05]', wordmark ? 'text-[2rem] tracking-[-0.02em]' : 'text-[1.9rem]')}>
|
||||
{title}
|
||||
{accent && <span className={wordmark ? 'text-accent' : undefined}>{accent}</span>}
|
||||
</h1>
|
||||
@@ -21,17 +21,17 @@ export function StatTile({ label, value, hint, className }: { label: string; val
|
||||
return (
|
||||
<div className={cx('card p-4', className)}>
|
||||
<div className="eyebrow">{label}</div>
|
||||
<div className="mt-2 font-display text-[1.85rem] leading-none tabular-nums">{value}</div>
|
||||
<div className="mt-2 font-bold text-[1.85rem] leading-none tabular-nums">{value}</div>
|
||||
{hint && <div className="mt-2 text-xs text-ink-3">{hint}</div>}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/** Titre de section : Gloock, sans capitales ni filet. */
|
||||
/** Titre de section : gras, sans capitales ni filet. */
|
||||
export function SectionTitle({ children, action }: { children: ReactNode; action?: ReactNode }) {
|
||||
return (
|
||||
<div className="mb-3.5 mt-10 flex items-baseline justify-between gap-3">
|
||||
<h2 className="text-[1.45rem] leading-tight text-ink">{children}</h2>
|
||||
<h2 className="text-[1.3rem] leading-tight text-ink">{children}</h2>
|
||||
{action}
|
||||
</div>
|
||||
)
|
||||
@@ -74,7 +74,7 @@ export function LinkArrow({ onClick, children }: { onClick: () => void; children
|
||||
export function EmptyState({ title, text, action }: { title: string; text?: string; action?: ReactNode }) {
|
||||
return (
|
||||
<div className="card mt-4 flex flex-col items-center px-6 py-12 text-center">
|
||||
<p className="font-display text-[1.5rem] leading-tight">{title}</p>
|
||||
<p className="font-bold text-[1.5rem] leading-tight">{title}</p>
|
||||
{text && <p className="mt-2 max-w-xs text-sm text-ink-2">{text}</p>}
|
||||
{action && <div className="mt-6">{action}</div>}
|
||||
</div>
|
||||
|
||||
@@ -238,9 +238,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'تلقائي',
|
||||
'theme.modeLight': 'فاتح',
|
||||
'theme.modeDark': 'داكن',
|
||||
'theme.modeNight': 'ليلي',
|
||||
'theme.modeStarfield': 'نجوم',
|
||||
'settings.accentColor': 'لون التمييز',
|
||||
'settings.installApp': 'تثبيت التطبيق',
|
||||
'settings.installHint': 'أضِف Bobinoo إلى شاشتك الرئيسية أو سطح المكتب.',
|
||||
'settings.installed': 'تم تثبيت التطبيق',
|
||||
@@ -298,10 +295,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'في شريط العنوان، انقر أيقونة التثبيت على اليمين (شاشة بها سهم).\nأو: قائمة ⋮ في المتصفح → «تثبيت Bobinoo».\nأكِّد بـ «تثبيت».',
|
||||
'install.other': 'افتح قائمة متصفحك.\nابحث عن «تثبيت التطبيق» أو «إضافة إلى الشاشة الرئيسية».',
|
||||
'install.gotIt': 'حسنًا',
|
||||
'settings.themeX': 'سمة {name}',
|
||||
'settings.pickColor': 'اختيار لون مخصص',
|
||||
'settings.freeColor': 'لون مخصص',
|
||||
'settings.freeColorHint': 'أي لون يناسب: يتكيّف النص ليبقى مقروءًا.',
|
||||
'settings.databases': 'قواعد بيانات الأفلام',
|
||||
'settings.anilistActive': 'الأنمي · مفعّل',
|
||||
'settings.noConfig': 'لا حاجة لأي إعداد.',
|
||||
@@ -448,20 +441,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'غدًا',
|
||||
'time.daysAgo': 'منذ {n} ي',
|
||||
|
||||
'theme.amber': 'كهرماني',
|
||||
|
||||
'theme.red': 'أحمر',
|
||||
'theme.orange': 'برتقالي',
|
||||
'theme.yellow': 'أصفر',
|
||||
'theme.lime': 'ليموني',
|
||||
'theme.green': 'أخضر',
|
||||
'theme.mint': 'نعناعي',
|
||||
'theme.cyan': 'سماوي',
|
||||
'theme.blue': 'أزرق',
|
||||
'theme.indigo': 'نيلي',
|
||||
'theme.violet': 'بنفسجي',
|
||||
'theme.pink': 'وردي',
|
||||
'theme.white': 'أبيض',
|
||||
|
||||
'home.seeAll': 'عرض الكل',
|
||||
'home.subtitle': 'يوميات مشاهدتي',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Auto',
|
||||
'theme.modeLight': 'Hell',
|
||||
'theme.modeDark': 'Dunkel',
|
||||
'theme.modeNight': 'Nacht',
|
||||
'theme.modeStarfield': 'Sternenhimmel',
|
||||
'settings.accentColor': 'Akzentfarbe',
|
||||
'settings.installApp': 'App installieren',
|
||||
'settings.installHint': 'Füge Bobinoo zum Startbildschirm oder Desktop hinzu.',
|
||||
'settings.installed': 'App installiert',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'Klicke in der Adressleiste rechts auf das Installationssymbol (ein Bildschirm mit Pfeil).\nOder: Browser-Menü ⋮ → „Bobinoo installieren“.\nBestätige mit „Installieren“.',
|
||||
'install.other': 'Öffne das Menü deines Browsers.\nSuche nach „App installieren“ oder „Zum Startbildschirm hinzufügen“.',
|
||||
'install.gotIt': 'Verstanden',
|
||||
'settings.themeX': 'Design {name}',
|
||||
'settings.pickColor': 'Eigene Farbe wählen',
|
||||
'settings.freeColor': 'Eigene Farbe',
|
||||
'settings.freeColorHint': 'Jede Farbe geht: Der Text passt sich an, damit er lesbar bleibt.',
|
||||
'settings.databases': 'Filmdatenbanken',
|
||||
'settings.anilistActive': 'Animes · aktiv',
|
||||
'settings.noConfig': 'Keine Einrichtung nötig.',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'morgen',
|
||||
'time.daysAgo': 'vor {n} Tg.',
|
||||
|
||||
'theme.amber': 'Bernstein',
|
||||
|
||||
'theme.red': 'Rot',
|
||||
'theme.orange': 'Orange',
|
||||
'theme.yellow': 'Gelb',
|
||||
'theme.lime': 'Limette',
|
||||
'theme.green': 'Grün',
|
||||
'theme.mint': 'Mint',
|
||||
'theme.cyan': 'Cyan',
|
||||
'theme.blue': 'Blau',
|
||||
'theme.indigo': 'Indigo',
|
||||
'theme.violet': 'Violett',
|
||||
'theme.pink': 'Rosa',
|
||||
'theme.white': 'Weiß',
|
||||
|
||||
'home.seeAll': 'Alle ansehen',
|
||||
'home.subtitle': 'Mein Watch-Tagebuch',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Auto',
|
||||
'theme.modeLight': 'Light',
|
||||
'theme.modeDark': 'Dark',
|
||||
'theme.modeNight': 'Night',
|
||||
'theme.modeStarfield': 'Starry',
|
||||
'settings.accentColor': 'Accent color',
|
||||
'settings.installApp': 'Install the app',
|
||||
'settings.installHint': 'Add Bobinoo to your home screen or desktop.',
|
||||
'settings.installed': 'App installed',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'In the address bar, click the install icon on the right (a screen with an arrow).\nOr: browser ⋮ menu → “Install Bobinoo”.\nConfirm with “Install”.',
|
||||
'install.other': 'Open your browser’s menu.\nLook for “Install app” or “Add to Home screen”.',
|
||||
'install.gotIt': 'Got it',
|
||||
'settings.themeX': '{name} theme',
|
||||
'settings.pickColor': 'Pick a custom color',
|
||||
'settings.freeColor': 'Custom color',
|
||||
'settings.freeColorHint': 'Any color works: text adjusts to stay readable.',
|
||||
'settings.databases': 'Movie databases',
|
||||
'settings.anilistActive': 'Anime · active',
|
||||
'settings.noConfig': 'No setup needed.',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'tomorrow',
|
||||
'time.daysAgo': '{n} d ago',
|
||||
|
||||
'theme.amber': 'Amber',
|
||||
|
||||
'theme.red': 'Red',
|
||||
'theme.orange': 'Orange',
|
||||
'theme.yellow': 'Yellow',
|
||||
'theme.lime': 'Lime',
|
||||
'theme.green': 'Green',
|
||||
'theme.mint': 'Mint',
|
||||
'theme.cyan': 'Cyan',
|
||||
'theme.blue': 'Blue',
|
||||
'theme.indigo': 'Indigo',
|
||||
'theme.violet': 'Violet',
|
||||
'theme.pink': 'Pink',
|
||||
'theme.white': 'White',
|
||||
|
||||
'home.seeAll': 'See all',
|
||||
'home.subtitle': 'My watch journal',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Auto',
|
||||
'theme.modeLight': 'Claro',
|
||||
'theme.modeDark': 'Oscuro',
|
||||
'theme.modeNight': 'Noche',
|
||||
'theme.modeStarfield': 'Estrellado',
|
||||
'settings.accentColor': 'Color de acento',
|
||||
'settings.installApp': 'Instalar la aplicación',
|
||||
'settings.installHint': 'Añade Bobinoo a tu pantalla de inicio o escritorio.',
|
||||
'settings.installed': 'Aplicación instalada',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'En la barra de direcciones, haz clic en el icono de instalación a la derecha (una pantalla con una flecha).\nO: menú ⋮ del navegador → «Instalar Bobinoo».\nConfirma con «Instalar».',
|
||||
'install.other': 'Abre el menú de tu navegador.\nBusca «Instalar aplicación» o «Añadir a la pantalla de inicio».',
|
||||
'install.gotIt': 'Entendido',
|
||||
'settings.themeX': 'Tema {name}',
|
||||
'settings.pickColor': 'Elegir un color libre',
|
||||
'settings.freeColor': 'Color libre',
|
||||
'settings.freeColorHint': 'Cualquier color: el texto se adapta para seguir siendo legible.',
|
||||
'settings.databases': 'Bases de datos de películas',
|
||||
'settings.anilistActive': 'Animes · activo',
|
||||
'settings.noConfig': 'No hace falta configurar nada.',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'mañana',
|
||||
'time.daysAgo': 'hace {n} d',
|
||||
|
||||
'theme.amber': 'Ámbar',
|
||||
|
||||
'theme.red': 'Rojo',
|
||||
'theme.orange': 'Naranja',
|
||||
'theme.yellow': 'Amarillo',
|
||||
'theme.lime': 'Lima',
|
||||
'theme.green': 'Verde',
|
||||
'theme.mint': 'Menta',
|
||||
'theme.cyan': 'Cian',
|
||||
'theme.blue': 'Azul',
|
||||
'theme.indigo': 'Índigo',
|
||||
'theme.violet': 'Violeta',
|
||||
'theme.pink': 'Rosa',
|
||||
'theme.white': 'Blanco',
|
||||
|
||||
'home.seeAll': 'Ver todo',
|
||||
'home.subtitle': 'Mi diario de lo que veo',
|
||||
|
||||
@@ -234,9 +234,6 @@ const dict = {
|
||||
'theme.modeAuto': 'Auto',
|
||||
'theme.modeLight': 'Clair',
|
||||
'theme.modeDark': 'Sombre',
|
||||
'theme.modeNight': 'Nuit',
|
||||
'theme.modeStarfield': 'Étoilé',
|
||||
'settings.accentColor': 'Couleur d\'accent',
|
||||
'settings.installApp': 'Installer l\'application',
|
||||
'settings.installHint': 'Ajoute Bobinoo à ton écran d\'accueil ou ton bureau.',
|
||||
'settings.installed': 'Application installée',
|
||||
@@ -294,10 +291,6 @@ const dict = {
|
||||
'install.desktop': 'Dans la barre d\'adresse, clique sur l\'icône d\'installation à droite (un écran avec une flèche).\nOu : menu ⋮ du navigateur → « Installer Bobinoo ».\nConfirme avec « Installer ».',
|
||||
'install.other': 'Ouvre le menu de ton navigateur.\nCherche « Installer l\'application » ou « Ajouter à l\'écran d\'accueil ».',
|
||||
'install.gotIt': 'Compris',
|
||||
'settings.themeX': 'Thème {name}',
|
||||
'settings.pickColor': 'Choisir une couleur libre',
|
||||
'settings.freeColor': 'Couleur libre',
|
||||
'settings.freeColorHint': 'N\'importe quelle couleur : le texte s\'adapte pour rester lisible.',
|
||||
'settings.databases': 'Bases de films',
|
||||
'settings.anilistActive': 'Animes · actif',
|
||||
'settings.noConfig': 'Aucune configuration nécessaire.',
|
||||
@@ -414,20 +407,7 @@ const dict = {
|
||||
'time.tomorrow': 'demain',
|
||||
'time.daysAgo': 'il y a {n} j',
|
||||
|
||||
'theme.amber': 'Ambre',
|
||||
|
||||
'theme.red': 'Rouge',
|
||||
'theme.orange': 'Orange',
|
||||
'theme.yellow': 'Jaune',
|
||||
'theme.lime': 'Citron',
|
||||
'theme.green': 'Vert',
|
||||
'theme.mint': 'Menthe',
|
||||
'theme.cyan': 'Cyan',
|
||||
'theme.blue': 'Bleu',
|
||||
'theme.indigo': 'Indigo',
|
||||
'theme.violet': 'Violet',
|
||||
'theme.pink': 'Rose',
|
||||
'theme.white': 'Blanc',
|
||||
|
||||
'home.seeAll': 'Tout voir',
|
||||
'home.subtitle': 'Mon journal de visionnage',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'ऑटो',
|
||||
'theme.modeLight': 'हल्का',
|
||||
'theme.modeDark': 'गहरा',
|
||||
'theme.modeNight': 'रात',
|
||||
'theme.modeStarfield': 'तारों भरा',
|
||||
'settings.accentColor': 'एक्सेंट रंग',
|
||||
'settings.installApp': 'ऐप इंस्टॉल करें',
|
||||
'settings.installHint': 'Bobinoo को अपनी होम स्क्रीन या डेस्कटॉप पर जोड़ें।',
|
||||
'settings.installed': 'ऐप इंस्टॉल हो गया',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'एड्रेस बार में दाईं ओर इंस्टॉल आइकन पर क्लिक करें (तीर वाली स्क्रीन)।\nया: ब्राउज़र का ⋮ मेनू → “Bobinoo इंस्टॉल करें”।\n“Install” से पुष्टि करें।',
|
||||
'install.other': 'अपने ब्राउज़र का मेनू खोलें।\n“ऐप इंस्टॉल करें” या “होम स्क्रीन में जोड़ें” खोजें।',
|
||||
'install.gotIt': 'समझ गया',
|
||||
'settings.themeX': '{name} थीम',
|
||||
'settings.pickColor': 'अपना रंग चुनें',
|
||||
'settings.freeColor': 'कस्टम रंग',
|
||||
'settings.freeColorHint': 'कोई भी रंग चलेगा: टेक्स्ट पढ़ने लायक बने रहने के लिए अपने-आप एडजस्ट होता है।',
|
||||
'settings.databases': 'फ़िल्म डेटाबेस',
|
||||
'settings.anilistActive': 'एनिमे · चालू',
|
||||
'settings.noConfig': 'कोई सेटअप ज़रूरी नहीं।',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'कल',
|
||||
'time.daysAgo': '{n} दिन पहले',
|
||||
|
||||
'theme.amber': 'अंबर',
|
||||
|
||||
'theme.red': 'लाल',
|
||||
'theme.orange': 'नारंगी',
|
||||
'theme.yellow': 'पीला',
|
||||
'theme.lime': 'नींबू हरा',
|
||||
'theme.green': 'हरा',
|
||||
'theme.mint': 'मिंट',
|
||||
'theme.cyan': 'सियान',
|
||||
'theme.blue': 'नीला',
|
||||
'theme.indigo': 'इंडिगो',
|
||||
'theme.violet': 'बैंगनी',
|
||||
'theme.pink': 'गुलाबी',
|
||||
'theme.white': 'सफ़ेद',
|
||||
|
||||
'home.seeAll': 'सभी देखें',
|
||||
'home.subtitle': 'मेरी वॉच डायरी',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Otomatis',
|
||||
'theme.modeLight': 'Terang',
|
||||
'theme.modeDark': 'Gelap',
|
||||
'theme.modeNight': 'Malam',
|
||||
'theme.modeStarfield': 'Berbintang',
|
||||
'settings.accentColor': 'Warna aksen',
|
||||
'settings.installApp': 'Pasang aplikasi',
|
||||
'settings.installHint': 'Tambahkan Bobinoo ke layar utama atau desktop kamu.',
|
||||
'settings.installed': 'Aplikasi terpasang',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'Di bilah alamat, klik ikon pasang di sebelah kanan (layar dengan panah).\nAtau: menu ⋮ browser → “Pasang Bobinoo”.\nKonfirmasi dengan “Pasang”.',
|
||||
'install.other': 'Buka menu browser kamu.\nCari “Pasang aplikasi” atau “Tambahkan ke layar utama”.',
|
||||
'install.gotIt': 'Mengerti',
|
||||
'settings.themeX': 'Tema {name}',
|
||||
'settings.pickColor': 'Pilih warna bebas',
|
||||
'settings.freeColor': 'Warna bebas',
|
||||
'settings.freeColorHint': 'Warna apa pun bisa: teks menyesuaikan supaya tetap terbaca.',
|
||||
'settings.databases': 'Database film',
|
||||
'settings.anilistActive': 'Anime · aktif',
|
||||
'settings.noConfig': 'Tidak perlu pengaturan.',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'besok',
|
||||
'time.daysAgo': '{n} h lalu',
|
||||
|
||||
'theme.amber': 'Amber',
|
||||
|
||||
'theme.red': 'Merah',
|
||||
'theme.orange': 'Oranye',
|
||||
'theme.yellow': 'Kuning',
|
||||
'theme.lime': 'Limau',
|
||||
'theme.green': 'Hijau',
|
||||
'theme.mint': 'Mint',
|
||||
'theme.cyan': 'Sian',
|
||||
'theme.blue': 'Biru',
|
||||
'theme.indigo': 'Nila',
|
||||
'theme.violet': 'Ungu',
|
||||
'theme.pink': 'Merah muda',
|
||||
'theme.white': 'Putih',
|
||||
|
||||
'home.seeAll': 'Lihat semua',
|
||||
'home.subtitle': 'Jurnal tontonanku',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Auto',
|
||||
'theme.modeLight': 'Chiaro',
|
||||
'theme.modeDark': 'Scuro',
|
||||
'theme.modeNight': 'Notte',
|
||||
'theme.modeStarfield': 'Stellato',
|
||||
'settings.accentColor': 'Colore accento',
|
||||
'settings.installApp': 'Installa l\'app',
|
||||
'settings.installHint': 'Aggiungi Bobinoo alla schermata home o al desktop.',
|
||||
'settings.installed': 'App installata',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'Nella barra degli indirizzi, clicca sull\'icona di installazione a destra (uno schermo con una freccia).\nOppure: menu ⋮ del browser → «Installa Bobinoo».\nConferma con «Installa».',
|
||||
'install.other': 'Apri il menu del browser.\nCerca «Installa app» o «Aggiungi a schermata Home».',
|
||||
'install.gotIt': 'Ho capito',
|
||||
'settings.themeX': 'Tema {name}',
|
||||
'settings.pickColor': 'Scegli un colore libero',
|
||||
'settings.freeColor': 'Colore libero',
|
||||
'settings.freeColorHint': 'Qualsiasi colore: il testo si adatta per restare leggibile.',
|
||||
'settings.databases': 'Database di film',
|
||||
'settings.anilistActive': 'Anime · attivo',
|
||||
'settings.noConfig': 'Nessuna configurazione necessaria.',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'domani',
|
||||
'time.daysAgo': '{n} g fa',
|
||||
|
||||
'theme.amber': 'Ambra',
|
||||
|
||||
'theme.red': 'Rosso',
|
||||
'theme.orange': 'Arancione',
|
||||
'theme.yellow': 'Giallo',
|
||||
'theme.lime': 'Lime',
|
||||
'theme.green': 'Verde',
|
||||
'theme.mint': 'Menta',
|
||||
'theme.cyan': 'Ciano',
|
||||
'theme.blue': 'Blu',
|
||||
'theme.indigo': 'Indaco',
|
||||
'theme.violet': 'Viola',
|
||||
'theme.pink': 'Rosa',
|
||||
'theme.white': 'Bianco',
|
||||
|
||||
'home.seeAll': 'Vedi tutto',
|
||||
'home.subtitle': 'Il mio diario di visione',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': '自動',
|
||||
'theme.modeLight': 'ライト',
|
||||
'theme.modeDark': 'ダーク',
|
||||
'theme.modeNight': 'ナイト',
|
||||
'theme.modeStarfield': '星空',
|
||||
'settings.accentColor': 'アクセントカラー',
|
||||
'settings.installApp': 'アプリをインストール',
|
||||
'settings.installHint': 'Bobinoo をホーム画面やデスクトップに追加します。',
|
||||
'settings.installed': 'アプリをインストール済み',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'アドレスバー右側のインストールアイコン(矢印付きの画面)をクリックします。\nまたは:ブラウザの ⋮ メニュー →「Bobinoo をインストール」。\n「インストール」で確定します。',
|
||||
'install.other': 'ブラウザのメニューを開きます。\n「アプリをインストール」または「ホーム画面に追加」を探します。',
|
||||
'install.gotIt': 'わかりました',
|
||||
'settings.themeX': '{name}テーマ',
|
||||
'settings.pickColor': '好きな色を選ぶ',
|
||||
'settings.freeColor': 'カスタムカラー',
|
||||
'settings.freeColorHint': 'どんな色でもOK。文字は読みやすいように自動で調整されます。',
|
||||
'settings.databases': '作品データベース',
|
||||
'settings.anilistActive': 'アニメ・有効',
|
||||
'settings.noConfig': '設定は不要です。',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': '明日',
|
||||
'time.daysAgo': '{n}日前',
|
||||
|
||||
'theme.amber': 'アンバー',
|
||||
|
||||
'theme.red': 'レッド',
|
||||
'theme.orange': 'オレンジ',
|
||||
'theme.yellow': 'イエロー',
|
||||
'theme.lime': 'ライム',
|
||||
'theme.green': 'グリーン',
|
||||
'theme.mint': 'ミント',
|
||||
'theme.cyan': 'シアン',
|
||||
'theme.blue': 'ブルー',
|
||||
'theme.indigo': 'インディゴ',
|
||||
'theme.violet': 'バイオレット',
|
||||
'theme.pink': 'ピンク',
|
||||
'theme.white': 'ホワイト',
|
||||
|
||||
'home.seeAll': 'すべて見る',
|
||||
'home.subtitle': 'わたしの視聴記録',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': '자동',
|
||||
'theme.modeLight': '밝게',
|
||||
'theme.modeDark': '어둡게',
|
||||
'theme.modeNight': '야간',
|
||||
'theme.modeStarfield': '별',
|
||||
'settings.accentColor': '강조 색상',
|
||||
'settings.installApp': '앱 설치',
|
||||
'settings.installHint': 'Bobinoo을 홈 화면이나 바탕화면에 추가하세요.',
|
||||
'settings.installed': '앱 설치됨',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': '주소창 오른쪽의 설치 아이콘(화살표가 있는 화면)을 클릭합니다.\n또는: 브라우저 ⋮ 메뉴 → “Bobinoo 설치”.\n“설치”로 확인합니다.',
|
||||
'install.other': '브라우저 메뉴를 엽니다.\n“앱 설치” 또는 “홈 화면에 추가”를 찾습니다.',
|
||||
'install.gotIt': '확인',
|
||||
'settings.themeX': '{name} 테마',
|
||||
'settings.pickColor': '원하는 색 고르기',
|
||||
'settings.freeColor': '사용자 지정 색',
|
||||
'settings.freeColorHint': '어떤 색이든 괜찮아요. 글자 색이 자동으로 맞춰져 잘 읽혀요.',
|
||||
'settings.databases': '작품 데이터베이스',
|
||||
'settings.anilistActive': '애니 · 사용 중',
|
||||
'settings.noConfig': '따로 설정할 필요 없어요.',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': '내일',
|
||||
'time.daysAgo': '{n}일 전',
|
||||
|
||||
'theme.amber': '앰버',
|
||||
|
||||
'theme.red': '빨강',
|
||||
'theme.orange': '주황',
|
||||
'theme.yellow': '노랑',
|
||||
'theme.lime': '라임',
|
||||
'theme.green': '초록',
|
||||
'theme.mint': '민트',
|
||||
'theme.cyan': '청록',
|
||||
'theme.blue': '파랑',
|
||||
'theme.indigo': '남색',
|
||||
'theme.violet': '보라',
|
||||
'theme.pink': '분홍',
|
||||
'theme.white': '하양',
|
||||
|
||||
'home.seeAll': '전체 보기',
|
||||
'home.subtitle': '나의 시청 일지',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Auto',
|
||||
'theme.modeLight': 'Licht',
|
||||
'theme.modeDark': 'Donker',
|
||||
'theme.modeNight': 'Nacht',
|
||||
'theme.modeStarfield': 'Sterren',
|
||||
'settings.accentColor': 'Accentkleur',
|
||||
'settings.installApp': 'App installeren',
|
||||
'settings.installHint': 'Voeg Bobinoo toe aan je startscherm of bureaublad.',
|
||||
'settings.installed': 'App geïnstalleerd',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'Klik in de adresbalk rechts op het installatiepictogram (een scherm met een pijl).\nOf: browsermenu ⋮ → “Bobinoo installeren”.\nBevestig met “Installeren”.',
|
||||
'install.other': 'Open het menu van je browser.\nZoek naar “App installeren” of “Toevoegen aan startscherm”.',
|
||||
'install.gotIt': 'Begrepen',
|
||||
'settings.themeX': 'Thema {name}',
|
||||
'settings.pickColor': 'Kies een eigen kleur',
|
||||
'settings.freeColor': 'Eigen kleur',
|
||||
'settings.freeColorHint': 'Elke kleur kan: de tekst past zich aan om leesbaar te blijven.',
|
||||
'settings.databases': 'Filmdatabases',
|
||||
'settings.anilistActive': 'Anime · actief',
|
||||
'settings.noConfig': 'Geen configuratie nodig.',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'morgen',
|
||||
'time.daysAgo': '{n} d geleden',
|
||||
|
||||
'theme.amber': 'Amber',
|
||||
|
||||
'theme.red': 'Rood',
|
||||
'theme.orange': 'Oranje',
|
||||
'theme.yellow': 'Geel',
|
||||
'theme.lime': 'Limoen',
|
||||
'theme.green': 'Groen',
|
||||
'theme.mint': 'Mint',
|
||||
'theme.cyan': 'Cyaan',
|
||||
'theme.blue': 'Blauw',
|
||||
'theme.indigo': 'Indigo',
|
||||
'theme.violet': 'Violet',
|
||||
'theme.pink': 'Roze',
|
||||
'theme.white': 'Wit',
|
||||
|
||||
'home.seeAll': 'Alles bekijken',
|
||||
'home.subtitle': 'Mijn kijkdagboek',
|
||||
|
||||
@@ -236,9 +236,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Auto',
|
||||
'theme.modeLight': 'Jasny',
|
||||
'theme.modeDark': 'Ciemny',
|
||||
'theme.modeNight': 'Noc',
|
||||
'theme.modeStarfield': 'Gwiazdy',
|
||||
'settings.accentColor': 'Kolor akcentu',
|
||||
'settings.installApp': 'Zainstaluj aplikację',
|
||||
'settings.installHint': 'Dodaj Bobinoo do ekranu głównego lub pulpitu.',
|
||||
'settings.installed': 'Aplikacja zainstalowana',
|
||||
@@ -296,10 +293,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'Na pasku adresu kliknij ikonę instalacji po prawej (ekran ze strzałką).\nLub: menu ⋮ przeglądarki → „Zainstaluj Bobinoo”.\nPotwierdź przyciskiem „Zainstaluj”.',
|
||||
'install.other': 'Otwórz menu przeglądarki.\nPoszukaj „Zainstaluj aplikację” lub „Dodaj do ekranu głównego”.',
|
||||
'install.gotIt': 'Rozumiem',
|
||||
'settings.themeX': 'Motyw {name}',
|
||||
'settings.pickColor': 'Wybierz własny kolor',
|
||||
'settings.freeColor': 'Własny kolor',
|
||||
'settings.freeColorHint': 'Dowolny kolor: tekst dopasuje się, by pozostać czytelny.',
|
||||
'settings.databases': 'Bazy filmów',
|
||||
'settings.anilistActive': 'Anime · aktywne',
|
||||
'settings.noConfig': 'Nie wymaga konfiguracji.',
|
||||
@@ -436,20 +429,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'jutro',
|
||||
'time.daysAgo': '{n} d temu',
|
||||
|
||||
'theme.amber': 'Bursztynowy',
|
||||
|
||||
'theme.red': 'Czerwony',
|
||||
'theme.orange': 'Pomarańczowy',
|
||||
'theme.yellow': 'Żółty',
|
||||
'theme.lime': 'Limonkowy',
|
||||
'theme.green': 'Zielony',
|
||||
'theme.mint': 'Miętowy',
|
||||
'theme.cyan': 'Cyjan',
|
||||
'theme.blue': 'Niebieski',
|
||||
'theme.indigo': 'Indygo',
|
||||
'theme.violet': 'Fioletowy',
|
||||
'theme.pink': 'Różowy',
|
||||
'theme.white': 'Biały',
|
||||
|
||||
'home.seeAll': 'Zobacz wszystko',
|
||||
'home.subtitle': 'Mój dziennik oglądania',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Auto',
|
||||
'theme.modeLight': 'Claro',
|
||||
'theme.modeDark': 'Escuro',
|
||||
'theme.modeNight': 'Noite',
|
||||
'theme.modeStarfield': 'Estrelado',
|
||||
'settings.accentColor': 'Cor de destaque',
|
||||
'settings.installApp': 'Instalar o app',
|
||||
'settings.installHint': 'Adicione o Bobinoo à tela inicial ou à área de trabalho.',
|
||||
'settings.installed': 'App instalado',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'Na barra de endereço, clique no ícone de instalação à direita (uma tela com uma seta).\nOu: menu ⋮ do navegador → “Instalar Bobinoo”.\nConfirme com “Instalar”.',
|
||||
'install.other': 'Abra o menu do seu navegador.\nProcure por “Instalar app” ou “Adicionar à tela inicial”.',
|
||||
'install.gotIt': 'Entendi',
|
||||
'settings.themeX': 'Tema {name}',
|
||||
'settings.pickColor': 'Escolher uma cor livre',
|
||||
'settings.freeColor': 'Cor livre',
|
||||
'settings.freeColorHint': 'Qualquer cor: o texto se adapta para continuar legível.',
|
||||
'settings.databases': 'Bases de filmes',
|
||||
'settings.anilistActive': 'Animes · ativo',
|
||||
'settings.noConfig': 'Nenhuma configuração necessária.',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'amanhã',
|
||||
'time.daysAgo': 'há {n} d',
|
||||
|
||||
'theme.amber': 'Âmbar',
|
||||
|
||||
'theme.red': 'Vermelho',
|
||||
'theme.orange': 'Laranja',
|
||||
'theme.yellow': 'Amarelo',
|
||||
'theme.lime': 'Lima',
|
||||
'theme.green': 'Verde',
|
||||
'theme.mint': 'Menta',
|
||||
'theme.cyan': 'Ciano',
|
||||
'theme.blue': 'Azul',
|
||||
'theme.indigo': 'Índigo',
|
||||
'theme.violet': 'Violeta',
|
||||
'theme.pink': 'Rosa',
|
||||
'theme.white': 'Branco',
|
||||
|
||||
'home.seeAll': 'Ver tudo',
|
||||
'home.subtitle': 'Meu diário do que assisto',
|
||||
|
||||
@@ -236,9 +236,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Авто',
|
||||
'theme.modeLight': 'Светлая',
|
||||
'theme.modeDark': 'Тёмная',
|
||||
'theme.modeNight': 'Ночь',
|
||||
'theme.modeStarfield': 'Звёзды',
|
||||
'settings.accentColor': 'Цвет акцента',
|
||||
'settings.installApp': 'Установить приложение',
|
||||
'settings.installHint': 'Добавь Bobinoo на главный экран или рабочий стол.',
|
||||
'settings.installed': 'Приложение установлено',
|
||||
@@ -296,10 +293,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'В адресной строке нажми значок установки справа (экран со стрелкой).\nИли: меню ⋮ браузера → «Установить Bobinoo».\nПодтверди кнопкой «Установить».',
|
||||
'install.other': 'Открой меню браузера.\nНайди «Установить приложение» или «Добавить на главный экран».',
|
||||
'install.gotIt': 'Понятно',
|
||||
'settings.themeX': 'Тема «{name}»',
|
||||
'settings.pickColor': 'Выбрать свой цвет',
|
||||
'settings.freeColor': 'Свой цвет',
|
||||
'settings.freeColorHint': 'Подойдёт любой цвет: текст подстроится, чтобы оставаться читаемым.',
|
||||
'settings.databases': 'Базы фильмов',
|
||||
'settings.anilistActive': 'Аниме · активно',
|
||||
'settings.noConfig': 'Настройка не нужна.',
|
||||
@@ -436,20 +429,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'завтра',
|
||||
'time.daysAgo': '{n} дн. назад',
|
||||
|
||||
'theme.amber': 'Янтарный',
|
||||
|
||||
'theme.red': 'Красная',
|
||||
'theme.orange': 'Оранжевая',
|
||||
'theme.yellow': 'Жёлтая',
|
||||
'theme.lime': 'Лаймовая',
|
||||
'theme.green': 'Зелёная',
|
||||
'theme.mint': 'Мятная',
|
||||
'theme.cyan': 'Бирюзовая',
|
||||
'theme.blue': 'Синяя',
|
||||
'theme.indigo': 'Индиго',
|
||||
'theme.violet': 'Фиолетовая',
|
||||
'theme.pink': 'Розовая',
|
||||
'theme.white': 'Белая',
|
||||
|
||||
'home.seeAll': 'Все',
|
||||
'home.subtitle': 'Мой дневник просмотров',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'อัตโนมัติ',
|
||||
'theme.modeLight': 'สว่าง',
|
||||
'theme.modeDark': 'มืด',
|
||||
'theme.modeNight': 'กลางคืน',
|
||||
'theme.modeStarfield': 'ดาว',
|
||||
'settings.accentColor': 'สีเน้น',
|
||||
'settings.installApp': 'ติดตั้งแอป',
|
||||
'settings.installHint': 'เพิ่ม Bobinoo ไปที่หน้าจอหลักหรือเดสก์ท็อปของคุณ',
|
||||
'settings.installed': 'ติดตั้งแอปแล้ว',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'ในแถบที่อยู่ คลิกไอคอนติดตั้งทางขวา (หน้าจอที่มีลูกศร)\nหรือ: เมนู ⋮ ของเบราว์เซอร์ → “ติดตั้ง Bobinoo”\nยืนยันด้วย “ติดตั้ง”',
|
||||
'install.other': 'เปิดเมนูของเบราว์เซอร์\nมองหา “ติดตั้งแอป” หรือ “เพิ่มไปยังหน้าจอหลัก”',
|
||||
'install.gotIt': 'เข้าใจแล้ว',
|
||||
'settings.themeX': 'ธีม {name}',
|
||||
'settings.pickColor': 'เลือกสีเอง',
|
||||
'settings.freeColor': 'สีที่เลือกเอง',
|
||||
'settings.freeColorHint': 'ใช้สีไหนก็ได้ ตัวอักษรจะปรับให้อ่านง่ายเสมอ',
|
||||
'settings.databases': 'ฐานข้อมูลภาพยนตร์',
|
||||
'settings.anilistActive': 'อนิเมะ · ใช้งานอยู่',
|
||||
'settings.noConfig': 'ไม่ต้องตั้งค่าใด ๆ',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'พรุ่งนี้',
|
||||
'time.daysAgo': '{n} วันที่แล้ว',
|
||||
|
||||
'theme.amber': 'อำพัน',
|
||||
|
||||
'theme.red': 'แดง',
|
||||
'theme.orange': 'ส้ม',
|
||||
'theme.yellow': 'เหลือง',
|
||||
'theme.lime': 'เขียวมะนาว',
|
||||
'theme.green': 'เขียว',
|
||||
'theme.mint': 'มินต์',
|
||||
'theme.cyan': 'ฟ้าน้ำทะเล',
|
||||
'theme.blue': 'น้ำเงิน',
|
||||
'theme.indigo': 'คราม',
|
||||
'theme.violet': 'ม่วง',
|
||||
'theme.pink': 'ชมพู',
|
||||
'theme.white': 'ขาว',
|
||||
|
||||
'home.seeAll': 'ดูทั้งหมด',
|
||||
'home.subtitle': 'บันทึกการดูของฉัน',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Otomatik',
|
||||
'theme.modeLight': 'Açık',
|
||||
'theme.modeDark': 'Koyu',
|
||||
'theme.modeNight': 'Gece',
|
||||
'theme.modeStarfield': 'Yıldızlı',
|
||||
'settings.accentColor': 'Vurgu rengi',
|
||||
'settings.installApp': 'Uygulamayı yükle',
|
||||
'settings.installHint': 'Bobinoo’yu ana ekranına veya masaüstüne ekle.',
|
||||
'settings.installed': 'Uygulama yüklendi',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'Adres çubuğunda sağdaki yükleme simgesine tıkla (oklu ekran).\nVeya: tarayıcı ⋮ menüsü → “Bobinoo’yu yükle”.\n“Yükle” ile onayla.',
|
||||
'install.other': 'Tarayıcının menüsünü aç.\n“Uygulamayı yükle” veya “Ana ekrana ekle” seçeneğini ara.',
|
||||
'install.gotIt': 'Anladım',
|
||||
'settings.themeX': '{name} tema',
|
||||
'settings.pickColor': 'Özel renk seç',
|
||||
'settings.freeColor': 'Özel renk',
|
||||
'settings.freeColorHint': 'Her renk olur: yazı okunaklı kalacak şekilde ayarlanır.',
|
||||
'settings.databases': 'Film veritabanları',
|
||||
'settings.anilistActive': 'Anime · etkin',
|
||||
'settings.noConfig': 'Kurulum gerekmez.',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'yarın',
|
||||
'time.daysAgo': '{n} g önce',
|
||||
|
||||
'theme.amber': 'Kehribar',
|
||||
|
||||
'theme.red': 'Kırmızı',
|
||||
'theme.orange': 'Turuncu',
|
||||
'theme.yellow': 'Sarı',
|
||||
'theme.lime': 'Limon',
|
||||
'theme.green': 'Yeşil',
|
||||
'theme.mint': 'Nane',
|
||||
'theme.cyan': 'Camgöbeği',
|
||||
'theme.blue': 'Mavi',
|
||||
'theme.indigo': 'Çivit',
|
||||
'theme.violet': 'Mor',
|
||||
'theme.pink': 'Pembe',
|
||||
'theme.white': 'Beyaz',
|
||||
|
||||
'home.seeAll': 'Tümünü gör',
|
||||
'home.subtitle': 'İzleme günlüğüm',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': 'Tự động',
|
||||
'theme.modeLight': 'Sáng',
|
||||
'theme.modeDark': 'Tối',
|
||||
'theme.modeNight': 'Đêm',
|
||||
'theme.modeStarfield': 'Sao',
|
||||
'settings.accentColor': 'Màu nhấn',
|
||||
'settings.installApp': 'Cài đặt ứng dụng',
|
||||
'settings.installHint': 'Thêm Bobinoo vào màn hình chính hoặc màn hình nền của bạn.',
|
||||
'settings.installed': 'Đã cài ứng dụng',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': 'Trên thanh địa chỉ, nhấp biểu tượng cài đặt bên phải (màn hình có mũi tên).\nHoặc: menu ⋮ của trình duyệt → “Cài đặt Bobinoo”.\nXác nhận bằng “Cài đặt”.',
|
||||
'install.other': 'Mở menu trình duyệt của bạn.\nTìm “Cài đặt ứng dụng” hoặc “Thêm vào màn hình chính”.',
|
||||
'install.gotIt': 'Đã hiểu',
|
||||
'settings.themeX': 'Giao diện {name}',
|
||||
'settings.pickColor': 'Chọn màu tùy chỉnh',
|
||||
'settings.freeColor': 'Màu tùy chỉnh',
|
||||
'settings.freeColorHint': 'Màu nào cũng được: chữ sẽ tự điều chỉnh để luôn dễ đọc.',
|
||||
'settings.databases': 'Cơ sở dữ liệu phim',
|
||||
'settings.anilistActive': 'Anime · đang hoạt động',
|
||||
'settings.noConfig': 'Không cần cấu hình.',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': 'ngày mai',
|
||||
'time.daysAgo': '{n} ngày trước',
|
||||
|
||||
'theme.amber': 'Hổ phách',
|
||||
|
||||
'theme.red': 'Đỏ',
|
||||
'theme.orange': 'Cam',
|
||||
'theme.yellow': 'Vàng',
|
||||
'theme.lime': 'Vàng chanh',
|
||||
'theme.green': 'Xanh lá',
|
||||
'theme.mint': 'Xanh bạc hà',
|
||||
'theme.cyan': 'Xanh lơ',
|
||||
'theme.blue': 'Xanh dương',
|
||||
'theme.indigo': 'Chàm',
|
||||
'theme.violet': 'Tím',
|
||||
'theme.pink': 'Hồng',
|
||||
'theme.white': 'Trắng',
|
||||
|
||||
'home.seeAll': 'Xem tất cả',
|
||||
'home.subtitle': 'Nhật ký xem phim của tôi',
|
||||
|
||||
@@ -232,9 +232,6 @@ const dict: Translations = {
|
||||
'theme.modeAuto': '自动',
|
||||
'theme.modeLight': '浅色',
|
||||
'theme.modeDark': '深色',
|
||||
'theme.modeNight': '夜间',
|
||||
'theme.modeStarfield': '星空',
|
||||
'settings.accentColor': '强调色',
|
||||
'settings.installApp': '安装应用',
|
||||
'settings.installHint': '将 Bobinoo 添加到主屏幕或桌面。',
|
||||
'settings.installed': '应用已安装',
|
||||
@@ -292,10 +289,6 @@ const dict: Translations = {
|
||||
'install.desktop': '在地址栏右侧点击安装图标(带箭头的屏幕)。\n或:浏览器 ⋮ 菜单 →“安装 Bobinoo”。\n点“安装”确认。',
|
||||
'install.other': '打开浏览器的菜单。\n查找“安装应用”或“添加到主屏幕”。',
|
||||
'install.gotIt': '知道了',
|
||||
'settings.themeX': '{name}主题',
|
||||
'settings.pickColor': '自选颜色',
|
||||
'settings.freeColor': '自定义颜色',
|
||||
'settings.freeColorHint': '任意颜色都行:文字会自动调整,保持清晰可读。',
|
||||
'settings.databases': '影视数据库',
|
||||
'settings.anilistActive': '动画 · 已启用',
|
||||
'settings.noConfig': '无需任何配置。',
|
||||
@@ -412,20 +405,7 @@ const dict: Translations = {
|
||||
'time.tomorrow': '明天',
|
||||
'time.daysAgo': '{n}天前',
|
||||
|
||||
'theme.amber': '琥珀色',
|
||||
|
||||
'theme.red': '红色',
|
||||
'theme.orange': '橙色',
|
||||
'theme.yellow': '黄色',
|
||||
'theme.lime': '青柠',
|
||||
'theme.green': '绿色',
|
||||
'theme.mint': '薄荷',
|
||||
'theme.cyan': '青色',
|
||||
'theme.blue': '蓝色',
|
||||
'theme.indigo': '靛蓝',
|
||||
'theme.violet': '紫色',
|
||||
'theme.pink': '粉色',
|
||||
'theme.white': '白色',
|
||||
|
||||
'home.seeAll': '查看全部',
|
||||
'home.subtitle': '我的观影日记',
|
||||
|
||||
+12
-86
@@ -2,10 +2,9 @@
|
||||
|
||||
/*
|
||||
* Thème Bobinoo — une salle de cinéma : fond « salle obscure » chaud (ou papier crème en clair),
|
||||
* une seule couleur d'accent (ambre par défaut, modifiable dans Réglages → Thème).
|
||||
* une seule couleur d'accent, l'ambre (fixe).
|
||||
* Aplats et filets de 1px, coins presque droits (billets, jaquettes, pellicule).
|
||||
* Polices : Gloock pour les titres, Onest pour tout le reste (texte, boutons, données),
|
||||
* Sometype Mono uniquement pour les codes d'épisode (S1 É19).
|
||||
* Une seule police, Inter, pour tout.
|
||||
*/
|
||||
@theme {
|
||||
--color-bg: #14120f;
|
||||
@@ -16,7 +15,7 @@
|
||||
--color-ink: #f1eadd;
|
||||
--color-ink-2: #bcb2a1;
|
||||
--color-ink-3: #948a79;
|
||||
/* Accent pour texte / icônes / filets (posé par JS selon la couleur choisie) */
|
||||
/* Accent pour texte / icônes / filets (version plus foncée en thème clair, pour rester lisible) */
|
||||
--color-accent: #f0a63a;
|
||||
/* Accent plein (boutons) */
|
||||
--color-accent-fill: #f0a63a;
|
||||
@@ -28,9 +27,7 @@
|
||||
--color-film: #0b0a08;
|
||||
--color-film-frame: #2e2820;
|
||||
|
||||
--font-sans: 'Onest Variable', 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
|
||||
--font-display: 'Gloock', 'Noto Serif', ui-serif, Georgia, serif;
|
||||
--font-mono: 'Sometype Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
|
||||
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
||||
|
||||
/* Coins presque droits partout (les classes rounded-xl / 2xl existantes suivent) */
|
||||
--radius-md: 0.3125rem;
|
||||
@@ -56,16 +53,11 @@
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
overscroll-behavior-y: none;
|
||||
}
|
||||
/* Titres de page et de section : Gloock (une seule graisse, jamais de faux gras) */
|
||||
h1,
|
||||
h2 {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 400;
|
||||
letter-spacing: -0.005em;
|
||||
}
|
||||
h2,
|
||||
h3 {
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.005em;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
/* Évite le zoom automatique d'iOS sur les champs (police >= 16px) */
|
||||
input,
|
||||
@@ -86,7 +78,7 @@
|
||||
* Apparences (thèmes de fond). Le bloc @theme ci-dessus reste la palette SOMBRE
|
||||
* par défaut (utilitaires Tailwind bg-bg/text-ink/border-line), et « dark » est
|
||||
* donc l'apparence par défaut. On redéfinit ici UNIQUEMENT les jetons de palette
|
||||
* pour chaque apparence — les jetons d'accent (--color-accent*) sont posés par JS.
|
||||
* pour chaque apparence (l'accent compris, plus foncé en clair pour rester lisible).
|
||||
*/
|
||||
:root[data-theme='light'] {
|
||||
--color-bg: #f1ebdf;
|
||||
@@ -97,6 +89,7 @@
|
||||
--color-ink: #1e1a15;
|
||||
--color-ink-2: #5a5246;
|
||||
--color-ink-3: #6e6557;
|
||||
--color-accent: #8f5410;
|
||||
/* Pellicule claire, couleur papier : les images vues gardent l'accent */
|
||||
--color-film: #e2d8c5;
|
||||
--color-film-frame: #cdc0a8;
|
||||
@@ -115,30 +108,6 @@
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
:root[data-theme='night'] {
|
||||
--color-bg: #000000;
|
||||
--color-surface: #0c0b09;
|
||||
--color-surface-2: #161411;
|
||||
--color-line: #24211c;
|
||||
--color-line-strong: #36322b;
|
||||
--color-ink: #f1eadd;
|
||||
--color-ink-2: #bcb2a1;
|
||||
--color-ink-3: #8e8574;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
:root[data-theme='starfield'] {
|
||||
--color-bg: #070b1c;
|
||||
--color-surface: #0c1226;
|
||||
--color-surface-2: #141c38;
|
||||
--color-line: #1f2a4d;
|
||||
--color-line-strong: #2d3a63;
|
||||
--color-ink: #eef1fb;
|
||||
--color-ink-2: #b4bbd6;
|
||||
--color-ink-3: #8089ab;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
/* Anti-flash : avant que le JS ne pose data-theme, un utilisateur en préférence
|
||||
claire ne doit pas voir la palette sombre le temps d'une frame. */
|
||||
@media (prefers-color-scheme: light) {
|
||||
@@ -151,68 +120,25 @@
|
||||
--color-ink: #1e1a15;
|
||||
--color-ink-2: #5a5246;
|
||||
--color-ink-3: #6e6557;
|
||||
--color-accent: #8f5410;
|
||||
--color-film: #e2d8c5;
|
||||
--color-film-frame: #cdc0a8;
|
||||
color-scheme: light;
|
||||
}
|
||||
}
|
||||
|
||||
/* Fond étoilé (apparence « bleu nuit »), 100% CSS, sans image ni réseau.
|
||||
Une couche fixe derrière le contenu : nébuleuse bleue + étoiles en tuiles. */
|
||||
:root[data-theme='starfield'] #root {
|
||||
background: transparent;
|
||||
}
|
||||
:root[data-theme='starfield'] body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
background-color: #070b1c;
|
||||
background-image:
|
||||
radial-gradient(1.5px 1.5px at 40px 60px, #ffffff, transparent),
|
||||
radial-gradient(1px 1px at 120px 20px, rgba(255, 255, 255, 0.8), transparent),
|
||||
radial-gradient(1px 1px at 200px 140px, #cbd5ff, transparent),
|
||||
radial-gradient(1.5px 1.5px at 260px 90px, rgba(255, 255, 255, 0.6), transparent),
|
||||
radial-gradient(1px 1px at 80px 190px, rgba(255, 255, 255, 0.7), transparent),
|
||||
radial-gradient(1px 1px at 300px 250px, #ffffff, transparent),
|
||||
radial-gradient(1.5px 1.5px at 340px 160px, rgba(203, 213, 255, 0.9), transparent),
|
||||
radial-gradient(1200px 600px at 70% -10%, rgba(45, 58, 99, 0.55), transparent 60%),
|
||||
radial-gradient(900px 500px at 15% 5%, rgba(31, 42, 77, 0.45), transparent 55%);
|
||||
background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat, no-repeat;
|
||||
background-size: 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px,
|
||||
100% 100%, 100% 100%;
|
||||
animation: starfield-twinkle 9s ease-in-out infinite;
|
||||
}
|
||||
@keyframes starfield-twinkle {
|
||||
0%,
|
||||
100% {
|
||||
opacity: 0.85;
|
||||
}
|
||||
50% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
:root[data-theme='starfield'] body::before {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Petit libellé (champs, chiffres clés) : texte normal, pas de capitales espacées */
|
||||
@utility eyebrow {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
line-height: 1.3;
|
||||
color: var(--color-ink-3);
|
||||
}
|
||||
|
||||
/* Code d'épisode façon minutage de banc de montage : « S1 É19 » */
|
||||
/* Code d'épisode : « S1 É19 », chiffres alignés */
|
||||
@utility code {
|
||||
font-family: var(--font-mono);
|
||||
font-weight: 500;
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
@layer components {
|
||||
|
||||
+5
-4
@@ -3,7 +3,7 @@ import type { BackupFile, Criteria, CustomList, MediaItem, MediaType, Settings,
|
||||
import { ALL_TOP_CATEGORIES, MEDIA_TYPES, STATUSES } from './constants'
|
||||
import { episodeCap } from './franchise'
|
||||
import { convertLegacyBackup, isLegacyBackup } from './legacyImport'
|
||||
import { DEFAULT_ACCENT, LEGACY_DEFAULT_ACCENT } from './theme'
|
||||
import { cleanThemeMode } from './theme'
|
||||
import {
|
||||
cleanText,
|
||||
isHexColor,
|
||||
@@ -159,9 +159,10 @@ export function normalizeSettings(raw: unknown): Partial<Settings> | undefined {
|
||||
const out: Partial<Settings> = {}
|
||||
if (raw.ratingScale === '5' || raw.ratingScale === '10') out.ratingScale = raw.ratingScale
|
||||
if (Array.isArray(raw.topCategories)) out.topCategories = ALL_TOP_CATEGORIES.filter((c) => (raw.topCategories as unknown[]).includes(c))
|
||||
// L'ancien rouge par défaut (jamais choisi exprès par la plupart) devient le nouvel ambre de Bobinoo
|
||||
if (isHexColor(raw.accentColor)) out.accentColor = raw.accentColor.toLowerCase() === LEGACY_DEFAULT_ACCENT ? DEFAULT_ACCENT : raw.accentColor.toLowerCase()
|
||||
if (raw.themeMode === 'auto' || raw.themeMode === 'light' || raw.themeMode === 'dark' || raw.themeMode === 'night' || raw.themeMode === 'starfield') out.themeMode = raw.themeMode
|
||||
// Couleur d'accent : plus réglable, gardée seulement pour ne pas casser les sauvegardes et la synchro
|
||||
if (isHexColor(raw.accentColor)) out.accentColor = raw.accentColor.toLowerCase()
|
||||
const themeMode = cleanThemeMode(raw.themeMode)
|
||||
if (themeMode) out.themeMode = themeMode
|
||||
const challenges = normalizeChallenges(raw.challenges)
|
||||
if (challenges) out.challenges = challenges
|
||||
if (Array.isArray(raw.statsHiddenMonths)) {
|
||||
|
||||
@@ -13,8 +13,7 @@ import { formatRating } from './utils'
|
||||
|
||||
const W = 1080
|
||||
const H = 1350
|
||||
const FONT = "'Onest Variable', 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif"
|
||||
const DISPLAY = "'Gloock', 'Noto Serif', Georgia, serif"
|
||||
const FONT = "'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif"
|
||||
|
||||
function cssVar(name: string, fallback: string) {
|
||||
const v = getComputedStyle(document.documentElement).getPropertyValue(name).trim()
|
||||
@@ -180,7 +179,7 @@ function drawBrand(ctx: CanvasRenderingContext2D, y: number) {
|
||||
const c = colors()
|
||||
ctx.textBaseline = 'alphabetic'
|
||||
ctx.textAlign = 'left'
|
||||
ctx.font = `400 34px ${DISPLAY}`
|
||||
ctx.font = `800 34px ${FONT}`
|
||||
const a = 'Bobin'
|
||||
const total = ctx.measureText('Bobinoo').width
|
||||
const x = (W - total) / 2
|
||||
@@ -192,7 +191,7 @@ function drawBrand(ctx: CanvasRenderingContext2D, y: number) {
|
||||
|
||||
async function newCanvas() {
|
||||
try {
|
||||
await Promise.all([document.fonts.load(`700 40px 'Onest Variable'`), document.fonts.load(`400 40px 'Onest Variable'`), document.fonts.load(`600 40px 'Onest Variable'`), document.fonts.load(`400 40px Gloock`)])
|
||||
await Promise.all([document.fonts.load(`700 40px Inter`), document.fonts.load(`400 40px Inter`), document.fonts.load(`600 40px Inter`)])
|
||||
} catch {
|
||||
/* police système en secours */
|
||||
}
|
||||
@@ -294,7 +293,7 @@ export async function renderItemCard(item: MediaItem, scale: RatingScale, credit
|
||||
const size = fitSize(ctx, title, 900, 104, 64, iw - yearW)
|
||||
ctx.fillStyle = c.ink
|
||||
if (size) {
|
||||
ctx.font = `400 ${size}px ${DISPLAY}`
|
||||
ctx.font = `800 ${size}px ${FONT}`
|
||||
ctx.fillText(title, ix, y)
|
||||
const tw = ctx.measureText(title).width
|
||||
if (year) {
|
||||
@@ -305,7 +304,7 @@ export async function renderItemCard(item: MediaItem, scale: RatingScale, credit
|
||||
}
|
||||
} else {
|
||||
// Titre très long : deux lignes plus petites
|
||||
ctx.font = `400 62px ${DISPLAY}`
|
||||
ctx.font = `800 62px ${FONT}`
|
||||
const lines = wrap(ctx, title, iw, 2)
|
||||
y -= 58
|
||||
lines.forEach((l, i) => ctx.fillText(l, ix, y + i * 64))
|
||||
@@ -353,7 +352,7 @@ export async function renderItemCard(item: MediaItem, scale: RatingScale, credit
|
||||
}
|
||||
ctx.textAlign = 'left'
|
||||
ctx.textBaseline = 'alphabetic'
|
||||
ctx.font = `400 30px ${DISPLAY}`
|
||||
ctx.font = `800 30px ${FONT}`
|
||||
const brandW = ctx.measureText('Bobinoo').width
|
||||
const bx = ix + iw - brandW
|
||||
ctx.fillStyle = c.ink
|
||||
@@ -389,7 +388,7 @@ export async function renderTopCard(title: string, entries: (MediaItem | undefin
|
||||
const bigW = 460
|
||||
const bigH = 690
|
||||
const top = 270
|
||||
ctx.font = `400 300px ${DISPLAY}`
|
||||
ctx.font = `800 300px ${FONT}`
|
||||
ctx.lineWidth = 5
|
||||
ctx.strokeStyle = c.accent
|
||||
ctx.textBaseline = 'alphabetic'
|
||||
|
||||
+24
-116
@@ -1,140 +1,50 @@
|
||||
import { t } from '../i18n'
|
||||
import type { ThemeMode } from '../types'
|
||||
/**
|
||||
* Thèmes de couleur : à partir d'une seule couleur, on calcule
|
||||
* - accent : version lisible comme TEXTE sur le fond du thème résolu
|
||||
* - accentFill : la couleur choisie, pour les boutons pleins
|
||||
* - onAccent : texte blanc ou noir sur ces boutons, selon ce qui se lit le mieux
|
||||
* Deux apparences seulement : clair et sombre (ou « auto », qui suit le navigateur).
|
||||
* Les couleurs, accent compris, sont fixes et vivent dans src/index.css.
|
||||
*/
|
||||
|
||||
export const DEFAULT_ACCENT = '#f0a63a'
|
||||
/** Rouge par défaut avant Bobinoo : relu comme le nouveau défaut (le préréglage « Rouge » a un code voisin). */
|
||||
export const LEGACY_DEFAULT_ACCENT = '#d11f2f'
|
||||
|
||||
export const THEME_PRESETS: { readonly name: string; color: string; accent?: string }[] = [
|
||||
{ get name() { return t('theme.amber') }, color: '#f0a63a' },
|
||||
{ get name() { return t('theme.red') }, color: '#d1202f', accent: '#ef4444' },
|
||||
{ get name() { return t('theme.orange') }, color: '#f97316' },
|
||||
{ get name() { return t('theme.yellow') }, color: '#facc15' },
|
||||
{ get name() { return t('theme.lime') }, color: '#a3e635' },
|
||||
{ get name() { return t('theme.green') }, color: '#22c55e' },
|
||||
{ get name() { return t('theme.mint') }, color: '#2dd4bf' },
|
||||
{ get name() { return t('theme.cyan') }, color: '#06b6d4' },
|
||||
{ get name() { return t('theme.blue') }, color: '#3b82f6' },
|
||||
{ get name() { return t('theme.indigo') }, color: '#6366f1' },
|
||||
{ get name() { return t('theme.violet') }, color: '#8b5cf6' },
|
||||
{ get name() { return t('theme.pink') }, color: '#ec4899' },
|
||||
{ get name() { return t('theme.white') }, color: '#e7e5e4' },
|
||||
]
|
||||
|
||||
/** Couleur de fond (canvas) de chaque thème résolu, pour calculer un accent lisible. */
|
||||
/** Couleur de fond de chaque apparence (barre du navigateur / de l'app installée). */
|
||||
const CANVAS: Record<Exclude<ThemeMode, 'auto'>, string> = {
|
||||
light: '#f1ebdf',
|
||||
dark: '#14120f',
|
||||
night: '#000000',
|
||||
starfield: '#070b1c',
|
||||
}
|
||||
|
||||
export const isHexColor = (v: unknown): v is string => typeof v === 'string' && /^#[0-9a-f]{6}$/i.test(v)
|
||||
|
||||
function rgb(hex: string): [number, number, number] {
|
||||
const n = parseInt(hex.slice(1), 16)
|
||||
return [(n >> 16) & 255, (n >> 8) & 255, n & 255]
|
||||
/** Anciennes apparences (Nuit, Étoilé) : relues comme « sombre ». */
|
||||
export function cleanThemeMode(v: unknown): ThemeMode | undefined {
|
||||
if (v === 'auto' || v === 'light' || v === 'dark') return v
|
||||
if (v === 'night' || v === 'starfield') return 'dark'
|
||||
return undefined
|
||||
}
|
||||
|
||||
function hex([r, g, b]: [number, number, number]): string {
|
||||
return '#' + [r, g, b].map((v) => Math.round(Math.min(255, Math.max(0, v))).toString(16).padStart(2, '0')).join('')
|
||||
}
|
||||
|
||||
function luminance(color: string): number {
|
||||
const [r, g, b] = rgb(color).map((v) => {
|
||||
const c = v / 255
|
||||
return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4
|
||||
})
|
||||
return 0.2126 * r + 0.7152 * g + 0.0722 * b
|
||||
}
|
||||
|
||||
export function contrast(a: string, b: string): number {
|
||||
const [x, y] = [luminance(a), luminance(b)].sort((m, n) => n - m)
|
||||
return (x + 0.05) / (y + 0.05)
|
||||
}
|
||||
|
||||
/**
|
||||
* Rend la couleur lisible comme texte sur le canvas donné :
|
||||
* - canvas clair → on assombrit vers le noir jusqu'à un contraste suffisant
|
||||
* - canvas sombre → on éclaircit vers le blanc (comme avant)
|
||||
*/
|
||||
function readableOn(color: string, canvas: string): string {
|
||||
const target = luminance(canvas) > 0.5 ? 0 : 255 // vers noir ou vers blanc
|
||||
let c = color
|
||||
const base = rgb(color)
|
||||
for (let m = 0; m <= 1 && contrast(c, canvas) < 4.8; m += 0.05) {
|
||||
c = hex(base.map((v) => v + (target - v) * m) as [number, number, number])
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
export interface ThemeColors {
|
||||
accent: string
|
||||
accentFill: string
|
||||
onAccent: string
|
||||
}
|
||||
|
||||
function themeColors(color: string, resolved: Exclude<ThemeMode, 'auto'>): ThemeColors {
|
||||
const fill = isHexColor(color) ? color.toLowerCase() : DEFAULT_ACCENT
|
||||
const canvas = CANVAS[resolved]
|
||||
const darkCanvas = '#17130d'
|
||||
const preset = THEME_PRESETS.find((p) => p.color === fill)
|
||||
// Les overrides d'accent des presets sont pensés pour un fond sombre :
|
||||
// sur fond clair on recalcule un accent assombri.
|
||||
const accent = resolved === 'light' ? readableOn(fill, canvas) : (preset?.accent ?? readableOn(fill, canvas))
|
||||
return {
|
||||
accent,
|
||||
accentFill: fill,
|
||||
onAccent: contrast('#ffffff', fill) >= contrast(darkCanvas, fill) ? '#ffffff' : darkCanvas,
|
||||
}
|
||||
}
|
||||
|
||||
/** Applique le thème à toute l'app (les classes Tailwind lisent ces variables). */
|
||||
export function applyTheme(accentColor: string, mode: ThemeMode) {
|
||||
/** Applique l'apparence à toute l'app. */
|
||||
export function applyTheme(mode: ThemeMode) {
|
||||
const resolved: Exclude<ThemeMode, 'auto'> =
|
||||
mode === 'auto'
|
||||
? window.matchMedia?.('(prefers-color-scheme: light)').matches
|
||||
? 'light'
|
||||
: 'dark'
|
||||
: mode
|
||||
document.documentElement.dataset.theme = resolved
|
||||
const c = themeColors(accentColor, resolved)
|
||||
const root = document.documentElement.style
|
||||
root.setProperty('--color-accent', c.accent)
|
||||
root.setProperty('--color-accent-fill', c.accentFill)
|
||||
root.setProperty('--color-on-accent', c.onAccent)
|
||||
// Couleur de la barre du navigateur / de l'app installée
|
||||
mode === 'auto' ? (window.matchMedia?.('(prefers-color-scheme: light)').matches ? 'light' : 'dark') : mode
|
||||
const root = document.documentElement
|
||||
root.dataset.theme = resolved
|
||||
// Couleurs d'accent posées par d'anciennes versions (couleur au choix) : on les retire
|
||||
for (const p of ['--color-accent', '--color-accent-fill', '--color-on-accent']) root.style.removeProperty(p)
|
||||
document.querySelector('meta[name="theme-color"]')?.setAttribute('content', CANVAS[resolved])
|
||||
// Contrôles natifs (dates, listes, barres de défilement) clairs ou sombres comme le thème
|
||||
document.querySelector('meta[name="color-scheme"]')?.setAttribute('content', resolved === 'light' ? 'light' : 'dark')
|
||||
// Retenu pour le prochain lancement : appliqué avant même le premier affichage (voir applySavedTheme)
|
||||
document.querySelector('meta[name="color-scheme"]')?.setAttribute('content', resolved)
|
||||
// Retenu pour le prochain lancement, lu par public/theme-boot.js avant même que l'app ne charge
|
||||
try {
|
||||
localStorage.setItem(BOOT_KEY, JSON.stringify({ color: accentColor, mode }))
|
||||
// Couleurs déjà calculées, lues par public/theme-boot.js avant même que l'app ne charge
|
||||
localStorage.setItem('azuucine:theme-css', JSON.stringify({ theme: resolved, accent: c.accent, fill: c.accentFill, on: c.onAccent, canvas: CANVAS[resolved] }))
|
||||
localStorage.setItem(BOOT_KEY, JSON.stringify({ mode }))
|
||||
localStorage.setItem('azuucine:theme-css', JSON.stringify({ theme: resolved, canvas: CANVAS[resolved] }))
|
||||
} catch {
|
||||
/* stockage indisponible : on garde le thème par défaut au lancement */
|
||||
/* stockage indisponible : thème par défaut au lancement */
|
||||
}
|
||||
}
|
||||
|
||||
const BOOT_KEY = 'azuucine:theme'
|
||||
const MODES: ThemeMode[] = ['auto', 'light', 'dark', 'night', 'starfield']
|
||||
|
||||
/**
|
||||
* Au lancement, avant tout affichage (chargement de la langue, de la session, de la bibliothèque) :
|
||||
* on remet tout de suite la couleur et le mode choisis la dernière fois, au lieu du thème par défaut.
|
||||
*/
|
||||
/** Au lancement, avant tout affichage : on remet tout de suite l'apparence choisie la dernière fois. */
|
||||
export function applySavedTheme() {
|
||||
try {
|
||||
const saved = JSON.parse(localStorage.getItem(BOOT_KEY) ?? 'null') as { color?: unknown; mode?: unknown } | null
|
||||
if (!saved || !isHexColor(saved.color) || !MODES.includes(saved.mode as ThemeMode)) return
|
||||
applyTheme(saved.color, saved.mode as ThemeMode)
|
||||
const saved = JSON.parse(localStorage.getItem(BOOT_KEY) ?? 'null') as { mode?: unknown } | null
|
||||
const mode = cleanThemeMode(saved?.mode)
|
||||
if (mode) applyTheme(mode)
|
||||
} catch {
|
||||
/* valeur illisible : thème par défaut */
|
||||
}
|
||||
@@ -144,6 +54,4 @@ export const THEME_MODES: { value: ThemeMode; readonly label: string }[] = [
|
||||
{ value: 'auto', get label() { return t('theme.modeAuto') } },
|
||||
{ value: 'light', get label() { return t('theme.modeLight') } },
|
||||
{ value: 'dark', get label() { return t('theme.modeDark') } },
|
||||
{ value: 'night', get label() { return t('theme.modeNight') } },
|
||||
{ value: 'starfield', get label() { return t('theme.modeStarfield') } },
|
||||
]
|
||||
+5
-4
@@ -8,10 +8,11 @@ import Root from './Root'
|
||||
import { applySavedTheme } from './lib/theme'
|
||||
import ErrorBoundary from './components/ErrorBoundary'
|
||||
import { installErrorReporting } from './lib/errorReporter'
|
||||
// Polices embarquées dans l'app (jeu « latin », suffisant pour le français) : aucun appel à Google Fonts, fonctionne hors-ligne
|
||||
import '@fontsource-variable/onest/wght.css'
|
||||
import '@fontsource/gloock/400.css'
|
||||
import '@fontsource/sometype-mono/400.css'
|
||||
// Police embarquée dans l'app (Inter, jeu « latin ») : aucun appel à Google Fonts, fonctionne hors-ligne
|
||||
import '@fontsource/inter/latin-400.css'
|
||||
import '@fontsource/inter/latin-500.css'
|
||||
import '@fontsource/inter/latin-600.css'
|
||||
import '@fontsource/inter/latin-700.css'
|
||||
import './index.css'
|
||||
|
||||
// Thème choisi (couleur + clair/sombre/étoilé) appliqué tout de suite, sans attendre le chargement de l'app
|
||||
|
||||
@@ -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 ? (
|
||||
|
||||
+4
-4
@@ -3,7 +3,7 @@ import { t } from './i18n'
|
||||
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, type ReactNode } from 'react'
|
||||
import type { CustomList, MediaInput, MediaItem, Settings, TopCategory } from './types'
|
||||
import { ALL_TOP_CATEGORIES } from './lib/constants'
|
||||
import { applyTheme, DEFAULT_ACCENT } from './lib/theme'
|
||||
import { applyTheme } from './lib/theme'
|
||||
import { normalizeItem, normalizeLists, normalizeSettings } from './lib/backup'
|
||||
import { CLOUD_TMDB, isPlausibleTmdbKey } from './lib/catalogApi'
|
||||
import { createSync, type SyncEngine, type SyncStatus } from './lib/cloud/sync'
|
||||
@@ -35,7 +35,7 @@ function persistLists(lists: CustomList[]) {
|
||||
/* ignore */
|
||||
}
|
||||
}
|
||||
const DEFAULT_SETTINGS: Settings = { ratingScale: '5', topCategories: ALL_TOP_CATEGORIES, accentColor: DEFAULT_ACCENT, themeMode: 'auto' }
|
||||
const DEFAULT_SETTINGS: Settings = { ratingScale: '5', topCategories: ALL_TOP_CATEGORIES, accentColor: '#f0a63a', themeMode: 'auto' }
|
||||
|
||||
/** Relit les réglages en ne gardant que des valeurs valides (le localStorage peut avoir été modifié). */
|
||||
function loadSettings(): Settings {
|
||||
@@ -274,12 +274,12 @@ export function MediaProvider({
|
||||
}, [cloudUser?.id])
|
||||
|
||||
// Thème de couleur appliqué avant l'affichage (pas de flash de rouge)
|
||||
useLayoutEffect(() => applyTheme(settings.accentColor, settings.themeMode), [settings.accentColor, settings.themeMode])
|
||||
useLayoutEffect(() => applyTheme(settings.themeMode), [settings.themeMode])
|
||||
// En mode « auto », suit le clair/sombre du navigateur en direct
|
||||
useEffect(() => {
|
||||
if (settings.themeMode !== 'auto' || !window.matchMedia) return
|
||||
const mq = window.matchMedia('(prefers-color-scheme: light)')
|
||||
const onChange = () => applyTheme(settingsRef.current.accentColor, 'auto')
|
||||
const onChange = () => applyTheme('auto')
|
||||
mq.addEventListener('change', onChange)
|
||||
return () => mq.removeEventListener('change', onChange)
|
||||
}, [settings.themeMode])
|
||||
|
||||
+1
-1
@@ -90,7 +90,7 @@ export type MediaInput = Omit<MediaItem, 'id' | 'createdAt' | 'updatedAt'>
|
||||
export type RatingScale = '5' | '10'
|
||||
|
||||
/** Apparence : auto suit le navigateur (clair/sombre), les autres sont forcés. */
|
||||
export type ThemeMode = 'auto' | 'light' | 'dark' | 'night' | 'starfield'
|
||||
export type ThemeMode = 'auto' | 'light' | 'dark'
|
||||
|
||||
/** Catégories de Top 5 */
|
||||
export type TopCategory = 'film' | 'serie' | 'anime' | 'kdrama' | 'cdrama'
|
||||
|
||||
Reference in new issue
Block a user