26 static QStyle *base = !style ? QStyleFactory::create(QStringLiteral(
"Fusion")) : style;
38 palette.setColor(QPalette::Window,QColor(53,53,53));
39 palette.setColor(QPalette::WindowText,Qt::white);
51 palette.setColor(QPalette::Disabled,QPalette::WindowText,QColor(127,127,127));
52 palette.setColor(QPalette::Base,QColor(42,42,42));
53 palette.setColor(QPalette::AlternateBase,QColor(66,66,66));
54 palette.setColor(QPalette::ToolTipBase,Qt::white);
55 palette.setColor(QPalette::ToolTipText,QColor(53,53,53));
56 palette.setColor(QPalette::Text,Qt::white);
57 palette.setColor(QPalette::Disabled,QPalette::Text,QColor(127,127,127));
58 palette.setColor(QPalette::Dark,QColor(35,35,35));
59 palette.setColor(QPalette::Shadow,QColor(20,20,20));
60 palette.setColor(QPalette::Button,QColor(53,53,53));
61 palette.setColor(QPalette::ButtonText,Qt::white);
62 palette.setColor(QPalette::Disabled,QPalette::ButtonText,QColor(127,127,127));
63 palette.setColor(QPalette::BrightText,Qt::red);
64 palette.setColor(QPalette::Link,QColor(42,130,218));
65 palette.setColor(QPalette::Highlight,QColor(42,130,218));
66 palette.setColor(QPalette::Disabled,QPalette::Highlight,QColor(80,80,80));
67 palette.setColor(QPalette::HighlightedText,Qt::white);
68 palette.setColor(QPalette::Disabled,QPalette::HighlightedText,QColor(127,127,127));
77 QFont defaultFont = QApplication::font();
78 defaultFont.setPointSize(defaultFont.pointSize()+1);
79 app->setFont(defaultFont);
82 QFile qfDarkstyle(QStringLiteral(
":/darkstyle/qss"));
83 if (qfDarkstyle.open(QIODevice::ReadOnly | QIODevice::Text))
86 QString qsStylesheet = QString::fromLatin1(qfDarkstyle.readAll());
87 app->setStyleSheet(qsStylesheet);
QStyle * baseStyle() const
void polish(QPalette &palette) override
QStyle * styleBase(QStyle *style=Q_NULLPTR) const