text: /*
  ###############################################################################
  #                                                                             #
  # 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 <QProxyStyle>
  #include <QStyleFactory>
  #include <QFont>
  #include <QFile>
  
  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;
    virtual void drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget = Q_NULLPTR) const override;
    virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget = Q_NULLPTR) const override;
  
  private:
    QStyle *styleBase(QStyle *style=Q_NULLPTR) const;
  };
  
  #endif  // _DarkStyle_HPP
  
  //*****************************************************************************
  // END OF FILE
  //*****************************************************************************
  