Replies: 2 comments 3 replies
-
Nice work! I would perhaps try it one day |
Beta Was this translation helpful? Give feedback.
3 replies
-
nwg-look seems to automatically apply this if a theme supports it, but it has to be manually compiled on non-Arch-based distros |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
As it turns out, GTK 4 theming is totally possible on libadwaita applications! For example, most if not all themes by vinceliuice not only support this but also provide a script to do so. All you need is to modify some things in .config/gtk-4.0
Instructions
gtk-4.0
folder inside~/.themes
is the most common place and recommendedgtk.css
andgtk-dark.css
files of your theme: ususally located at~/.themes/YOUR_THEME_NAME/gtk-4.0/gtk.css
and~/.themes/YOUR_THEME_NAME/gtk-4.0/gtk-dark.css
Say your theme is at ~/.themes/ChromeOS.
Execute the following commands:
Notes and Conclusion
I have tested this on Ubuntu and it works for all my GTK 4 applications, including those using libadwaita, like Nautilus, GNOME Tweaks, GNOME Software and GNOME Settings. However, it only works for those that are not sandboxed. If the application comes from flatpak, this will not work. I'm not sure about snap though.
I'd also like to ask the Linux Mint developers to somewhat implement this as a native feature instead of the user having to do this kind of things.
EDIT
Turns out, it is also possible to make flatpak applications use the theme. In order to do so however, we need to expose the ~/.themes folder to the flatpak applications. I have tried using other folders but ~/.themes seems to be the only one that actually works at the moment. However, this is a serious security risk. So what I have done instead is to make the ~/.themes read-only for non-sudo applications:
Please note this is just a temporary workaround. For now, it seems to have applied my theme to all flatpak applications I have (except krita of course because it doesn't use GTK at all). Definitely not ideal since it requires modifying permissions and sudo, but it's OK for me.
Beta Was this translation helpful? Give feedback.
All reactions