mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
20 lines
563 B
C++
20 lines
563 B
C++
#include "widgets/helper/scrollbarhighlight.hpp"
|
|
#include "colorscheme.hpp"
|
|
#include "widgets/scrollbar.hpp"
|
|
|
|
namespace chatterino {
|
|
namespace widgets {
|
|
|
|
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)
|
|
{
|
|
}
|
|
|
|
} // namespace widgets
|
|
} // namespace chatterino
|