zotero-night icon indicating copy to clipboard operation
zotero-night copied to clipboard

[BUG] Night mode don't apply on PDF

Open Meonthb opened this issue 1 year ago • 19 comments

Describe the bug Night mode don't apply on PDF in Zotero 7

To Reproduce Steps to reproduce the behavior: Toggled the night mode icon, only the UI turned into dark, but not the PDF.

Screenshots image

OS (MacOS XX.xx [specify Intel or Silicon], Windows, Linux [specify distro/package type]: Windows 11 version: 22H2 OS build: 22621.2215 Experience: Windows Feature Experience Pack 1000.22662.1000.0

Meonthb avatar Sep 02 '23 15:09 Meonthb

Are you using the latest version of the plugin? The first release for Zotero 7 had that problem

tefkah avatar Sep 05 '23 11:09 tefkah

Are you using the latest version of the plugin? The first release for Zotero 7 had that problem

Yes, I'm using the latest version 0.1.0-1 image

Meonthb avatar Sep 05 '23 12:09 Meonthb

thanks for double checking! this might be a windows version problem then, which is kind of hard for me to check. If other people have this problem on Windows 11 please let me know!

tefkah avatar Sep 05 '23 12:09 tefkah

Oh and which version of Zotero are you running?

tefkah avatar Sep 05 '23 12:09 tefkah

Thank you for your work! I'm using the latest Zotero version 7.0.0-beta.39+ecba25be0 (64-bit)

Meonthb avatar Sep 05 '23 12:09 Meonthb

I do encounter the same bug. Every time I open a new pdf, it appears in a light theme (only for pdf; the rest of the UI is still in dark mode). I'll need to manually toggle the theme switch to make the pdf appear in the dark mode.

sleepymalc avatar Sep 05 '23 15:09 sleepymalc

I get this situation too, when I open a pdf, it's still light, but the sidebar is dark. I try to find the button to change it, but it seems the button is missing XD image

FlynnSpace avatar Sep 07 '23 01:09 FlynnSpace

@FlynnSpace Seems like you are using the Zotero 6 version, what version of the plugin of the plugin are you using?

tefkah avatar Sep 12 '23 08:09 tefkah

For the people on Zotero 7, please try the latest release

tefkah avatar Sep 12 '23 09:09 tefkah

@tefkah The plugin is 0.4.23 and the Zotero is 6.0.27. Should I download the old version plugin or Zotero?

FlynnSpace avatar Sep 13 '23 05:09 FlynnSpace

I had the same problem on mac, but restarting Zotero solved the problem.

jiagengliu avatar Sep 21 '23 02:09 jiagengliu

I have the same problem on Windows 11. OS build : 22621.228

zgz292dev avatar Sep 21 '23 13:09 zgz292dev

Mac 13.5.2 Night 0.1.0-2 2023-09-12 11:55:51 7.0.0-beta.40+24ae34104

Can confirm that sometimes dark mode works for some PDF, but not all. This can be rectified by closing the document and then re-open from within Zotero. Re-opening Zotero does not rectify the issue.

kzssc avatar Sep 24 '23 23:09 kzssc

@tefkah The plugin is 0.4.23 and the Zotero is 6.0.27. Should I download the old version plugin or Zotero?

hey dude, I have the same versions as you, have you solved your question?

csy94cfy avatar Oct 07 '23 01:10 csy94cfy

Mac 13.5.2 Night 0.1.0-2 2023-09-12 11:55:51 7.0.0-beta.40+24ae34104

Can confirm that sometimes dark mode works for some PDF, but not all. This can be rectified by closing the document and then re-open from within Zotero. Re-opening Zotero does not rectify the issue.

For me, some PDFs get dark. After some trials, seems to be related to the initial state of the "light/dark" button when you open the PDF. If you switch back to the star, close the pdf, reopen the pdf, then click again ob the button, it cycle light and dark correctly.

Again, some times it does not work like I said... then I kept the PDF opened, switch off the addon and on again, and voilá, dark... :-/

franzbischoff avatar Oct 11 '23 18:10 franzbischoff

@tefkah The plugin is 0.4.23 and the Zotero is 6.0.27. Should I download the old version plugin or Zotero?

hey dude, I have the same versions as you, have you solved your question?

No, the background of all my PDFs still stings the eyes, even if I restart the plugin or Zetero. (╯ ͡❛ ͜ʖ ͡❛)╯┻━┻

FlynnSpace avatar Oct 13 '23 08:10 FlynnSpace

@tefkah The plugin is 0.4.23 and the Zotero is 6.0.27. Should I download the old version plugin or Zotero?

hey dude, I have the same versions as you, have you solved your question?

No, the background of all my PDFs still stings the eyes, even if I restart the plugin or Zetero. (╯ ͡❛ ͜ʖ ͡❛)╯┻━┻

Try the "disable/enable" trick while not fixed :)

franzbischoff avatar Oct 16 '23 19:10 franzbischoff

@csy94cfy hey bro, I think I found the alternative solution from issue #128 . You can try the plugin "zotero-style", which is able to set the PDF's background to dark.

FlynnSpace avatar Oct 18 '23 02:10 FlynnSpace

For me it worked by going to Tools -> Night preferences and enabling disabling the option for dark mode and selecting the option for the default pdf view. Working on Zotero 6.0.37.

This is what it should look like. Screenshot 2024-04-02 at 5 30 12 PM

ruturajreddy avatar Apr 02 '24 12:04 ruturajreddy