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

@ -10,6 +10,21 @@ export const PANEL_MESSAGES = {
'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.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.accountTheme': 'Account theme · {name}',
'wb.appearance.accountsHint': 'Every pane of an account shows its theme unless the pane has its own.',