dust3d/src/main.cpp

37 lines
1.4 KiB
C++
Raw Normal View History

#include <QApplication>
#include <QDesktopWidget>
2018-03-11 03:18:24 +00:00
#include <QStyleFactory>
#include "mainwindow.h"
#include "meshlite.h"
int main(int argc, char ** argv)
{
QApplication app(argc, argv);
2018-03-11 03:18:24 +00:00
// QuantumCD/Qt 5 Dark Fusion Palette
// https://gist.github.com/QuantumCD/6245215
qApp->setStyle(QStyleFactory::create("Fusion"));
QPalette darkPalette;
darkPalette.setColor(QPalette::Window, QColor(53,53,53));
darkPalette.setColor(QPalette::WindowText, Qt::white);
darkPalette.setColor(QPalette::Base, QColor(25,25,25));
darkPalette.setColor(QPalette::AlternateBase, QColor(53,53,53));
darkPalette.setColor(QPalette::ToolTipBase, Qt::white);
darkPalette.setColor(QPalette::ToolTipText, Qt::white);
darkPalette.setColor(QPalette::Text, Qt::white);
darkPalette.setColor(QPalette::Button, QColor(53,53,53));
darkPalette.setColor(QPalette::ButtonText, Qt::white);
darkPalette.setColor(QPalette::BrightText, Qt::red);
darkPalette.setColor(QPalette::Link, QColor(42, 130, 218));
darkPalette.setColor(QPalette::Highlight, QColor(42, 130, 218));
darkPalette.setColor(QPalette::HighlightedText, Qt::black);
qApp->setPalette(darkPalette);
2018-03-14 02:55:59 +00:00
qApp->setStyleSheet("QToolTip { color: #ffffff; background-color: #fc6621; border: 1px solid white; }");
2018-03-11 03:18:24 +00:00
QCoreApplication::setApplicationName("Dust 3D");
2018-03-13 12:49:24 +00:00
MainWindow mainWindow;
2018-03-13 12:49:24 +00:00
mainWindow.showMaximized();
return app.exec();
}