Theme v2: import icon packs (install screen, packs in the theme choice)

Appearance > Icons gets Import icon pack: a *.icons.json file is parsed by the
runtime sanitizer and shown on an install screen (name, author, licence,
source, credits, every glyph, size, data only) before it joins the persisted
theme choice (packs, at most 8, validated natively for shape and size) and
the Icons picker. Imported packs can be removed again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
CRTkafa 2026-10-01 04:48:26 +07:00
parent d902d3f65a
commit a8710dfe02
7 changed files with 156 additions and 10 deletions

View file

@ -41,6 +41,9 @@ pub const MAX_THEME_BYTES: usize = 1_200_000;
pub const MAX_TOTAL_BYTES: usize = 4_000_000; pub const MAX_TOTAL_BYTES: usize = 4_000_000;
/// Theme names: 1-60 characters (`theme.schema.json` `name`). /// Theme names: 1-60 characters (`theme.schema.json` `name`).
pub const MAX_NAME_CHARS: usize = 60; pub const MAX_NAME_CHARS: usize = 60;
/// Icon packs the owner imported (theme engine v2), each a standalone pack document.
pub const MAX_PACKS: usize = 8;
pub const MAX_PACK_BYTES: usize = 150_000;
/// Override groups the panel may change on top of a theme. /// Override groups the panel may change on top of a theme.
pub const OVERRIDE_KEYS: [&str; 8] = ["font", "shape", "layout", "background", "effects", "colors", "css", "variants"]; pub const OVERRIDE_KEYS: [&str; 8] = ["font", "shape", "layout", "background", "effects", "colors", "css", "variants"];
@ -60,6 +63,10 @@ pub struct ThemeChoice {
/// otherwise a pack id (theme engine v2). A slug; an unknown pack falls back to the site's icons in the page. /// otherwise a pack id (theme engine v2). A slug; an unknown pack falls back to the site's icons in the page.
#[serde(default, skip_serializing_if = "Option::is_none")] #[serde(default, skip_serializing_if = "Option::is_none")]
pub icons: Option<String>, pub icons: Option<String>,
/// Icon packs the owner imported: data documents (path data, colored layers, small PNGs), checked
/// again by the page runtime's sanitizer; here only their shape and size.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub packs: Vec<Value>,
} }
/// A theme id: a lowercase slug of 1-40 characters (`theme.schema.json` `id`). /// A theme id: a lowercase slug of 1-40 characters (`theme.schema.json` `id`).
@ -79,7 +86,7 @@ fn doc_id(theme: &Value) -> Option<&str> {
impl ThemeChoice { impl ThemeChoice {
/// The site's own look, nothing customized. /// The site's own look, nothing customized.
pub fn default_for(site: &ThemeSite) -> Self { pub fn default_for(site: &ThemeSite) -> Self {
Self { preset: site.own().into(), accent: None, overrides: Map::new(), themes: Vec::new(), icons: None } Self { preset: site.own().into(), accent: None, overrides: Map::new(), themes: Vec::new(), icons: None, packs: Vec::new() }
} }
pub fn validate(&self, site: &ThemeSite) -> Result<(), String> { pub fn validate(&self, site: &ThemeSite) -> Result<(), String> {
@ -93,6 +100,22 @@ impl ThemeChoice {
return Err("VALIDATION: an icon pack id is a lowercase slug".into()); return Err("VALIDATION: an icon pack id is a lowercase slug".into());
} }
} }
if self.packs.len() > MAX_PACKS {
return Err("VALIDATION: too many icon packs".into());
}
let mut pack_ids: Vec<&str> = Vec::new();
for pack in &self.packs {
let object = pack.as_object().ok_or("VALIDATION: an icon pack must be an object")?;
let id = object.get("id").and_then(Value::as_str).ok_or("VALIDATION: an icon pack needs an id")?;
let name = object.get("name").and_then(Value::as_str).ok_or("VALIDATION: an icon pack needs a name")?;
if !valid_id(id) || pack_ids.contains(&id) || name.trim().is_empty() || name.chars().count() > MAX_NAME_CHARS || !object.get("glyphs").is_some_and(Value::is_object) {
return Err("VALIDATION: icon packs have unique slug ids, a name and glyphs".into());
}
if serde_json::to_vec(pack).map(|bytes| bytes.len()).unwrap_or(usize::MAX) > MAX_PACK_BYTES {
return Err("VALIDATION: icon pack is too large".into());
}
pack_ids.push(id);
}
if self.themes.len() > MAX_THEMES { if self.themes.len() > MAX_THEMES {
return Err("VALIDATION: too many themes".into()); return Err("VALIDATION: too many themes".into());
} }
@ -148,7 +171,7 @@ impl ThemeChoice {
let base = if id == self.preset || !self.knows(site, id) { let base = if id == self.preset || !self.knows(site, id) {
self.clone() self.clone()
} else { } else {
ThemeChoice { preset: id.into(), accent: None, overrides: Map::new(), themes: self.themes.clone(), icons: self.icons.clone() } ThemeChoice { preset: id.into(), accent: None, overrides: Map::new(), themes: self.themes.clone(), icons: self.icons.clone(), packs: self.packs.clone() }
}; };
let preset = base.preset.clone(); let preset = base.preset.clone();
let themes = base.themes.into_iter().filter(|theme| doc_id(theme) == Some(preset.as_str())).collect(); let themes = base.themes.into_iter().filter(|theme| doc_id(theme) == Some(preset.as_str())).collect();
@ -321,6 +344,14 @@ mod tests {
assert!(with(json!({ "preset": "site", "icons": "Bad Pack!" })).is_err()); assert!(with(json!({ "preset": "site", "icons": "Bad Pack!" })).is_err());
assert!(with(json!({ "preset": "site", "overrides": { "variants": { "nav": "top" } } })).is_ok(), "layout variants are an override group"); assert!(with(json!({ "preset": "site", "overrides": { "variants": { "nav": "top" } } })).is_ok(), "layout variants are an override group");
assert_eq!(picked.for_theme(&SITE, "nord").icons.as_deref(), Some("wb-pixel"), "the icon pick is global"); assert_eq!(picked.for_theme(&SITE, "nord").icons.as_deref(), Some("wb-pixel"), "the icon pick is global");
let pack = json!({ "id": "retro", "name": "Retro", "glyphs": { "home": { "d": "M0 0h1" } } });
let with_pack = with(json!({ "preset": "site", "icons": "retro", "packs": [pack.clone()] })).unwrap();
assert_eq!(with_pack.packs.len(), 1);
assert_eq!(with_pack.for_theme(&SITE, "nord").packs.len(), 1, "imported packs are global");
assert!(with(json!({ "preset": "site", "packs": [pack.clone(), pack] })).is_err(), "pack ids are unique");
assert!(with(json!({ "preset": "site", "packs": [{ "id": "x", "name": "X" }] })).is_err(), "a pack has glyphs");
let big = json!({ "id": "big", "name": "Big", "glyphs": { "home": { "d": "M".repeat(MAX_PACK_BYTES) } } });
assert!(with(json!({ "preset": "site", "packs": [big] })).is_err(), "a pack is bounded");
} }
#[test] #[test]

View file

@ -3,13 +3,17 @@
// to every site tab; the shell's theme store and the panel edit it. A site brings its built-in // to every site tab; the shell's theme store and the panel edit it. A site brings its built-in
// themes (`createThemeCatalog(builtins)`; the first one is the site's own look, the default). Pure. // themes (`createThemeCatalog(builtins)`; the first one is the site's own look, the default). Pure.
import { sanitizeIconPack, type IconPack } from './themeIcons.ts';
import { applyOverrides, isHex, sanitizeSpec, type Palette, type ThemeOverrides, type ThemeSpec } from './themeSpec.ts'; import { applyOverrides, isHex, sanitizeSpec, type Palette, type ThemeOverrides, type ThemeSpec } from './themeSpec.ts';
/** /**
* What is persisted natively and handed to the page runtime. `icons` is the owner's icon pack (theme * What is persisted natively and handed to the page runtime. `icons` is the owner's icon pack (theme
* engine v2): absent follows the theme's suggestion, `site` keeps the site's own icons, else a pack id. * engine v2): absent follows the theme's suggestion, `site` keeps the site's own icons, else a pack id.
*/ */
export type ThemeChoice = { preset: string; accent: string | null; overrides: ThemeOverrides; themes: ThemeSpec[]; icons?: string }; export type ThemeChoice = { preset: string; accent: string | null; overrides: ThemeOverrides; themes: ThemeSpec[]; icons?: string; packs?: IconPack[] };
/** Icon packs the owner imported (standalone documents, kept with the choice so every site tab has them). */
export const MAX_USER_PACKS = 8;
/** Imported themes kept in a choice (the JSON Schema of the native side says the same). */ /** Imported themes kept in a choice (the JSON Schema of the native side says the same). */
export const MAX_USER_THEMES = 24; export const MAX_USER_THEMES = 24;
@ -57,7 +61,14 @@ export function createThemeCatalog(builtins: readonly ThemeSpec[]): ThemeCatalog
if (value && typeof value === 'object' && !Array.isArray(value)) (overrides as Record<string, unknown>)[key] = value; if (value && typeof value === 'object' && !Array.isArray(value)) (overrides as Record<string, unknown>)[key] = value;
} }
const icons = typeof source.icons === 'string' && /^[a-z0-9-]{1,40}$/.test(source.icons) && source.icons !== 'theme' ? source.icons : undefined; const icons = typeof source.icons === 'string' && /^[a-z0-9-]{1,40}$/.test(source.icons) && source.icons !== 'theme' ? source.icons : undefined;
return { preset, accent, overrides, themes, ...(icons ? { icons } : {}) }; const packs: IconPack[] = [];
if (Array.isArray(source.packs)) {
for (const raw of source.packs.slice(0, MAX_USER_PACKS)) {
const pack = sanitizeIconPack(raw);
if (pack && !packs.some(item => item.id === pack.id)) packs.push(pack);
}
}
return { preset, accent, overrides, themes, ...(icons ? { icons } : {}), ...(packs.length ? { packs } : {}) };
} }
const base = (choice: ThemeChoice) => choice.themes.find(item => item.id === choice.preset) ?? builtins.find(item => item.id === choice.preset) ?? first; const base = (choice: ThemeChoice) => choice.themes.find(item => item.id === choice.preset) ?? builtins.find(item => item.id === choice.preset) ?? first;
@ -73,11 +84,11 @@ export function createThemeCatalog(builtins: readonly ThemeSpec[]): ThemeCatalog
/** The choice a tab's theme id stands for (themeScopes: account and pane themes): the global choice itself, or that theme without customizations. */ /** The choice a tab's theme id stands for (themeScopes: account and pane themes): the global choice itself, or that theme without customizations. */
export function choiceForId(global: ThemeChoice, id: string): ThemeChoice { export function choiceForId(global: ThemeChoice, id: string): ThemeChoice {
return id === global.preset ? global : { preset: id, accent: null, overrides: {}, themes: global.themes, ...(global.icons ? { icons: global.icons } : {}) }; return id === global.preset ? global : { preset: id, accent: null, overrides: {}, themes: global.themes, ...(global.icons ? { icons: global.icons } : {}), ...(global.packs?.length ? { packs: global.packs } : {}) };
} }
/** The shape persisted natively: empty groups are dropped so "no override" stays unambiguous. */ /** The shape persisted natively: empty groups are dropped so "no override" stays unambiguous. */
export function serializeChoice(choice: ThemeChoice) { export function serializeChoice(choice: ThemeChoice) {
const overrides = Object.fromEntries(Object.entries(choice.overrides).filter(([, value]) => value && Object.keys(value).length)); const overrides = Object.fromEntries(Object.entries(choice.overrides).filter(([, value]) => value && Object.keys(value).length));
return { preset: choice.preset, accent: choice.accent, ...(Object.keys(overrides).length ? { overrides } : {}), ...(choice.themes.length ? { themes: choice.themes } : {}), ...(choice.icons ? { icons: choice.icons } : {}) }; return { preset: choice.preset, accent: choice.accent, ...(Object.keys(overrides).length ? { overrides } : {}), ...(choice.themes.length ? { themes: choice.themes } : {}), ...(choice.icons ? { icons: choice.icons } : {}), ...(choice.packs?.length ? { packs: choice.packs } : {}) };
} }

