wrolpi/app/public
Roland 65d78cae32
ui: night mode actually filters media, and fix three picker icons
Addresses the automated review on #583; all three were real.

The night filter only applied to elements tagged `.media`, and nothing in the
app carried that class - so selecting Night filtered the interface but left
every video, thumbnail, PDF and map full-colour, which is precisely the thing
the mode exists to prevent. The Settings copy promised otherwise, so it was
also wrong.

It now targets the element types instead of an opt-in class, because night mode
has to fail safe: a library of thousands of files reaches the screen through
many components, and one that forgot to opt in would undo half an hour of dark
adaptation. `.media` still works for wrappers that must be filtered as a unit,
and `.night-unfiltered` opts out. The filter is restated on `:fullscreen`, which
a filter on an ancestor stops reaching. Verified on the videos page: all 25
media elements filtered.

Three of the five theme choices rendered a fallback glyph and logged errors,
because the icon map was built by grepping literal name='...' strings and the
navigation picker passes its icon through a variable. Adds sun, moon and
lightbulb, plus a test asserting every theme choice resolves to a real icon.

The pre-paint script wrapped the `matchMedia` fallback in the same try as the
storage read, so a device with storage blocked painted light even when it
prefers dark - recreating the flash the script exists to prevent.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-29 20:08:18 -06:00
..
epub Adding simple search to epub viewer. 2026-04-13 17:23:20 -06:00
android-chrome-192x192.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
android-chrome-512x512.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
apple-touch-icon.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
favicon-16x16.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
favicon-32x32.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
favicon-blue.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-brown.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-green.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-grey.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-olive.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-orange.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-pink.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-purple.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-red.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-teal.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-violet.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon-yellow.svg Changing favicon color when navbar color changes. 2026-02-04 12:28:55 -07:00
favicon.ico Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
icon-transparent.png Fixing rebrand binary hook (wrong cwd) and using the new transparent logo. 2026-05-25 20:16:02 -06:00
icon.svg Fixing bug where file search would issue twice on load. 2023-04-09 14:34:33 -06:00
index.html ui: night mode actually filters media, and fix three picker icons 2026-07-29 20:08:18 -06:00
logo192.png Fixing JS warnings. 2022-09-23 11:25:55 -06:00
logo512.png Fixing JS warnings. 2022-09-23 11:25:55 -06:00
manifest.json Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
mstile-150x150.png Zim/Kiwix (Wikipedia) feature 2023-07-10 21:30:40 -06:00
one-time-pad-cheat-sheet.pdf A new start 2021-11-01 16:43:09 -06:00
robots.txt A new start 2021-11-01 16:43:09 -06:00