mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
34 lines
558 B
C++
34 lines
558 B
C++
#pragma once
|
|
|
|
#include "widgets/helper/Button.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
enum class TitleBarButtonStyle {
|
|
None = 0,
|
|
Minimize = 1,
|
|
Maximize = 2,
|
|
Unmaximize = 4,
|
|
Close = 8,
|
|
User = 16,
|
|
Settings = 32,
|
|
StreamerMode = 64,
|
|
};
|
|
|
|
class TitleBarButton : public Button
|
|
{
|
|
public:
|
|
TitleBarButton();
|
|
|
|
TitleBarButtonStyle getButtonStyle() const;
|
|
void setButtonStyle(TitleBarButtonStyle style_);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *) override;
|
|
|
|
private:
|
|
TitleBarButtonStyle style_{};
|
|
};
|
|
|
|
} // namespace chatterino
|