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

@ -388,3 +388,12 @@
.btp-hero { padding: 40px 36px 34px; }
}
@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; }