mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:46:41 +00:00
UI: Fix palette.
This commit is contained in:
parent
95786495c6
commit
821f0e6274
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user