From ca4240dfb179dadc7677a32ed2bd86a523ecb0c7 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Mon, 13 Feb 2023 19:59:46 +0300 Subject: [PATCH] Revert "Revert "UI: WindowManager: Use colorSchemeChanged"" This reverts commit 0a2c48b7ef4765871c9e4df1d2877904fd76f22a. --- src/ui/manager/windowmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/manager/windowmanager.cpp b/src/ui/manager/windowmanager.cpp index a617a084..ba47854e 100644 --- a/src/ui/manager/windowmanager.cpp +++ b/src/ui/manager/windowmanager.cpp @@ -52,7 +52,7 @@ void WindowManager::setUp() setupMainWindow(); #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) - connect(QApplication::styleHints(), &QStyleHints::appearanceChanged, this, + connect(QApplication::styleHints(), &QStyleHints::colorSchemeChanged, this, &WindowManager::setupAppPalette); #endif