mirror-chatterino2/src/widgets/helper/ScrollbarHighlight.cpp

35 lines
641 B
C++
Raw Normal View History

2018-06-26 14:09:39 +02:00
#include "widgets/helper/ScrollbarHighlight.hpp"
2018-06-28 19:46:45 +02:00
#include "singletons/Themes.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)
, 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