/* ############################################################################### # # # The MIT License # # # # Copyright (C) 2017 by Juergen Skrotzky (JorgenVikingGod@gmail.com) # # >> https://github.com/Jorgen-VikingGod # # # # Sources: https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle # # # ############################################################################### */ #ifndef DARKSTYLE_HPP #define DARKSTYLE_HPP #include #include #include #include #include class DarkStyle : public QProxyStyle { Q_OBJECT public: DarkStyle(); explicit DarkStyle(QStyle *style); QStyle *baseStyle() const; void polish(QPalette &palette) override; void polish(QApplication *app) override; private: QStyle *styleBase(QStyle *style = Q_NULLPTR) const; }; #endif // DARKSTYLE_HPP