New Plugin: Night for Zotero

Hi!

Inspired by some other editors that do this (most notably Emacs), I made a plugin which allows you to read pdfs in dark mode! Of course, since just having the pdfs dark would be a bit silly, it also does dark mode for everything else if you're into that.

It's not completely done (small tweaks mostly) and I'd like to develop this plugin a bit further to allow people to define their own themes and share them, but for now it works pretty well!

Check it out and let me know what you think!

https://github.com/ThomasFKJorna/zotero-night/
  • Excellent!
    I have installed it and it works very well. I had Rosmaninho's theme, with some adaptations of my own, but I find this one better, especially because it works with the PDF reader. Thank you!
  • edited April 27, 2022
    Excellent +1. Rosmaninho's userChrome.css never worked for me for some reason. This does (under Windows 10). A few minor issues already mentioned by others in github Issues.
  • @ThomasJorna should updates be found automatically by Zotero ? I have 0.2.2 installed but I see on github it has been updated to 0.2.5. But in Zotero when when I click on Check For Updates under Tools/Add-ons it says 'No updates found". Same result over several days.
  • edited May 2, 2022
    @ThomasJorna you're not running 'npm/yarn run release' after release. The usual setup for plugins built on my infra is to have the tagged build call 'npm run release' so that an 'npm version [bump]' sets everything off. I don't mind people going their own way of course, but 'npm run release' does more than create a new release, it also creates a pseudo-release called 'release' and places update.rdf there under a stable URL. No update.rdf, no plugin updates. If you want to do your own thang on this :) it's probably easiest to host the update.rdf in the gh-site of the repo. If so, you must update the 'install.rdf' to point to the correct location before zipup runs, and create/update update.rdf of course.

    'npm run release' will also drop test builds on issues BTW if your branches are named 'gh-[issue number]' and you push to that branch.
  • edited May 9, 2022
    Latest update 0.4.8 now detected by Zotero, downloaded, and updated nicely. Thanks @ThomasJorna
  • Super nice!
    I note that some menu doesn't' seem to be "darked", mainly the preferences panes.
    Also, but is a very small detail, maybe I would re-work the moon/sun icon, that made me tick a little : maybe a smaller sun and another moon? But again I can totally live with it. Great job!
  • In windows 10, scrollbars aren't dark. But it is a very nice add-on, thank you.
  • @emilianoeheyns You're right, I was trying to roll my own custom thing for some reason, mostly because I'm really bad at versioning things and for some reason missed the main "zotero-plugin" repo/readme and thought that the only documentation was the "zotero-plugin-generator" repo/readme, so I did not manage to get your implementation working the first time around. After actually RTFM things made much more sense, maybe you could include a link to that in the generator README for clueless people like me.

    Anyway I set it up "properly" now, thank you so much for making the Zotero scaffold! Makes it possible to actually do things, I remember losing my mind a year or two ago trying to set everything up myself hahaha.

  • @ppraet You're right, i've been looking into custom scrollbars as Firefox 60 does not allow styling of the scrollbars, but have not had much success yet.
  • @alflamingo I would totally appreciate different icons! I just put in the funny moon emoji because I couldn't be bothered creating something myself, but am totally open to contributions on that front! :)
  • I like this plugin. One thing I have noticed however is that the dark mode disables the function of selecting an entry and pressing alt on a Mac to see what subfolders it is in. In light mode, the subfolder(s) containing the entry light up; in dark mode, nothing seems to happen. Is this something that could be re-enabled?
  • Nice anyway! I regret I have no skill to make icon. If I found anything I'll share it.
  • I LOVE Zotero-Night! Thank you AGAIN !!
  • @ThomasJorna - thank you for creating such a great plugin. It is fantastic and makes such a difference to usability! Thanks!!!
  • Great work!!
  • Hi, does anyone know if there's a way to keep the interface dark while reading attachments with no filters by default? The adjustments on the "Night Preferences" menu seem to not be working at all
  • does anyone know if there's a way to keep the interface dark while reading attachments with no filters by default?
    I think there is not.
    Because of this and some other bugs, I have disabled this plugin, and went back to Rosmaninho's css file approach.
  • This is a very excellent addon!

    But if you want to use the traditional CSS style and customize your themes, another addon, ZoteroTheme, enables users to modify and apply the CSS easily. You can create different themes and modify the color for each theme, based on Rosmaninho's CSS file.

    It also provides a green-background PDF reader style.

    https://github.com/iShareStuff/ZoteroTheme
  • @ThomasJorna I fork your plugin and use it's framework to buid a new plugin. Now this zotero plugin can set pdf background green.
    https://github.com/q77190858/zotero-pdf-background
Sign In or Register to comment.