nextcloud / files_pdfviewer

:book: A PDF viewer for Nextcloud
GNU Affero General Public License v3.0
86 stars 43 forks source link

Adjust pdfviewer theming based on accessibility usersetting #204

Open szaimen opened 4 years ago

szaimen commented 4 years ago

Hi,

The following PR will probably soon be merged: https://github.com/mozilla/pdf.js/pull/11077 which will bring theming support and a light and dark mode, afaik.

So I guess it would be great if the theming could be automatically toggled depending on the accessibility usersetting (dark/normal).

Cheers!

skjnldsv commented 4 years ago

Yep, we need to adapt it a bit. We're discussing wether implement it on top of server styling (overriding both server and pdf.js css, or just not ship any server styling and only adapt the default pdf.js styling) see #202

szaimen commented 2 years ago

This could maybe make use of https://github.com/nextcloud/viewer/pull/1051 like text is now doing https://github.com/nextcloud/text/pull/1907