From 8995f43a157cf5ddf11af89a5122439bf2ca26aa Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Wed, 19 Nov 2025 18:48:34 +0100 Subject: [PATCH] Gui: Fix stylesheet loading order For some platforms due to event loop and timer triggering being not deterministic stylesheets could be loaded before style parameters were fully loaded. This caused warnings about style parameters to appear potentially confusing users. This commit changes the stylesheet loading to happen much earlier in the process so the stylesheet is applied before theme preselection has chance to happen. --- src/Gui/StartupProcess.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Gui/StartupProcess.cpp b/src/Gui/StartupProcess.cpp index 4f1e95c44b..2df30da339 100644 --- a/src/Gui/StartupProcess.cpp +++ b/src/Gui/StartupProcess.cpp @@ -225,6 +225,7 @@ void StartupPostProcess::execute() setLocale(); setCursorFlashing(); setQtStyle(); + setStyleSheet(); checkOpenGL(); loadOpenInventor(); setBranding(); @@ -503,8 +504,6 @@ void StartupPostProcess::activateWorkbench() fcApp->initSpaceball(mainWindow); } - setStyleSheet(); - // Now run the background autoload, for workbenches that should be loaded at startup, but not // displayed to the user immediately autoloadModules(wb);