View file

@ -17,6 +17,8 @@ import { shell, type WebParams } from '../frame/state.ts';
import { assign } from '../frame/themeScopes.ts'; import { assign } from '../frame/themeScopes.ts';
import { tabProfile } from '../profileModel.ts'; import { tabProfile } from '../profileModel.ts';
import { Button, ColorField, Row, Section, Segmented, Select, Slider, Toggle, useSettingsQuery, type Option } from './controls.tsx'; import { Button, ColorField, Row, Section, Segmented, Select, Slider, Toggle, useSettingsQuery, type Option } from './controls.tsx';
import { IconPackImport, IconPackReview } from './IconPackInstall.tsx';
import type { IconPack } from '../../../runtime/src/themeIcons.ts';
import { bytesLabel, defaultWeights, loadCatalog, weightsLabel } from './fonts/catalog.ts'; import { bytesLabel, defaultWeights, loadCatalog, weightsLabel } from './fonts/catalog.ts';
import { FontRoles } from './fonts/FontRoles.tsx'; import { FontRoles } from './fonts/FontRoles.tsx';
import { CustomCssEditor } from './Plugins.tsx'; import { CustomCssEditor } from './Plugins.tsx';
@ -88,6 +90,7 @@ export function Appearance({ notify }: { notify: Notify }) {
const { ready, choice, scopes } = useThemeState(); const { ready, choice, scopes } = useThemeState();
const [importing, setImporting] = useState(false); const [importing, setImporting] = useState(false);
const [asking, setAsking] = useState<{ theme: ThemeSpec; families: string[] } | null>(null); const [asking, setAsking] = useState<{ theme: ThemeSpec; families: string[] } | null>(null);
const [packReview, setPackReview] = useState<{ pack: IconPack; warnings: string[]; bytes: number } | null>(null);
const query = useSettingsQuery(); const query = useSettingsQuery();
if (!ready) return null; if (!ready) return null;
@ -206,10 +209,16 @@ export function Appearance({ notify }: { notify: Notify }) {
<Row label={t('wb.appearance.accent')} hint={t('wb.appearance.accentHint')} keywords="color colour highlight link" wide> <Row label={t('wb.appearance.accent')} hint={t('wb.appearance.accentHint')} keywords="color colour highlight link" wide>
<ColorField label={t('wb.appearance.accentColor')} value={choice.accent} swatches={[...themes.accents]} autoLabel={t('wb.appearance.theme')} onChange={accent => void update({ ...choice, accent })}/> <ColorField label={t('wb.appearance.accentColor')} value={choice.accent} swatches={[...themes.accents]} autoLabel={t('wb.appearance.theme')} onChange={accent => void update({ ...choice, accent })}/>
</Row> </Row>
{themes.iconPacks?.length ? <Row label={t('wb.appearance.icons')} hint={t('wb.appearance.iconsHint')} keywords="icon pack glyphs symbols pixel"> {themes.iconPacks?.length ? <Row label={t('wb.appearance.icons')} hint={t('wb.appearance.iconsHint')} keywords="icon pack glyphs symbols pixel import" wide>
<div className="bt-inline">
<Select label={t('wb.appearance.icons')} value={choice.icons ?? 'theme'} width={220} <Select label={t('wb.appearance.icons')} value={choice.icons ?? 'theme'} width={220}
onChange={icons => void update({ ...choice, icons: icons === 'theme' ? undefined : icons })} onChange={icons => void update({ ...choice, icons: icons === 'theme' ? undefined : icons })}
options={[{ value: 'theme', label: t('wb.appearance.icons.theme') }, { value: 'site', label: t('wb.appearance.icons.site') }, ...themes.iconPacks.map(pack => ({ value: pack.id, label: pack.name }))]}/> options={[{ value: 'theme', label: t('wb.appearance.icons.theme') }, { value: 'site', label: t('wb.appearance.icons.site') }, ...themes.iconPacks.filter(pack => !choice.packs?.some(item => item.id === pack.id)).map(pack => ({ value: pack.id, label: pack.name })), ...(choice.packs ?? []).map(pack => ({ value: pack.id, label: pack.name }))]}/>
<IconPackImport onError={message => notify(message, true)} onParsed={(pack, warnings, bytes) => setPackReview({ pack, warnings, bytes })}/>
</div>
{choice.packs?.length ? <div className="bt-inline wb-pack-list" aria-label={t('wb.appearance.icons.imported')}>{choice.packs.map(pack => <Button key={pack.id} size="sm" tone="ghost" onClick={() => void update({ ...choice, packs: choice.packs!.filter(item => item.id !== pack.id), ...(choice.icons === pack.id ? { icons: undefined } : {}) }).then(() => notify(t('wb.appearance.icons.removed', { name: pack.name })))}>{t('wb.appearance.icons.remove', { name: pack.name })}</Button>)}</div> : null}
{packReview && <IconPackReview {...packReview} replaces={!!choice.packs?.some(item => item.id === packReview.pack.id)} onCancel={() => setPackReview(null)}
onInstall={() => { const { pack } = packReview; setPackReview(null); void update({ ...choice, packs: [...(choice.packs ?? []).filter(item => item.id !== pack.id), pack], icons: pack.id }).then(() => notify(t('wb.appearance.icons.installed', { name: pack.name }))); }}/>}
</Row> : null} </Row> : null}
<Row label={t('wb.appearance.fonts')} hint={t('wb.appearance.fontsHint')} <Row label={t('wb.appearance.fonts')} hint={t('wb.appearance.fontsHint')}
keywords="typeface typography family font google fonts post text heading numbers code interface window dialogs" wide> keywords="typeface typography family font google fonts post text heading numbers code interface window dialogs" wide>

View file

@ -0,0 +1,56 @@
// Importing an icon pack (a `*.icons.json` document) in Appearance: pick or drop the file, see what
// it is (name, author, licence, source, credits, every glyph, size, "data only") and install it into
// the theme choice, from where it reaches every site tab and the Icons picker. Nothing installs
// without this screen; a pack is data (path data, colored layers, small PNGs), never code.
import { useRef, useState } from 'react';
import { parseIconPackJson, type IconPack } from '../../../runtime/src/themeIcons.ts';
import { GlyphPaths } from '../frame/iconPack.tsx';
import { t } from '../frame/i18n.ts';
import { Button } from './controls.tsx';
const kb = (bytes: number) => `${Math.max(1, Math.round(bytes / 1024))} KB`;
/** The install screen for one parsed pack. */
export function IconPackReview({ pack, warnings, bytes, replaces, onInstall, onCancel }: { pack: IconPack; warnings: string[]; bytes: number; replaces: boolean; onInstall(): void; onCancel(): void }) {
const names = Object.keys(pack.glyphs) as Array<keyof IconPack['glyphs']>;
return <div className="bt-import wb-ask wb-pack-review" role="alertdialog" aria-label={t('wb.appearance.icons.review', { name: pack.name })}>
<div className="bt-import-drop">
<strong>{t('wb.appearance.icons.review', { name: pack.name })}</strong>
<dl className="wb-pack-facts">
<dt>{t('wb.appearance.icons.author')}</dt><dd>{pack.author || '—'}</dd>
<dt>{t('wb.appearance.icons.license')}</dt><dd>{pack.license}</dd>
{pack.source && <><dt>{t('wb.appearance.icons.source')}</dt><dd>{pack.source}</dd></>}
{pack.credits && <><dt>{t('wb.appearance.icons.credits')}</dt><dd>{pack.credits}</dd></>}
<dt>{t('wb.appearance.icons.size')}</dt><dd>{t('wb.appearance.icons.sizeValue', { count: names.length, size: kb(bytes) })}</dd>
</dl>
<p>{t('wb.appearance.icons.dataOnly')}</p>
<div className="wb-pack-grid" aria-hidden="true">
{names.map(name => <span key={name} title={name}><svg className="bt-glyph" viewBox="0 0 24 24"><GlyphPaths glyph={pack.glyphs[name]!} pack={pack}/></svg></span>)}
</div>
{warnings.map(warning => <p key={warning} className="wb-pack-warning">{warning}</p>)}
{replaces && <p>{t('wb.appearance.icons.replaces', { name: pack.name })}</p>}
<div className="bt-inline"><Button size="sm" tone="primary" onClick={onInstall}>{t('wb.appearance.icons.install')}</Button><Button size="sm" tone="ghost" onClick={onCancel}>{t('wb.common.cancel')}</Button></div>
</div>
</div>;
}
/** The "Import icon pack…" button: reads a picked file and hands the parsed pack (or an error) back. */
export function IconPackImport({ onParsed, onError }: { onParsed(pack: IconPack, warnings: string[], bytes: number): void; onError(message: string): void }) {
const input = useRef<HTMLInputElement>(null);
const [busy, setBusy] = useState(false);
async function read(file: File | undefined) {
if (!file) return;
setBusy(true);
try {
const text = await file.text();
const parsed = parseIconPackJson(text);
if ('error' in parsed) onError(parsed.error);
else onParsed(parsed.pack, parsed.warnings, text.length);
} finally { setBusy(false); if (input.current) input.current.value = ''; }
}
return <>
<input ref={input} type="file" accept=".json,application/json" hidden onChange={event => void read(event.target.files?.[0])}/>
<Button size="sm" tone="ghost" disabled={busy} onClick={() => input.current?.click()}>{t('wb.appearance.icons.import')}</Button>
</>;
}

View file

@ -388,3 +388,12 @@
.btp-hero { padding: 40px 36px 34px; } .btp-hero { padding: 40px 36px 34px; }
} }
@media (prefers-reduced-motion: reduce) { .btp-highlight { transition: none; } .btp-highlight:hover { transform: none; } } @media (prefers-reduced-motion: reduce) { .btp-highlight { transition: none; } .btp-highlight:hover { transform: none; } }
/* Icon pack install screen (Appearance > Icons > Import icon pack) */
.wb-pack-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 4px 0; font-size: 12px; }
.wb-pack-facts dt { color: var(--c-text-2, inherit); opacity: .75; }
.wb-pack-facts dd { margin: 0; overflow-wrap: anywhere; }
.wb-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); gap: 6px; padding: 8px 0; }
.wb-pack-grid span { display: grid; place-items: center; height: 32px; border-radius: 8px; background: rgba(127, 127, 127, .08); }
.wb-pack-grid .bt-glyph { width: 20px; height: 20px; }
.wb-pack-warning { color: var(--c-warn, #d9a441); font-size: 12px; }
.wb-pack-list { flex-wrap: wrap; margin-top: 6px; }

View file

@ -10,6 +10,21 @@ export const PANEL_MESSAGES = {
'wb.appearance.icons': 'Icons', 'wb.appearance.icons': 'Icons',
'wb.appearance.iconsHint': 'The icons of the site and of this window. A theme may suggest a pack; your pick wins.', 'wb.appearance.iconsHint': 'The icons of the site and of this window. A theme may suggest a pack; your pick wins.',
'wb.appearance.icons.theme': 'Follow the theme', 'wb.appearance.icons.theme': 'Follow the theme',
'wb.appearance.icons.import': 'Import icon pack…',
'wb.appearance.icons.review': 'Install the icon pack “{name}”?',
'wb.appearance.icons.author': 'Author',
'wb.appearance.icons.license': 'Licence',
'wb.appearance.icons.source': 'Source',
'wb.appearance.icons.credits': 'Credits',
'wb.appearance.icons.size': 'Contents',
'wb.appearance.icons.sizeValue': '{count} icons, {size}',
'wb.appearance.icons.dataOnly': 'Data only: drawings, no code. The icons of the site and of this window change when you pick the pack.',
'wb.appearance.icons.replaces': 'An icon pack called “{name}” is already installed; this replaces it.',
'wb.appearance.icons.install': 'Install',
'wb.appearance.icons.installed': 'Installed the icon pack “{name}”.',
'wb.appearance.icons.remove': 'Remove {name}',
'wb.appearance.icons.removed': 'Removed the icon pack “{name}”.',
'wb.appearance.icons.imported': 'Imported icon packs',
'wb.appearance.icons.site': 'The site\'s own icons', 'wb.appearance.icons.site': 'The site\'s own icons',
'wb.appearance.accountTheme': 'Account theme · {name}', 'wb.appearance.accountTheme': 'Account theme · {name}',
'wb.appearance.accountsHint': 'Every pane of an account shows its theme unless the pane has its own.', 'wb.appearance.accountsHint': 'Every pane of an account shows its theme unless the pane has its own.',

View file

@ -403,6 +403,21 @@
"wb.appearance.icons": "Icons", "wb.appearance.icons": "Icons",
"wb.appearance.iconsHint": "The icons of the site and of this window. A theme may suggest a pack; your pick wins.", "wb.appearance.iconsHint": "The icons of the site and of this window. A theme may suggest a pack; your pick wins.",
"wb.appearance.icons.theme": "Follow the theme", "wb.appearance.icons.theme": "Follow the theme",
"wb.appearance.icons.import": "Import icon pack…",
"wb.appearance.icons.review": "Install the icon pack “{name}”?",
"wb.appearance.icons.author": "Author",
"wb.appearance.icons.license": "Licence",
"wb.appearance.icons.source": "Source",
"wb.appearance.icons.credits": "Credits",
"wb.appearance.icons.size": "Contents",
"wb.appearance.icons.sizeValue": "{count} icons, {size}",
"wb.appearance.icons.dataOnly": "Data only: drawings, no code. The icons of the site and of this window change when you pick the pack.",
"wb.appearance.icons.replaces": "An icon pack called “{name}” is already installed; this replaces it.",
"wb.appearance.icons.install": "Install",
"wb.appearance.icons.installed": "Installed the icon pack “{name}”.",
"wb.appearance.icons.remove": "Remove {name}",
"wb.appearance.icons.removed": "Removed the icon pack “{name}”.",
"wb.appearance.icons.imported": "Imported icon packs",
"wb.appearance.icons.site": "The site's own icons", "wb.appearance.icons.site": "The site's own icons",
"wb.appearance.accountTheme": "Account theme · {name}", "wb.appearance.accountTheme": "Account theme · {name}",
"wb.appearance.accountsHint": "Every pane of an account shows its theme unless the pane has its own.", "wb.appearance.accountsHint": "Every pane of an account shows its theme unless the pane has its own.",