mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
18 lines
441 B
C++
18 lines
441 B
C++
#include "widgets/scrollbarhighlight.h"
|
|
#include "colorscheme.h"
|
|
|
|
namespace chatterino {
|
|
namespace widgets {
|
|
|
|
ScrollBarHighlight::ScrollBarHighlight(float position, int colorIndex,
|
|
Style style, QString tag)
|
|
: position(position)
|
|
, colorIndex(std::max(
|
|
0, std::min(ColorScheme::getInstance().HighlightColorCount, colorIndex)))
|
|
, style(style)
|
|
, tag(tag)
|
|
, next(NULL)
|
|
{
|
|
}
|
|
}
|
|
}
|