Hi peeps, first post here.
I'm looking for a way to force an application to use the dark variant of a theme on startup.Is this possible, for example by setting an environment variable? I have been looking around for a bit but I can't seem to find anything about it. Any help is greatly appreciated!
Tell specific apps to use dark theme
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Re: Tell specific apps to use dark theme
Some apps have this option "prefer variant", many Gnome apps like
gnome-terminal
:
I'm not sure, there might be some GTK setting or variable that controls this. But still, there are many apps which don't have this option or don't respect the setting.Re: Tell specific apps to use dark theme
Thank you for your reply. I'm aware of some apps having those settings. However, the ones I'd like to change are the ones that don't have such a setting
Specifically, I'd like dark-themed Electron apps such as Spotify and Discord to have a dark titlebar.
and while this does theme GTK apps accordingly, the titlebar remains light.
Specifically, I'd like dark-themed Electron apps such as Spotify and Discord to have a dark titlebar.
I have tried to use the environment variableI'm not sure, there might be some GTK setting or variable that controls this. But still, there are many apps which don't have this option or don't respect the setting.
Code: Select all
GTK_THEME=Mint-Y-Dark-Aqua
Re: Tell specific apps to use dark theme
This works for me:
:)
Code: Select all
GTK_CSD=1 GTK_THEME=Mint-Y-Dark-Aqua:dark xfce4-terminal --disable-server
An old Gentoo user, trying out Linux Mint.
Re: Tell specific apps to use dark theme
Thank you. That does work for something like Xed, but it doesn't seem to affect Spotify or Discord. Still, a step in the right directionhund wrote: ⤴Tue Feb 13, 2024 4:30 pm This works for me:
Code: Select all
GTK_CSD=1 GTK_THEME=Mint-Y-Dark-Aqua:dark xfce4-terminal --disable-server