mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
feat(appearance): mark the Readability section as experimental
Transparency-off, density and per-size typography are best-effort while the token migration is ongoing, so the section carries an Experimental badge. Adds the i18n key across all locales.
This commit is contained in:
@@ -255,7 +255,15 @@ export default function AppearanceSettingsTab(): React.ReactElement {
|
||||
</Section>
|
||||
|
||||
{/* ── Readability ─────────────────────────────────────────── */}
|
||||
<Section title={tr('settings.appearance.readability', 'Readability')} icon={Eye}>
|
||||
<Section
|
||||
title={tr('settings.appearance.readability', 'Readability')}
|
||||
icon={Eye}
|
||||
badge={
|
||||
<span className="text-[10px] font-semibold uppercase tracking-wide px-2 py-0.5 rounded-full bg-warning-soft text-warning">
|
||||
{tr('settings.appearance.experimental', 'Experimental')}
|
||||
</span>
|
||||
}
|
||||
>
|
||||
<ToggleRow
|
||||
label={tr('settings.appearance.transparency', 'Transparency')}
|
||||
hint={tr('settings.appearance.transparencyHint', 'Glassy translucent surfaces. Turn off for solid, higher-contrast backgrounds.')}
|
||||
|
||||
@@ -4,15 +4,17 @@ import type { LucideIcon } from 'lucide-react'
|
||||
interface SectionProps {
|
||||
title: string
|
||||
icon: LucideIcon
|
||||
badge?: React.ReactNode
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
export default function Section({ title, icon: Icon, children }: SectionProps): React.ReactElement {
|
||||
export default function Section({ title, icon: Icon, badge, children }: SectionProps): React.ReactElement {
|
||||
return (
|
||||
<div className="rounded-xl border overflow-hidden bg-surface-card border-edge" style={{ marginBottom: 24 }}>
|
||||
<div className="px-6 py-4 border-b flex items-center gap-2 border-edge-secondary">
|
||||
<Icon className="w-5 h-5 text-content-secondary" />
|
||||
<h2 className="font-semibold text-content">{title}</h2>
|
||||
{badge}
|
||||
</div>
|
||||
<div className="p-6 space-y-4">
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user