16

I am enjoying the new "snap" applications, but apps installed using this method doesn't seem to be using the system gtk theme I have set.

Some use Adwaita or worse, Raleigh.

How can I have them use the standard Ambience theme I'm using across the whole system?

1
  • Very good point. I don't think that's possible right now but certainly hope that provision will be made for some sort of customization in the future.
    – DK Bose
    Aug 3, 2016 at 16:58

5 Answers 5

10

The issue is being tracked here: themes currently don't work with snaps yet.

1
4

Snap now has GTK theming support, however it requires to have the same theme installed as a snap which you have chosen on your system.

The official gtk-common-themes snap contains Adwaita, Adwaita-Dark, Ambiance, Arc, Arc-Dark, Arc-Darker, Breeze, Breeze-Dark, Communitheme, elementary, HighContrast, Radiance, and Yaru.

There is also adapta-theme and adapta-gtk-snap as well as gtk2-common-themes for GTK2 apps.

If you're not using one of these themes, I believe you're currently out of luck.

2
3

I replaced the snap packages with the apt packages.

snap list

I do the following replacement:

sudo snap remove gnome-calculator gnome-characters gnome-system-monitor gnome-logs
sudo apt install gnome-calculator gnome-characters gnome-system-monitor gnome-logs

Now the theme defined in tweak applied to these apps.

3
  • 3
    This answer doesn't address the question raised.
    – DK Bose
    Jun 2, 2019 at 13:01
  • 2
    However it's a nice work around in a pinch Aug 28, 2019 at 16:32
  • I think this comment is perfectly fine, because the other replies do not address the question raised as well.
    – maxadamo
    Jan 1, 2020 at 17:18
2

In some cases, you can force the snap to start with a theme by using the enviromental variable like this

GTK_THEME=Adwaita-dark /snap/bin/libreoffice.writer
2
  • Doesn't work for Okular, which is a Qt-application
    – cipricus
    Dec 13, 2019 at 11:50
  • Doesn't work if that theme is not set at desktop level.
    – cipricus
    Dec 13, 2019 at 12:16
0

If your theme is not available as a snap, a quick and easy fix is to automatically mount the whole themes folder on top of your snap after reboot. So for example if you're trying to theme Shutter, you would

sudo crontab -e

And add the following line:

@reboot mount --bind -o nodev,ro /usr/share/themes /snap/shutter/current/usr/share/themes
1
  • Interesting, can you explain nodev,ro part?
    – Pixsa
    Sep 23, 2021 at 12:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.