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

37 lines
691 B
C++
Raw Normal View History

2017-11-12 17:21:50 +01:00
#include "widgets/helper/scrollbarhighlight.hpp"
2017-12-31 00:50:07 +01:00
#include "singletons/thememanager.hpp"
#include "widgets/scrollbar.hpp"
2017-01-03 21:19:33 +01:00
2017-04-14 17:52:22 +02:00
namespace chatterino {
namespace widgets {
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 widgets
} // namespace chatterino