An easy user-togglable dark mode for Rocket.Chat
An easy user-togglable dark mode for Rocket.Chat
This repo was migrated for ease of collaboration from my gist which was a fork of chall8909's gist, to which this project is greatly indebted.
dark-mode-toggle.js creates and adds a click handler for a dark mode toggle button. This toggle button lives in the toolbar at the top of the left-hand sidebar:
And when dark mode is active:
dark-mode.css contains the styles which - y'know, make everything dark, like so:
NOTE: - For Rocket.Chat versions 3.2.2 - 3.3.3, use the code from the 3.2.2 branch or from the accompanying release. - For Rocket.Chat versions 3.4.0 - 3.7.2, use the code from the 3.7.2 branch or from the accompanying release. - For current latest stable release, use the code from the master branch.
If you want to "install" this dark mode, here's all you need to do:
If you encounter any problems with this dark mode plugin, please open an issue - or better yet, fix it and open a pull request.