demetrisk03 / custom-accent-colors

A GNOME Shell Extension that provides 7 custom accent colors. The selected accent color can be applied to GTK4/GTK3 apps and the GNOME Shell.
https://extensions.gnome.org/extension/5547/custom-accent-colors
GNU General Public License v3.0
71 stars 14 forks source link

What does the "Flatpak Theming" option do? #43

Closed korpe1 closed 1 month ago

korpe1 commented 1 month ago

What does the "Flatpak Theming" option do? I mean, accent colours are represented in the universal Portals API which native, Flatpak, etc. apps can always use if they want. So, why dedicated option for Flatpak?

demetrisk03 commented 1 month ago

This extension doesn't use the Portal API, which was created recently. Instead, it works similarly to Gradience by modifying the gtk.css file in the config directory. The Flatpak theming option gives all Flatpak apps read access to that file.

korpe1 commented 1 month ago

Okay, so this extension doesn't use portal API at all :(

The Flatpak theming option gives all Flatpak apps read access to that file.

Does it use the flatpak cli API? For example something like flatpak override --user --filesystem=xdg-config/gtk-4.0?

demetrisk03 commented 1 month ago

yes, you can take a look at the source code to see exactly how it works :)