Starting from version 3.1.2, the GNU Image Manipulation Program will have the option to respect the system color scheme on Linux, thanks to XDG Desktop Portal and @nielsdg's merge request that was used as a foundation. Every desktop that supports the Settings portal interface will be able to make use of that functionality.