From 821f0e6274bad138142d84569225289587435e3b Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sat, 25 Jan 2020 09:24:47 +0500 Subject: [PATCH] UI: Fix palette. --- src/ui/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/main.cpp b/src/ui/main.cpp index c8388247..89e0b341 100644 --- a/src/ui/main.cpp +++ b/src/ui/main.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #ifdef USE_VISUAL_LEAK_DETECTOR @@ -64,7 +65,10 @@ int main(int argc, char *argv[]) } #endif - QApplication::setStyle(QStyleFactory::create("Fusion")); + // Style & Palette + const auto fusionStyle = QStyleFactory::create("Fusion"); + QApplication::setStyle(fusionStyle); + QApplication::setPalette(fusionStyle->standardPalette()); registerMetaTypes();