Exclude a program from dark-mode

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
WebHeer
Level 1
Level 1
Posts: 23
Joined: Tue Feb 13, 2018 8:46 am
Location: The Netherlands (Holland)

Exclude a program from dark-mode

Post by WebHeer »

Hi All,

I like to have Linux Mint to have in Dark-mode. Except for one program, that is FreeFileSync. That program is ugly in dark-mode. So is it possible to have dark-mode on and at the same time exclude the mentioned program from it?

Kind regards
WenHeer
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
WebHeer
Level 1
Level 1
Posts: 23
Joined: Tue Feb 13, 2018 8:46 am
Location: The Netherlands (Holland)

Re: Exclude a program from dark-mode

Post by WebHeer »

When I put KDE in dark mode in Kubutu or Fedora, the following happens.
I installed both LibreOffice and FreeFileSync via FlatPak. They appear in LightMode while the system is in DarkMode. That's exactly what I want for these 2 programs.

In Linux Mint this only works for LibreOffice too, but not for FreeFileSync.

Which is also strange. When I install LibreOffice with the software manager (FlatPak) from LM, I get the program in DarkMode. If I install LibreOffice with the link from Flathub, LibreOffice appears in LightMode.

If I first install LibreOffice from LM, uninstall it and then reinstal itl with the link from Flathub, LibreOffice remains in dark mode and is no longer available in Light mode.
All i would like is all in LM in DarkMode except LibreOffice en FreeFileSync.

Anyone?
maxcw
Level 1
Level 1
Posts: 16
Joined: Wed May 12, 2021 7:55 am

Re: Exclude a program from dark-mode

Post by maxcw »

I have the same problem. FreeFileSync look really ugly, same for Shotcut and Authenticator. They don't follow system default cinnamon dark theme even if the flatpak cinnamon theme is installed. Is there any way to force them to use system theme? I've tried numerous tweaks that I could find on google, but no luck
User avatar
all41
Level 19
Level 19
Posts: 9498
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Exclude a program from dark-mode

Post by all41 »

I have a tray launcher to switch to a light theme, and another tor return to dark.
The launcher for light theme point to a bash script:

Code: Select all

#!/bin/bash
#set Window Borders
gsettings set org.mate.Marco.general theme 'Mint-X' 
#set Icons
gsettings set org.mate.interface icon-theme 'Mint-X'
#Set Contols
gsettings set org.mate.interface gtk-theme 'Mint-X'
exit
To return to dark mode:

Code: Select all

#!/bin/bash
#set Window Border
gsettings set org.mate.Marco.general theme 'Spidey';
#set Icons
gsettings set org.mate.interface icon-theme 'Mint-X-Aqua';
#Set Contols
gsettings set org.mate.interface gtk-theme 'Adwaita-dark';
exit
So these can be combined in a command to launch an app with a light theme.
example for shotcut:

Code: Select all

#!/bin/bash
#set Window Borders light_theme
gsettings set org.mate.Marco.general theme 'Mint-X' 
#set Icons light_theme
gsettings set org.mate.interface icon-theme 'Mint-X'
#Set Contols light_theme
gsettings set org.mate.interface gtk-theme 'Mint-X'

shotcut %F ;

#reset Window Border dark-theme
gsettings set org.mate.Marco.general theme 'Spidey'
#reset Icons dark_theme
gsettings set org.mate.interface icon-theme 'Mint-X-Aqua'
#reset Contols dark_theme
gsettings set org.mate.interface gtk-theme 'Adwaita-dark'

exit
After shotcut is closed the theme reverts back to my dark theme settings.
For shotcut the Settings/Theme must be set to 'System' and choose your own light and dark theme setup.
This should also work for freefilesync.
This works on mATE--other de will need some changes
Everything in life was difficult before it became easy.
Locked

Return to “Software & Applications”