While you're here, please consider supporting GamingOnLinux on:
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register
- GOG launch their Preservation Program to make games live forever with a hundred classics being 're-released'
- Sony say their PSN account requirement on PC is so you can enjoy their games 'safely'
- Valve dev details more on the work behind making Steam for Linux more stable
- NVIDIA detail upcoming Linux driver features for Wayland and explain current support
- Steam Beta gets fixes for WiFi on Steam Deck, plus AMD GPU startup crash on Desktop
- > See more over 30 days here
-
Hybrid gaming controller MoveMaster has a new website, …
- Chrisznix -
The Walking Dead, The Expanse and more in the Telltale …
- Phlebiac -
Stellar Blade should come to PC in 2025, dev expects sa…
- omer666 -
Linux GPU Configuration Tool 'LACT' adds NVIDIA support…
- Phlebiac -
Old Skies from Wadjet Eye Games looks like one to remem…
- Eike - > See more comments
- Our own anti-cheat list
- Xpander - Weekend Players' Club 11/15/2024
- Klaas - What do you want to see on GamingOnLinux?
- amatai - Does Sinden Lightgun work?
- Linas - Steam and offline gaming
- missingno - See more posts
Note
Yes, the switcher requires JavaScript. Since I know some don't like that, you can still use the theme switcher in your User settings. That was also updated, as it now properly forces your picked theme there (which overrides the top nav slider).
Of course, there will be issues, some edge-cases I've missed.
If you see anything that doesn't look right or act right please let me know here so I can fix them. Before reporting, please refresh your cache to ensure it's not your browser keeping old CSS/JS around.
The forum
The old category/forum view is gone, long live flat forum. Honestly, it's just better, it matches the home page style of all categories shown. This way, categories that don't usually get a look-in will now actually have their posts show up when people make them.
Last edited by Liam Dawe on 29 March 2020 at 8:52 pm UTC
View PC info
View PC info
If you switch to the dark theme and then close the browser, or go to another website and come back, you end up with the light theme.
If you Force the theme through the profile settings, it works fine.
Last edited by serge on 29 March 2020 at 4:14 pm UTC
I am seeing the same behaviour as well. Also when the dark theme is enabled and (re)loading the page, the toggle button "switches" after the page have finished loading which draws attention to it. I find it a bit annoying. At least now that I noticed it :)
As it turns out, the above is exactly what Twitch do. Only realised after I did it, so it seems like the real solution that I fell into there :D
Haven't yet come up with a good solution for the switcher flicking between though. Happy to take on ideas.I've moved the slider into the user menu on desktop/mobile menu.
I'll also adjust for Guests/Not Logged In people to have a menu to do so too.Guests now have their own little menu.Last edited by Liam Dawe on 29 March 2020 at 8:48 pm UTC
The "theme" key in local storage is saved, though and set to "dark".
Since the attribute "data-theme" is set, your code doesn't even look at what's set in the local storage and just uses "default" as the value, as that's set in:
<html data-theme="default" class=" idcae idcac" lang="en">
var website_theme='light';
if (document.documentElement.hasAttribute("data-theme")) {
website_theme=document.documentElement.getAttribute("data-theme");
} else {
// If I run this on its own, the theme changes to dark as expected.
if (localStorage.getItem("theme")) {
if(localStorage.getItem("theme")=="dark") {
website_theme="dark";
}
}
else if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
website_theme="dark"
}
if (website_theme=="dark") {
document.documentElement.setAttribute("data-theme","dark")
}
}
Last edited by chris.echoz on 1 April 2020 at 9:58 pm UTC
Edit: Actually just noticed it says default, that looks like a leftover issue from the switch. Hold on 5 mins.
Edit 2: Should be fixed, a bunch of people didn't have their theme correctly unset from "default" (which no longer exists) it's either nothing and set by the JS and the new toggle or forced as light/dark in the User Control Panel.
Last edited by Liam Dawe on 1 April 2020 at 10:06 pm UTC