libreoffice-online/browser/html
Miklos Vajna ad74670af5 cool#8734 browser: allow enabling dark mode from a URL parameter
One way for integrations to ask for dark mode is to set URL parameters.
This works for e.g. the language, but didn't work for dark mode.

There was already a parameter for this, but it was limited to Android.

Fix the problem by exposing the parameter for non-Android as well, and
also extend global.js to default to this, but keep the local storage as
an option to customize the setting if the user wants to.

Tested with 'make run', <input type=hidden> way may need more work on
top of this.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I78c4115a8e337ef2b1ea9e498db2572965762bef
2024-04-11 08:33:21 +01:00
..
cool-help.html help search input attributes 2024-03-04 12:09:19 +01:00
cool.html.m4 cool#8734 browser: allow enabling dark mode from a URL parameter 2024-04-11 08:33:21 +01:00
debug.html fix firefox zooms in whole page on mobile 2022-04-19 12:00:16 +03:00
framed.doc.html PostMessage test page: add export with notify set 2024-03-07 06:58:17 +01:00
framed.html browser: html: update more files 2021-11-10 17:18:56 +01:00
load.doc.html misc: config: rename 'lool' -> 'cool' 2021-11-17 09:17:19 +01:00
multidocs.html browser: html: update more files 2021-11-10 17:18:56 +01:00
wasm.html browser: add wasm.html to load documents via wasm 2023-10-24 21:33:02 -04:00