diff options
Diffstat (limited to 'plugins/Themes/Oxygen2/DarkButton.h')
-rwxr-xr-x | plugins/Themes/Oxygen2/DarkButton.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/Themes/Oxygen2/DarkButton.h b/plugins/Themes/Oxygen2/DarkButton.h new file mode 100755 index 0000000..38dbb60 --- /dev/null +++ b/plugins/Themes/Oxygen2/DarkButton.h @@ -0,0 +1,22 @@ +#ifndef DarkButton_H +#define DarkButton_H + +#include <QPushButton> + +class DarkButton : public QPushButton +{ +public: + DarkButton(QWidget *parent = nullptr); + void paintEvent(QPaintEvent *) override; +protected: + void enterEvent(QEvent *e) override; + void leaveEvent(QEvent *e) override; +private: + QPixmap backgroundLeft,backgroundMiddle,backgroundRight; + QPixmap backgroundPushedLeft,backgroundPushedMiddle,backgroundPushedRight; + QPixmap overLeft,overMiddle,overRight; + bool over; + bool enabled; +}; + +#endif // PROGRESSBARDARK_H |