iVS3D v2.0.0
Loading...
Searching...
No Matches
DarkStyle.h
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 <QFile>
19#include <QFont>
20#include <QProxyStyle>
21#include <QStyleFactory>
22
23class DarkStyle : public QProxyStyle {
24 Q_OBJECT
25
26 public:
27 DarkStyle();
28 explicit DarkStyle(QStyle *style);
29
30 QStyle *baseStyle() const;
31
32 void polish(QPalette &palette) override;
33 void polish(QApplication *app) override;
34
35 private:
36 QStyle *styleBase(QStyle *style = Q_NULLPTR) const;
37};
38
39#endif // DARKSTYLE_HPP
The DarkStyle class is responsible for the dark style layout. See https://github.com/Jorgen-VikingGod...
Definition DarkStyle.h:23