2018-01-24 20:27:56 +01:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-26 14:09:39 +02:00
|
|
|
#include "widgets/helper/RippleEffectButton.hpp"
|
2018-01-24 20:27:56 +01:00
|
|
|
|
|
|
|
namespace chatterino {
|
2018-03-31 13:44:15 +02:00
|
|
|
|
2018-01-24 20:27:56 +01:00
|
|
|
class TitleBarButton : public RippleEffectButton
|
|
|
|
{
|
|
|
|
public:
|
2018-07-04 20:42:51 +02:00
|
|
|
enum Style {
|
|
|
|
None = 0,
|
|
|
|
Minimize = 1,
|
|
|
|
Maximize = 2,
|
|
|
|
Unmaximize = 4,
|
|
|
|
Close = 8,
|
|
|
|
User = 16,
|
|
|
|
Settings = 32
|
|
|
|
};
|
2018-01-24 20:27:56 +01:00
|
|
|
|
|
|
|
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 chatterino
|