mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
e24dffa961
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
41 lines
985 B
C++
41 lines
985 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include <QColor>
|
|
|
|
namespace chatterino {
|
|
|
|
class ScrollbarHighlight
|
|
{
|
|
public:
|
|
enum Style : char { None, Default, Line };
|
|
|
|
/**
|
|
* @brief Constructs an invalid ScrollbarHighlight.
|
|
*
|
|
* A highlight constructed this way will not show on the scrollbar.
|
|
* For these, use the static ScrollbarHighlight::newSubscription and
|
|
* ScrollbarHighlight::newHighlight methods.
|
|
*/
|
|
ScrollbarHighlight();
|
|
|
|
ScrollbarHighlight(const std::shared_ptr<QColor> color,
|
|
Style style = Default, bool isRedeemedHighlight = false,
|
|
bool isFirstMessageHighlight = false);
|
|
|
|
QColor getColor() const;
|
|
Style getStyle() const;
|
|
bool isRedeemedHighlight() const;
|
|
bool isFirstMessageHighlight() const;
|
|
bool isNull() const;
|
|
|
|
private:
|
|
std::shared_ptr<QColor> color_;
|
|
Style style_;
|
|
bool isRedeemedHighlight_;
|
|
bool isFirstMessageHighlight_;
|
|
};
|
|
|
|
} // namespace chatterino
|