unclutter icon indicating copy to clipboard operation
unclutter copied to clipboard

Dark mode

Open phgn0 opened this issue 4 years ago • 7 comments

The article theme selector should also support dark mode, and potentially activate it by default based on system preferences.

Dark mode is more complex than just changing the background color, since all text color (including headings, image subtitles, icons etc) also need to be changed.

User requests:

  • https://www.reddit.com/r/firefox/comments/thre60/comment/i1yjp7w/?utm_source=share&utm_medium=web2x&context=3

phgn0 avatar Mar 24 '22 22:03 phgn0

It would be great to have a compatibility with Dark Reader https://addons.mozilla.org/en-US/firefox/addon/darkreader/ Currently, when on dark mode, Unclutter would force light mode on web pages.

patrick-goli avatar Mar 29 '22 06:03 patrick-goli

Yeah I see :(

The Dark Reader extension also parses and modifies the site stylesheets and this seems to conflict with Unclutter at the moment. I'm working on some changes to this code for https://github.com/lindylearn/unclutter/issues/6 that fixes it -- hoping to release it on Wednesday or Thursday.

@Kouassi-Goli As a workaround, for me activating Unclutter manually after Dark Reader has changed the colors of a page works. You can disable "Automatically unclutter pages" and "Enable extension on the current domain when clicking the extension icon" in the settings if the automatic activation annoys you until then. Thanks for reporting this!

phgn0 avatar Mar 29 '22 16:03 phgn0

@Kouassi-Goli the latest update on Firefox (0.8.1) fixes most websites with Dark Reader! I'm still working on a few edge cases and the built-in dark mode, which should release later this week.

phgn0 avatar Mar 30 '22 20:03 phgn0

Thanks for the great work @phgn0 I noticed in the commit history that you are currently the only maintainer of this project. You could publish a contributing guide so that people (including me) can help improve the extension.

patrick-goli avatar Mar 31 '22 07:03 patrick-goli

Howdy! Thank you for working on the dark reader / dark mode feature! Mayabe it would be just possible to add a dark mode toggle in the cog wheel thing? I really love your extension! It makes pages look so pretty but my eyes hurt with white background. Looking forward to updates :)

adguardgirl avatar Mar 31 '22 12:03 adguardgirl

@Kouassi-Goli thank you for the interest, that would be awesome! I'll add a contribution guide in https://github.com/lindylearn/unclutter/issues/12, let's further discuss this there.

@adguardgirl Hey, thank you for the feedback! I'm working on the built-in dark mode right now, the idea is that it auto-activates based on your system preferences or when you manually select it in the "Aa" settings. Hopefully it's ready by Monday (it's not possible to release extensions in the Chrome store on the weekend).

A small preview:

Screenshot 2022-03-31 at 4 11 41 PM

phgn0 avatar Mar 31 '22 14:03 phgn0

@adguardgirl @Kouassi-Goli the version with the new dark mode was just released! It uses the website dark theme if it exists, otherwise rewrites the CSS colors to make them look nice on a dark background.

Please let me know if you find any bugs or things that could be better! Thanks for reporting this.

See https://github.com/lindylearn/unclutter/releases/tag/0.9.0

phgn0 avatar Apr 05 '22 14:04 phgn0