From f3e7bff4ad8cf4892a02b1b3533db52dcfd3b9db Mon Sep 17 00:00:00 2001 From: ispyisail Date: Sat, 24 Oct 2026 06:05:26 +1300 Subject: [PATCH] Switch the icons back when the system colors are chosen again Choosing a custom color switches to the icon set that suits it, but ticking "use system colors" again kept that set until the next start: after a light color, the dark system theme showed dark icons on dark menus (issue #1591, second report). Co-Authored-By: Claude Opus 5.5 --- sources/qetapp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/qetapp.cpp b/sources/qetapp.cpp index 6f1197f89..286166da6 100644 --- a/sources/qetapp.cpp +++ b/sources/qetapp.cpp @@ -1931,6 +1931,8 @@ void QETApp::useSystemPalette(bool use) { // The base palette is always initial_palette_ (see initStyle()); the // setting only decides whether the user's style.css is layered on top. qApp->setPalette(initial_palette_); + // A custom color may have switched the icon theme; switch it back. + applyIconTheme(initial_palette_); if (use) { // Drop any stylesheet previously loaded from style.css: with system // colors requested, the palette set just above is what provides them.