Theme: System follows the desktop's dark/light setting on Linux GNOME (#7944) (#8123)

* claim: #7944

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Theme: System follows the desktop's dark/light setting on Linux (#7944)

On GNOME (Wayland, or X11 through XWayland) the window toolkit never reports
the desktop's dark or light preference, nor its changes, so Theme: System kept
its colours. The Linux app now reads org.freedesktop.appearance color-scheme
through the XDG Desktop Portal's Settings interface (then GNOME's color-scheme
and gtk-theme when it has no preference) on a thread of its own, follows the
portal's SettingChanged signal, and falls back to gsettings or a slow poll.
The window reads the answer through Services::desktop_dark; the decision from
the raw values is prefs::desktop_prefers_dark. Windows and macOS keep the
window toolkit's theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PaddleStroke
2026-10-30 13:25:23 +00:00
committed by GitHub
parent 3c40edd12a
commit 6e39efd4ac
7 changed files with 306 additions and 4 deletions
+3 -1
View File
@@ -203,7 +203,9 @@ too narrow for a section's buttons, its menu lists them again.
### Colour themes
Interface › **Theme** lists Dark, Light and System (follows the operating system), the built-in
Interface › **Theme** lists Dark, Light and System (follows the operating system, and changes
with it; on Linux it reads the desktop's dark or light style through the desktop portal, as
GNOME and KDE set it), the built-in
themes and any themes you have imported. A choice applies at once. Under the themes, **Viewport** draws the 3D view in the Light or Dark theme's colours whatever the window uses, for example the model on a light view in a dark window (**Follow theme**, the default, keeps the theme's own). **Logo** draws the SolidCraft logo at the top left in shades of the theme's accent instead of the theme's logo colours. The built-in themes are Gruvbox
(dark and light, each in hard, normal and soft contrast), SolidCraft 95, Platinum 9, Cupertino,
Green Phosphor, Amber Phosphor, Blueprint, One Dark, Tokyo Night, Solarized Light, Nord, High