fof / nightmode
Add a Night Mode option for your users to use on your Flarum forum
Fund package maintenance!
Website
Installs: 43 774
Dependents: 3
Suggesters: 2
Security: 0
Stars: 33
Watchers: 8
Forks: 22
Open Issues: 4
Type:flarum-extension
- dev-master
- 1.6.0
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.1
- 0.6.0
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-im/icon
- dev-im/settings
- dev-cw/mediaembed-theme
This package is auto-updated.
Last update: 2024-10-19 10:07:43 UTC
README
A Flarum extension. Add a Night Mode 🌙 for your users to use on your Flarum forum! (THE LIGHT 🌞, IT BUUUURNSSS!!!)
- A new "Night Mode" menu option will appear in your user options when you click on your avatar next to the notifications icon.
- A "Day Mode" option has been added as well to make the light appear again! (BEGONE, DANKESS!)
Installation
Install manually with composer:
composer require fof/nightmode:"*"
Updating
composer update fof/nightmode
Integrating with fof/nightmode
from another extension
Each time the mode is switched from day
to night
(and vice versa), a fofnightmodechange
event is dispatched. An extension can then listen to this event to react to this change, like so:
if (flarum.extensions['fof-nightmode']) { document.addEventListener('fofnightmodechange', (event) => { if (event.detail == 'day') { console.log('day mode'); } else { console.log('night mode'); } }); }
Links
An extension by FriendsOfFlarum.