You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
40 lines
1.3 KiB
/*
|
|
###############################################################################
|
|
# #
|
|
# 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 <QApplication>
|
|
#include <QFile>
|
|
#include <QFont>
|
|
#include <QProxyStyle>
|
|
#include <QStyleFactory>
|
|
|
|
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
|