em... I executed this:composer require fof/nightmode:^0.4.0
FriendsOfFlarum Night Mode
- Edited
datitisev Are you suggesting some feature here? Users can override the forum's selected color scheme (through extension settings) by going to their settings page or clicking on the day/night mode button in the session dropdown.
No feature suggestion. I did not have the latest version installed where you now have an admin setting to turn off automatic based on device settings mode. So, I’m good now.
iwoow I will not be adding the .dark
class back, and we won't give support if you're using an earlier version (I see you installed ^0.4.0
, so this is why I'm saying this).
You can customize the styles for light mode & dark mode separately by either using the Flarum CSS variables @ https://github.com/flarum/core/blob/v0.1.0-beta.13/less/common/variables.less like background-color: @body-bg
or following the code shown by me (datitisev) and Operator (Operator)
Is it possible to use a different forum logo with dark mode toggled on? I have black in my logo and it is understandably very difficult to see/read with dark mode enabled. I saw this in another thread but automatic day/night mode based on time of day would be a cool feature! Great work here btw!
I installed the Extension but i got server error
@datitisev I don't know, i followed the Install document.
composer create-project flarum/flarum . --stability=beta
Maybe
- Edited
Yeah so if you installed recently means after 20th you have to wait for the extension to be updated.
That command usually installs the latest version.
And somehow can i change my installed version?
I'm not sure about it. You gotta wait for someone who knows better.
0.6.0
- beta 14 ready
- Edited
karaok When I see a post from karaok I'm super happy, crying of joy in my mind xD.
But lately he delivers so frequently that I only "like" the post & don't reply because I'm scared to get warned or banned for "flooding" (
) / or at least i try to reply less
Instructions to install Night Mode by FriendsOfFlarum for Beta 14:
composer require fof/nightmode
php flarum cache:clear
[root@server bin]# composer require fof/nightmode
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Using version 0.6.0 for fof/nightmode
./composer.json has been updated
Running composer update fof/nightmode
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires fof/nightmode 0.6.0 -> satisfiable by fof/nightmode[0.6.0].
- fof/nightmode 0.6.0 requires flarum/core 0.1.0-beta.14 -> found flarum/core[dev-master, v0.1.0-beta.14, v0.1.0-beta.14.1, 0.1.x-dev (alias of dev-master)] but it does not match your minimum-stability.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
[root@server bin]#
how to solve this problem
- Edited
csboy0 what version of Flarum are you running? php flarum info
Hello! is it possible to change the primary color (theme color) of flarum when switching between dark and light modes via css?
EvilExecutor You might be able to do something like Flarum does internally - see https://github.com/flarum/core/blob/master/less/common/variables.less#L21-L65. You'd probably have to rename the mixin name in your own code, but something like that might work (you do not need to copy paste all of that, it's just an example)