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 <noreply@anthropic.com>
This commit is contained in:
ispyisail
2026-10-24 06:05:26 +13:00
parent 535a3b03a3
commit f3e7bff4ad
+2
View File
@@ -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.