2018-06-26 14:09:39 +02:00
|
|
|
#include "widgets/helper/ScrollbarHighlight.hpp"
|
2018-06-28 20:03:04 +02:00
|
|
|
#include "singletons/Theme.hpp"
|
2018-06-26 14:09:39 +02:00
|
|
|
#include "widgets/Scrollbar.hpp"
|
2017-01-03 21:19:33 +01:00
|
|
|
|
2017-04-14 17:52:22 +02:00
|
|
|
namespace chatterino {
|
2017-01-18 21:30:23 +01:00
|
|
|
|
2018-01-06 03:48:56 +01:00
|
|
|
ScrollbarHighlight::ScrollbarHighlight()
|
|
|
|
: color(Color::Highlight)
|
|
|
|
, style(Style::None)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
ScrollbarHighlight::ScrollbarHighlight(Color _color, Style _style)
|
|
|
|
: color(_color)
|
2017-06-26 16:41:20 +02:00
|
|
|
, style(_style)
|
2017-01-03 21:19:33 +01:00
|
|
|
{
|
|
|
|
}
|
2017-05-27 16:16:39 +02:00
|
|
|
|
2018-01-06 03:48:56 +01:00
|
|
|
ScrollbarHighlight::Color ScrollbarHighlight::getColor() const
|
|
|
|
{
|
|
|
|
return this->color;
|
|
|
|
}
|
|
|
|
|
|
|
|
ScrollbarHighlight::Style ScrollbarHighlight::getStyle() const
|
|
|
|
{
|
|
|
|
return this->style;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ScrollbarHighlight::isNull() const
|
|
|
|
{
|
|
|
|
return this->style == None;
|
|
|
|
}
|
|
|
|
|
2017-05-27 16:16:39 +02:00
|
|
|
} // namespace chatterino
|