2018-01-24 20:27:56 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "widgets/helper/rippleeffectbutton.hpp"
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
namespace widgets {
|
2018-03-31 13:44:15 +02:00
|
|
|
|
2018-01-24 20:27:56 +01:00
|
|
|
class TitleBarButton : public RippleEffectButton
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum Style { Minimize = 1, Maximize = 2, Unmaximize = 4, Close = 8, User = 16, Settings = 32 };
|
|
|
|
|
|
|
|
TitleBarButton();
|
|
|
|
|
|
|
|
Style getButtonStyle() const;
|
|
|
|
void setButtonStyle(Style style);
|
|
|
|
|
|
|
|
protected:
|
2018-03-31 13:44:15 +02:00
|
|
|
void paintEvent(QPaintEvent *) override;
|
2018-01-24 20:27:56 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
Style style;
|
|
|
|
};
|
2018-03-31 13:44:15 +02:00
|
|
|
|
2018-01-24 20:27:56 +01:00
|
|
|
} // namespace widgets
|
|
|
|
} // namespace chatterino
|