mirror-chatterino2/src/widgets/scrollbarhighlight.cpp

17 lines
426 B
C++
Raw Normal View History

2017-01-18 21:30:23 +01:00
#include "widgets/scrollbarhighlight.h"
2017-01-03 21:19:33 +01:00
#include "colorscheme.h"
2017-04-14 17:52:22 +02:00
namespace chatterino {
namespace widgets {
2017-01-18 21:30:23 +01:00
2017-04-12 17:46:44 +02:00
ScrollBarHighlight::ScrollBarHighlight(float position, int colorIndex, Style style, QString tag)
2017-05-27 16:16:39 +02:00
: _style(style)
, _position(position)
2017-04-12 17:46:44 +02:00
, _colorIndex(std::max(0, std::min(ColorScheme::getInstance().HighlightColorCount, colorIndex)))
, _tag(tag)
2017-01-03 21:19:33 +01:00
{
}
2017-05-27 16:16:39 +02:00
} // namespace widgets
} // namespace chatterino