Dark Theme and light theme

Blue light can be associated with a period. A dark and light theme could be linked to sunset and sunrise. Automatically change the theme when it is day or night. This would be a great option. There are some themes that have both light and dark themes.

  • List item Flow

  • List item Kay
    etc

1 Like

There are some scripts around. Some on Github like YinYang

1 Like

Now that there’s a seperate brightness button in the system tray, inside of it would be a great spot for a light mode/dark mode toggle.

Implementing that toggle could allow for plasma themes and color themes to consolidate their light/dark variants and declutter the store, and maybe it would finally make it easy to toggle the light/dark kvantum Application Styles if it goes beyond that.

Every other major platform already has a convenient dark mode toggle.

2 Likes

Radio button on the control panel.

The above can be done by the KDE Team.

I searched for this exact functionality as I thought it would be great to have, found your comment and would just like to say that I fully agree on this.

I’m usually on dark theme but moved my laptop outside and wanted a convenient way of switching to light theme. The “brightness and color” indeed feels like a great place for this.

The only widget I download and install is this one

I change the icons to “moon” and “sun” icons that something installed, probably from the papirus icon set.

I have it trigger scripts which change the theme on Konsole and other little tweaks.

Ideally, I’d like the button hidden inside a pop up menu like Gnome, a having it permanently in the taskbar wastes space.

Automatic orange filters / blue light hoodoo need a button to turn it off for situations where you need true colours ( videos etc).

cheers

edit:

just to add, in the summer I use my laptop outdoors.

Apps like Bitwig used to suck because they offered no option to theme for contrast.

Hacks like inverting the screen partly work for GUI elements, but wreck photographic type images.

I tried a few interesting extensions for colour blindness on Gnome that helped, but also introduced other problems.

The most shocking thing about moving to Linux for me was the total lack of image controls.

I’d like per app filters. I might want Bitwig inverted, but not Firefox.

Editable per window shaders.

I prefer the undermentioned:

I don’t use any of that stuff. I just make some desktop app with a dropdown for preconfigured and/or separate layouts. Some execs point to default commands, others to a script. If people want some toggle, some widget, some whatever…fine. Me? Couldn’t care less. A single desktop app works just as well. As compact as possible. But that’s me.
Besides, I mostly switch between only two so…

1 Like

It would help a lot to have such a functionality, even if it changes nothing in KDE/Plasma itself for now.

On the one hand there is the Freedesktop night mode. On the other hand there are applications known to care about that system-wide setting (notably: Chrome, Firefox and VS Code).

So, it would help if we can use the “Night Light” functionality to control the system-wide night mode, even if we don’t touch the Plasma theme (yet).

If you don’t have /home/your-name/bin, make one.
Put these files in it.

Make dark.sh and put this in it.

#!/bin/bash
# Switch to a dark theme.
# Use plasma-apply-desktoptheme --list-themes for a list.
#
kvantummanager --set KvCurves3d1
#
# Use plasma-apply-colorscheme --list-schemes for a list.
#
plasma-apply-colorscheme KvDark
#
exit

Make light.sh and put this in it.

#!/bin/bash
# Switch to a light theme.
# Use plasma-apply-desktoptheme --list-themes for a list.
#
kvantummanager --set KvCurvesLight
#
#Use plasma-apply-colorscheme --list-schemes for a list.
#
plasma-apply-colorscheme KvOxygen
#
exit

Don’t forget to make them executable.

Put a Quicklaunch widget on your desktop.
Right click it and add a launcher for each script. Be sure and click Advanced Options and uncheck Enable Launch Feedback. They run so fast that you don’t need it and it’s just annoying.

You can also make 4, 6, 8 or 10 launchers, with Quicklaunch so you’ll have a list of themes to switch to. Just click a launcher and it’ll switch the theme and color.

You can drag it to the panel or just use it from the desktop.
I made notes so you won’t have to remember the names or have to use System Settings to get the desktop theme and color scheme names. It’s that easy and probably why the KDE Developers didn’t do something like this.

Konsole has a plugin called Quick Commands in the Plug-ins Menu. You can put all of your Kvantum themes in it and quickly switch themes. It’s much faster than using Kvantum Manager.

You can also add plasma-apply desktoptheme and plasma-apply-colorscheme to the Quick Commands. The Quick Commands list is in ~/.config/konsolequickcommandsconfig.

Make a couple from within Konsole so you can see the format and use a nice text editor to do them faster.

If your main point is that “custom script can just work so there is no need to build that in KDE”, then my question in my previous post went unanswered, which is about a centralized place to control the Freedesktop Night Mode.

Actually, I was replying to the OP who was talking about dark and light themes. But I get your point too. It’d be nice to have quick switchers for everything in a single location, but that is also what System Settings is. But until then, the OP can make a quick theme switcher if he wants.

2 Likes