Pinta icon indicating copy to clipboard operation
Pinta copied to clipboard

Color Scheme Unavailable on Flatpak/Not respecting GNOME light/dark mode

Open wellstring opened this issue 1 year ago • 1 comments

Description There is no option to switch color scheme, and Pinta does not respect the dark/light theme toggle in GNOME.

To Reproduce

  • Install Pinta via a flatpak (Flathub)
  • Check the view tab
  • Toggle light/dark mode in GNOME settings
  • Observe Pinta remains in light mode

Additional Info

  • I'm not sure if this is relevant at all, but I use an NVidia GPU with proprietary drivers.

image

Version OS: Fedora 40 Silverblue Version: 2.1.2 (via Flathub)

wellstring avatar Oct 17 '24 05:10 wellstring

I'm not entirely sure if there are any flatpak issues at play here, but it's possible that the GNOME light/dark toggle won't affect Pinta 2.1 since it's using GTK3. Pinta should be following the system GTK3 theme, but some themes which have a dark variant only use the dark mode when this is turned on by a setting (https://wiki.archlinux.org/title/GTK#Dark_theme_variant) or when an application specifically requests it, which Pinta 2.1 isn't doing.

This is expected to work in Pinta 2.2 which uses GTK4 and libadwaita, which automatically switches between the libadwaita light / dark modes based on the system preference.

Once flatpak builds are ready for Pinta 2.2 this should be tested to verify it does work under flatpak

cameronwhite avatar Oct 18 '24 02:10 cameronwhite

Pinta should be following the system GTK3 theme, but some themes which have a dark variant only use the dark mode when this is turned on by a setting (https://wiki.archlinux.org/title/GTK#Dark_theme_variant)

Until we get Pinta 2.2, in the meantime, for anybody who wants to enable dark theme in Pinta 2.1.2:

  1. Create GTK configuration file.

    > touch ~/.var/app/com.github.PintaProject.Pinta/config/gtk-3.0/settings.ini
    
  2. Add the following lines:

    [Settings]
    gtk-application-prefer-dark-theme = true
    

vhbui02 avatar Mar 11 '25 16:03 vhbui02