dark reader does not work on canvas - Google Chrome #12493
NeedA-Dream
started this conversation in
General
Replies: 2 comments
-
If you use Firefox, you can edit userContent.css like this: @media (prefers-color-scheme: dark){
.pdfViewer{filter: invert(1) hue-rotate(180deg);}
} If you use Chrome or Edge, install the extention "PDF Reader", then edit the extention option like this: html[data-theme*="dark"] .pdfViewer{
filter: invert(1) hue-rotate(180deg);
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you.
It did not work initially, so I decided to check what the problem is.
I had an Adobe reader extension. I removed it and then the PDF reader
worked.
I do not have problems now with all online pdf files. However, PDFs on
Canvas still have white background.
Best
…On Mon, Apr 15, 2024 at 11:11 PM luo.chuan ***@***.***> wrote:
If you use Firefox, you can edit userContent.css
<https://davidwalsh.name/firefox-user-stylesheet> like this:
@media (prefers-color-scheme: dark){
.pdfViewer{filter: invert(1) hue-rotate(180deg);}
}
If you use Chrome
<https://chromewebstore.google.com/detail/pdf-reader/ieepebpjnkhaiioojkepfniodjmjjihl>
or Edge
<https://microsoftedge.microsoft.com/addons/detail/pdf-reader/nhppiemcomgngbgdeffdgkhnkjlgpcdi>,
install the extention "PDF Reader", then edit the extention option like
this:
html[data-theme*="dark"] .pdfViewer{
filter: invert(1) hue-rotate(180deg);
}
—
Reply to this email directly, view it on GitHub
<#12493 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHIQ2UOZPGQVOBNK55CNFGTY5SJFLAVCNFSM6AAAAABFFAN7QCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCMRUG44TO>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I used Dark mode last year and I did not have any issue. But after the update, document background like pdf and word appear So white which hurts my eyes. I have tried to fix the problem but no luck.
Beta Was this translation helpful? Give feedback.
All reactions