UI: Fix palette.

This commit is contained in:
Nodir Temirkhodjaev 2020-01-25 09:24:47 +05:00
parent 95786495c6
commit 821f0e6274

View File

@ -1,5 +1,6 @@
#include <QApplication>
#include <QMessageBox>
#include <QStyle>
#include <QStyleFactory>
#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();