BigBlueBox
An Inventory Management System for a NYLT Course or other Boy Scout Programs
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
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 _DarkStyle_HPP
15 #define _DarkStyle_HPP
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 // _DarkStyle_HPP
DarkStyle()
Definition: DarkStyle.cpp:16
Definition: DarkStyle.h:23
void polish(QPalette &palette) override
Definition: DarkStyle.cpp:34
QStyle * styleBase(QStyle *style=Q_NULLPTR) const
Definition: DarkStyle.cpp:24
QStyle * baseStyle() const
Definition: DarkStyle.cpp:29