I already have a dark theme set, I'm using catppuccin's colors
What I'm trying to have it do is when a button is pressed, it switches to the light version of it
The problem with #theme-toggle:checked ~body is that the selector is wrong. ~ requires that the second part comes after the first part in the HTML. But your toggle is inside the html and the body. [1]
I got a piece of code from c/programming that works
Using body:has(#theme-toggle:checked)
I prefer doing it that way because I use a browser with anti-fingerprinting which hides the preferred theme so prefers-color-scheme doesn't work as well
Indeed you can, just like this (see below). I just tried it in a codepen and it seems to work. Although do note that if you put light dark as the default value, once you toggle the switch off again, it'll choose whatever mode the user agent wants, which might still be dark mode. So if you want it to be light by default, you'll need to use a value that enforces that.
Ah yeah, I guess, users would expect some action to happen when they click that toggle, not just for it to change from automatic-dark to manual-dark.
Perhaps the simplest non-JS and non-persistent solution would then be to have it pick the color-scheme automatically by default, but if the checkbox is checked, then set the colors to the opposite.
I miss when desktop themes like these were a thing.
I took a look at what's available for #KDEPlasma 6 at https://store.kde.org/browse?cat=114&ord=latest and…they all kinda look the same. 🫤 The only ones that stand out are the ones that mimic old operating systems like Windows 3.1, and none are as exotic looking as some of the #MacOS#themes below.
Where does a guy find all the wild non-rectangular window decorations and whatnot these days?
I truly missed how beautiful Samsung phones can be made with just a theme. One UI 8 is Samsung putting their whole ass into design and the theme makers are truly taking advantage of all the tools Samsung provides. Even my keyboard looks pretty as fuck, it makes me love my phone again in a big way.
My Apple phone was just a tool, didn't feel overly personalized like I wanted it to be. Samsung phones are built different, now it feels incredibly personal...I could step it up further by creating my own themes by using Theme Park app.
I might have to think about it (as I have in the past, but, it was a NSFW just for at home theme). I used the automation feature to automatically toggle back and forth, it worked quite nicely. However, I need to track down the icon theme that I used and those pictures...Could always find new pictures. LMAO The internet provides if one just looks.
Even the Dialer for this phone is bright and cheery, everything but the video calling button is themed to the nines! It's basically the same theme but miniaturized into the Dialer window (with the numbers and * and # buttons). I adore this theme so much.
I have been doing a theme for Zola static site generator in the past a few weekends, think it is ready to be released, not sure anyone is looking for a good theme and use Zola, but will share it later today. 👀
Bored Stiff (EP.19): Black Hearts Be Damned And The Implementation Of Religion In Politcs
At first, when writing Black Hearts Be Damned, I didn’t intend for the story to merge so much with what politics of then and now. Religion has always been present with politics and nations identity for centuries. So when I came to the conclusion that a government, consisting of pirates...
Problems with dark-theme toggle
cross-posted from: ...
Problems with dark-theme toggle
Edit: I managed to get it working by using :has and nesting css classes! ...
We’re proud to announce GIMP 3.1.2, the first development version of what will become GIMP 3.2! ( 9to5linux.com )
We are proud to release GIMP 3.1.2. It's the first development version of what will become GIMP 3.2! ...
[Community Challenge 62] Retrofuturistic ads
Retrofuturistic ads ...
[Community Challenge 41] Pedal to the Metal: From Cute to Brutal ( sh.itjust.works )
Prompt for my image : ...
[Community Challenge 26] - Secret life of the Forest ( discuss.tchncs.de )
#Theme: ...