Raven Core  3.0.0
P2P Digital Currency
darkstyle.h
Go to the documentation of this file.
1 /*
2 ###############################################################################
3 # #
4 # The MIT License #
5 # #
6 # Copyright (C) 2017 by Juergen Skrotzky (JorgenVikingGod@gmail.com) #
7 # >> https://github.com/Jorgen-VikingGod #
8 # #
9 # Sources: https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle #
10 # #
11 ###############################################################################
12 */
13 
14 #ifndef RAVENCOIN_DARKSTYLE_H
15 #define RAVENCOIN_DARKSTYLE_H
16 
17 #include <QApplication>
18 #include <QProxyStyle>
19 #include <QStyleFactory>
20 #include <QFont>
21 #include <QFile>
22 
23 class DarkStyle : public QProxyStyle
24 {
25 Q_OBJECT
26 
27 public:
28  DarkStyle();
29  explicit DarkStyle(QStyle *style);
30 
31  QStyle *baseStyle() const;
32 
33  void polish(QPalette &palette) override;
34  void polish(QApplication *app) override;
35 
36 private:
37  QStyle *styleBase(QStyle *style = Q_NULLPTR) const;
38 };
39 
40 #endif //RAVENCOIN_DARKSTYLE_H
QStyle * baseStyle() const
Definition: darkstyle.cpp:30
void polish(QPalette &palette) override
Definition: darkstyle.cpp:35
QStyle * styleBase(QStyle *style=Q_NULLPTR) const
Definition: darkstyle.cpp:25