Theme-adaptive favicon: transparent PNG + prefers-color-scheme SVG

- sim.png regenerated from sim.svg with true transparency (was flattened
  onto opaque white; favicon showed a white box)
- new favicon.svg: same glyph, fill moved to presentation attribute +
  embedded @media (prefers-color-scheme: dark) -> white glyph on dark
  browser themes (interface sim.svg untouched, keeps dark:invert)
- index.html: dual icon links (svg for modern browsers, png Safari fallback)
- sw.js: precache favicon.svg, cache bump otaman-v11 -> otaman-v12
This commit is contained in:
2026-08-22 11:17:00 +03:00
parent 71d2e80242
commit 32509b102c
4 changed files with 45 additions and 2 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
const CACHE = 'otaman-v11';
const CACHE = 'otaman-v12';
const URLS = [
'index.html',
'help.html',
'help-ru.html',
'style.css',
'sim.png',
'favicon.svg',
'icon-192.png',
'icon-512.png',
'manifest.json',