mirror-chatterino2/widgets/scrollbarhighlight.cpp

19 lines
441 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-01-18 21:30:23 +01:00
namespace chatterino {
namespace widgets {
2017-01-11 18:52:09 +01:00
ScrollBarHighlight::ScrollBarHighlight(float position, int colorIndex,
Style style, QString tag)
2017-01-18 04:33:30 +01:00
: position(position)
, colorIndex(std::max(
2017-01-24 20:15:12 +01:00
0, std::min(ColorScheme::getInstance().HighlightColorCount, colorIndex)))
2017-01-18 04:33:30 +01:00
, style(style)
, tag(tag)
2017-01-11 18:52:09 +01:00
, next(NULL)
2017-01-03 21:19:33 +01:00
{
}
2017-01-18 21:30:23 +01:00
}
}