As you may know, GIMP provides official Linux packages through Flatpak and AppImage. The Flatpak package however does NOT automatically switch app color to light or dark depends on system color scheme.
That’s because Flatpak is running in sandbox environment. The sandbox isolation enhances security and makes easy to distribute newer software releases without worrying about dependency issue. However, it has limited access to host resources causing issues, including theming.