The font's default is called Default (set by the theme) (#359)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 01:18:21 +00:00
parent 6f38c0ad9b
commit ea5c15cc58
4 changed files with 5 additions and 5 deletions

View File

@@ -52,10 +52,10 @@ function setTheme(name = theme.name, mode = theme.mode, save = false){
function saveTheme(){
document.cookie = `ipx_theme=${theme.name}.${theme.mode}; Path=/; Max-Age=31536000; SameSite=Lax`;
}
// A font chosen in Settings, kept as the theme is, each browser its own (#359). Theme's own is
// A font chosen in Settings, kept as the theme is, each browser its own (#359). The default is
// what each theme sets, Lucida Grande for Classic and the system's for Glass; the rest are on the
// device already or served by ipx, so choosing one downloads nothing.
const FONTS: Record<string, string> = {theme: "Theme's own", inter: 'Inter', system: 'System', serif: 'Serif', mono: 'Monospace'};
const FONTS: Record<string, string> = {theme: 'Default (set by the theme)', inter: 'Inter', system: 'System', serif: 'Serif', mono: 'Monospace'};
let font = 'theme';
function setFont(name = font, save = false){