files_pdfviewer icon indicating copy to clipboard operation
files_pdfviewer copied to clipboard

Adjust pdfviewer theming based on accessibility usersetting

Open szaimen opened this issue 3 years ago • 2 comments

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!

szaimen avatar Aug 19 '20 14:08 szaimen

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

skjnldsv avatar Aug 19 '20 15:08 skjnldsv

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

szaimen avatar Nov 10 '21 13:11 szaimen