system_theme
system_theme copied to clipboard
[linux] Wrong accent color on Manjaro GNOME
I tried to build and run a flutter project using system_theme on the latest version of Linux Manjaro GNOME. (GNOME 48 | Linux 6.14.6-2-MANJARO)
In the OS appearance settings UI, I've set the accent color to orange. System_theme gets an accent color from the OS but it seems to get the wrong one: the default bluish green (Color(alpha: 1.0000, red: 0.0863, green: 0.6275, blue: 0.5216, colorSpace: ColorSpace.sRGB))
When I run the following command, it returns 'orange':
gsettings get org.gnome.desktop.interface accent-color
This problem seems to stem more from the OS. The Settings UI also uses the bluish green accent color (see the green outline in "Style" setting).
But as the command above returns the color selected by the user, maybe system_theme can find a workaround or simply wait the OS to expose the accent color in a better way, you see.
Thanks for considering this feedback.
This is the function we use to get the system theme color on Linux:
https://github.com/bdlukaa/system_theme/blob/4d8f11560560ef0d0d27cc6460c3012bce09ee72/system_theme/linux/system_theme_plugin.cc#L21-L34
Maybe changing theme_selected_bg_color to accent-color would fix this issue, but there are many distros to be aware of. Another option is exposing this property.