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

20 lines
578 B
C++
Raw Normal View History

2017-11-12 17:21:50 +01:00
#include "widgets/helper/scrollbarhighlight.hpp"
2017-12-31 00:50:07 +01:00
#include "singletons/thememanager.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)
2017-12-31 00:50:07 +01:00
: themeManager(parent->themeManager)
, position(_position)
2017-12-31 00:50:07 +01:00
, colorIndex(std::max(0, std::min(this->themeManager.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