/** * @file home_styled_button.h * @ingroup Widgets * @brief TODO: Document this. */ #ifndef HOME_STYLED_BUTTON_H #define HOME_STYLED_BUTTON_H #include class HomeStyledButton : public QPushButton { Q_OBJECT public: HomeStyledButton(const QString &text, QPair gradientColors, QWidget *parent = nullptr); void updateStylesheet(const QPair &colors); QString generateButtonStylesheet(const QPair &colors); public slots: void paintEvent(QPaintEvent *event) override; private: QPair gradientColors; }; #endif // HOME_STYLED_BUTTON_H