2018-03-10 06:57:14 +00:00
|
|
|
#include <QApplication>
|
|
|
|
#include <QDesktopWidget>
|
2018-03-11 03:18:24 +00:00
|
|
|
#include <QStyleFactory>
|
2018-03-18 08:46:53 +00:00
|
|
|
#include <QFontDatabase>
|
2018-04-07 08:44:39 +00:00
|
|
|
#include <QDebug>
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include "skeletondocumentwindow.h"
|
|
|
|
#include "theme.h"
|
|
|
|
|
2018-03-10 06:57:14 +00:00
|
|
|
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;
|
2018-04-09 03:39:04 +00:00
|
|
|
darkPalette.setColor(QPalette::Window, Theme::black);
|
|
|
|
darkPalette.setColor(QPalette::WindowText, Theme::white);
|
2018-03-11 03:18:24 +00:00
|
|
|
darkPalette.setColor(QPalette::Base, QColor(25,25,25));
|
|
|
|
darkPalette.setColor(QPalette::AlternateBase, QColor(53,53,53));
|
2018-04-09 03:39:04 +00:00
|
|
|
darkPalette.setColor(QPalette::ToolTipBase, Theme::white);
|
|
|
|
darkPalette.setColor(QPalette::ToolTipText, Theme::white);
|
|
|
|
darkPalette.setColor(QPalette::Text, Theme::white);
|
2018-04-09 14:24:30 +00:00
|
|
|
darkPalette.setColor(QPalette::Disabled, QPalette::Text, Theme::black);
|
2018-03-11 03:18:24 +00:00
|
|
|
darkPalette.setColor(QPalette::Button, QColor(53,53,53));
|
2018-04-09 03:39:04 +00:00
|
|
|
darkPalette.setColor(QPalette::ButtonText, Theme::white);
|
|
|
|
darkPalette.setColor(QPalette::BrightText, Theme::red);
|
2018-03-11 03:18:24 +00:00
|
|
|
darkPalette.setColor(QPalette::Link, QColor(42, 130, 218));
|
2018-04-07 08:44:39 +00:00
|
|
|
darkPalette.setColor(QPalette::Highlight, Theme::white);
|
2018-04-09 03:39:04 +00:00
|
|
|
darkPalette.setColor(QPalette::HighlightedText, Theme::black);
|
2018-03-11 03:18:24 +00:00
|
|
|
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
|
|
|
|
2018-03-10 06:57:14 +00:00
|
|
|
QCoreApplication::setApplicationName("Dust 3D");
|
2018-03-13 12:49:24 +00:00
|
|
|
|
2018-03-20 03:31:05 +00:00
|
|
|
QFont font;
|
|
|
|
font.setWeight(QFont::Light);
|
2018-04-23 00:10:01 +00:00
|
|
|
font.setPixelSize(11);
|
2018-03-26 12:41:46 +00:00
|
|
|
font.setBold(false);
|
2018-03-20 03:31:05 +00:00
|
|
|
QApplication::setFont(font);
|
2018-03-18 08:46:53 +00:00
|
|
|
|
2018-04-10 07:59:20 +00:00
|
|
|
SkeletonDocumentWindow::createDocumentWindow();
|
|
|
|
|
2018-03-10 06:57:14 +00:00
|
|
|
return app.exec();
|
|
|
|
}
|