-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDarkStyle.h
54 lines (46 loc) · 2.3 KB
/
DarkStyle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
###############################################################################
# #
# 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 FILES **************************************************************/
#include <QApplication>
#include <QProxyStyle>
#include <QStyleFactory>
#include <QFont>
#include <QFile>
/* CLASS DECLARATION **********************************************************/
/** CMainWindow class is a simple singleton to adjust style/palette/stylesheets
*******************************************************************************/
class DarkStyle : public QProxyStyle
{
Q_OBJECT
// PUBLIC MEMBERS *************************************************************
// PROTECTED MEMBERS **********************************************************
// PRIVATE MEMBERS ************************************************************
// CONSTRUCTOR/DESTRUCTOR *****************************************************
// PUBLIC METHODS *************************************************************
public:
DarkStyle();
explicit DarkStyle(QStyle *style);
QStyle *baseStyle() const;
void polish(QPalette &palette) override;
void polish(QApplication *app) override;
// PROTECTED METHODS **********************************************************
// PRIVATE METHODS ************************************************************
private:
QStyle *styleBase(QStyle *style=Q_NULLPTR) const;
};
#endif // _DarkStyle_HPP
//*****************************************************************************
// END OF FILE
//*****************************************************************************