mirror-chatterino2/src/widgets/helper/scrollbarhighlight.cpp

20 lines
563 B
C++
Raw Normal View History

2017-11-12 17:21:50 +01:00
#include "widgets/helper/scrollbarhighlight.hpp"
2017-06-11 09:31:45 +02:00
#include "colorscheme.hpp"
#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
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