mirror-chatterino2/src/widgets/scrollbarhighlight.cpp
2017-06-11 09:31:45 +02:00

17 lines
430 B
C++

#include "widgets/scrollbarhighlight.hpp"
#include "colorscheme.hpp"
namespace chatterino {
namespace widgets {
ScrollBarHighlight::ScrollBarHighlight(float position, int colorIndex, Style style, QString tag)
: _style(style)
, _position(position)
, _colorIndex(std::max(0, std::min(ColorScheme::getInstance().HighlightColorCount, colorIndex)))
, _tag(tag)
{
}
} // namespace widgets
} // namespace chatterino