mirror of
https://github.com/tnodir/fort
synced 2024-11-15 11:25:08 +00:00
UI: Fix palette.
This commit is contained in:
parent
95786495c6
commit
821f0e6274
@ -1,5 +1,6 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include <QStyle>
|
||||||
#include <QStyleFactory>
|
#include <QStyleFactory>
|
||||||
|
|
||||||
#ifdef USE_VISUAL_LEAK_DETECTOR
|
#ifdef USE_VISUAL_LEAK_DETECTOR
|
||||||
@ -64,7 +65,10 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QApplication::setStyle(QStyleFactory::create("Fusion"));
|
// Style & Palette
|
||||||
|
const auto fusionStyle = QStyleFactory::create("Fusion");
|
||||||
|
QApplication::setStyle(fusionStyle);
|
||||||
|
QApplication::setPalette(fusionStyle->standardPalette());
|
||||||
|
|
||||||
registerMetaTypes();
|
registerMetaTypes();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user