A dark mode for the RuneScape Wiki has been an oft-requested feature, coming up in yearly surveys, feedback threads, etc. Here is my proposed dark mode, next to our current theme:
This will only apply to Oasis, where the white/blue theme will remain the default. Use of the dark mode is completely optional – users will be able to switch back and forth via the "Change theme" button next to the Edit button. The code that inserts the button is at MediaWiki:Common.js/darkmode.js (thanks Gaz), and the actual CSS is at [[User:Iiii I I I/darkmode.css]], which will eventually be moved into the MediaWiki namespace.
Administrators can try a live version by entering test mode on Special:JSPages. I don't want to send the JS in for review before this thread is closed, so regular users will have to manually load the CSS through a browser extension or something similar.
It's mostly complete (I have a to-do list at the bottom of darkmode.css); please try it out and tell me if there are any glaring visual issues. Here is a song for onei.
Discussion
Support --Iiii I I I 01:54, August 23, 2016 (UTC)
Comment - I was even more disappointed.
Looking at the code, I'm seeing some localstorage usage, but nothing that loads the stylesheet on a new page meaning you'd have to enter darkmode every time you loaded a new page. I haven't checked it, so I could be wrong.
I'd look at always loading the stylesheet (in MediaWiki:Wikia.css), and toggling a class in the body to hook off. It should make it quicker to load.
Finally, I'm concerned about how maintained this is going to be. Granted, we don't have a lot of major colour changes, but as wikia gets updated, they tend to change classes and add/remove elements. Is someone committed to staying on top of this? User:Cqm/Signature
- Wouldn't always loading the dark mode stylesheet increase load times, especially for people who don't use it? Also, if this is possible:
[8:32 AM] mol: is there anyway to load another wiki's style sheet? [8:32 AM] mol: we could make a darkmodewiki and just use theme designer [8:32 AM] mol: that should automatically update it with class changes [9:23 AM] onei: @mol I had a go this morning, and yes
- That would take care of any site changes by Wikia, and we'd just be left with our own custom classes, which we have control over anyway (and I've mostly finished styling). --Iiii I I I 19:34, August 23, 2016 (UTC)
- I've finished a (thrown together) script that loads styles based on the value of
wgSassParams
which is pulled from theme designer. So if someone makes a theme, we can copy over the values and it'll do the rest. - Always loading it isn't going to make a huge difference, it's tiny compared to what we already load, even smaller compared to what wikia load. Caching will probably reduce the difference as well. User:Cqm/Signature
- The basic theme's been at w:c:iiiiiii for about a month now if you want to test it. Please excuse the rude MediaWiki messages, mol changed them a while ago and now that they're not whitelisted I can't change them back. --Iiii I I I 04:56, August 24, 2016 (UTC)
- I've finished a (thrown together) script that loads styles based on the value of
Support - Yesh finally! I didn't like that dark version at first, but then the blue/white theme was mentioned. Also it's still much better than white theme during night. So yeah. Though that blue theme may suck for those that try to avoid blue light during nighttime, since it affects your circadian rhythm and melatonin secretion. And has potential health risks(?) I don't know if those are just nonsense because I don't care enough but I thought I'd share this concern. ¯\_(ツ)_/¯ Nevertheless blue is good imo Metal Angel cut your wrists 12:49, August 25, 2016 (UTC)
- I considered going with warmer colors but eventually decided against it. It should be consistent with the default/"light" theme, and RuneScape's colors in general seem to be pretty blue now (the NIS, the website, etc). I have seen articles on the negative effects of blue light at night, but if you're that serious about avoiding it you probably already use f.lux – and you shouldn't be playing RuneScape at all. --Iiii I I I 02:14, August 26, 2016 (UTC)
- I tried many color options too and none of them felt like it was made for rsw. Also I had totally forgotten that there's apps like f.lux, and now when you reminded me, I have no reason to worry about the color theme for night people! ^^ Metal Angel cut your wrists 11:27, August 26, 2016 (UTC)
Closed - Obviously, the community is enthralled with this topic. The dark mode skin will be implemented as proposed as an optional theme. The current theme will remain the default, in case that wasn't clear. Specifics of implementation will be left to Iiii I I I and users he wishes to consult. --LiquidTalk 19:51, August 30, 2016 (UTC)