2017-06-11 09:31:45 +02:00
|
|
|
#include "widgets/scrollbarhighlight.hpp"
|
|
|
|
#include "colorscheme.hpp"
|
2017-06-26 16:41:20 +02:00
|
|
|
#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
|
|
|
|
2017-06-26 16:41:20 +02:00
|
|
|
ScrollBarHighlight::ScrollBarHighlight(double _position, int _colorIndex, ScrollBar *parent,
|
|
|
|
Style _style, QString _tag)
|
|
|
|
: colorScheme(parent->colorScheme)
|
|
|
|
, position(_position)
|
|
|
|
, colorIndex(std::max(0, std::min(this->colorScheme.HighlightColorCount, _colorIndex)))
|
|
|
|
, style(_style)
|
|
|
|
, tag(_tag)
|
2017-01-03 21:19:33 +01:00
|
|
|
{
|
|
|
|
}
|
2017-05-27 16:16:39 +02:00
|
|
|
|
|
|
|
} // namespace widgets
|
|
|
|
} // namespace chatterino
|