mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-25 15:34:13 +01:00
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:
@@ -1931,6 +1931,8 @@ void QETApp::useSystemPalette(bool use) {
|
|||||||
// The base palette is always initial_palette_ (see initStyle()); the
|
// The base palette is always initial_palette_ (see initStyle()); the
|
||||||
// setting only decides whether the user's style.css is layered on top.
|
// setting only decides whether the user's style.css is layered on top.
|
||||||
qApp->setPalette(initial_palette_);
|
qApp->setPalette(initial_palette_);
|
||||||
|
// A custom color may have switched the icon theme; switch it back.
|
||||||
|
applyIconTheme(initial_palette_);
|
||||||
if (use) {
|
if (use) {
|
||||||
// Drop any stylesheet previously loaded from style.css: with system
|
// Drop any stylesheet previously loaded from style.css: with system
|
||||||
// colors requested, the palette set just above is what provides them.
|
// colors requested, the palette set just above is what provides them.
|
||||||
|
|||||||
Reference in New Issue
Block a user