Enable GTK3 platform theme integration on Linux to properly detect system dark/light mode settings. Without this, Qt applications on Linux don’t automatically adapt to the system theme, unlike macOS where it works out of the box.
The fix sets QT_QPA_PLATFORMTHEME to “gtk3” before QApplication initialization, but only if the user hasn’t already set a platform theme. This respects existing user configurations while providing better defaults for desktop environments using GTK (GNOME, Unity, XFCE, MATE).
The change is non-breaking as Qt falls back gracefully if the GTK platform theme plugin is unavailable