demetrisk03 / custom-accent-colors

A GNOME Shell Extension that provides 7 custom accent colors for versions 43-46. 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 12 forks source link

Stays active after removal/disabling #51

Open RobinJ1995 opened 3 weeks ago

RobinJ1995 commented 3 weeks ago

I upgraded to Fedora 41/Gnome 47.

This extension is not available on Gnome 47, as such it was disabled and I can no longer change its settings.

This would be fine, as Gnome 47 includes support for accent colours itself. Except my settings set by the plugin remain active, and I have no more way of undoing them as the plugin is disabled and cannot be re-enabled (due to Gnome version incompatibility).

Screenshot From 2024-10-29 22-15-39 You can see how despite yellow being selected in the native Gnome settings, some UI elements still show up with a green accent colour which is what I had set using this extension before.

demetrisk03 commented 3 weeks ago

hey @RobinJ1995, if you encounter such an error, you can manually remove the gtk.css files from ~/.config/gtk-4.0/gtk.css and ~/.config/gtk-3.0/gtk.css and change the shell theme back to default in gnome tweaks :)

RobinJ1995 commented 3 weeks ago

For those who ended up here looking for a solution, this is what I figured out by looking at the extension code:

To undo Gtk theming

extension.js#L139 shows that the extension creates files ~/.config/gtk-3.0/gtk.css and ~/.config/gtk-4.0/gtk.css.

Verify that both only contain 2 lines starting with @define-color, and if so delete these files.

To undo Gnome Shell theming

extension.js#L176 shows the extension modifies a Gnome Shell theme called Custom-Accent-Colors.

Using a tool like Gnome Tweaks, change the shell theme away from Custom-Accent-Colors.

To undo Flatpak theming

extension.js#L164 shows us exactly which command to run;

flatpak override --user --nofilesystem=xdg-config/gtk-4.0 --nofilesystem=xdg-config/gtk-3.0