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"
|
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)
|
2017-12-31 00:50:07 +01:00
|
|
|
: themeManager(parent->themeManager)
|
2017-06-26 16:41:20 +02:00
|
|
|
, position(_position)
|
2017-12-31 00:50:07 +01:00
|
|
|
, colorIndex(std::max(0, std::min(this->themeManager.HighlightColorCount, _colorIndex)))
|
2017-06-26 16:41:20 +02:00
|
|
|
, style(_style)
|
|
|
|
, tag(_tag)
|
2017-01-03 21:19:33 +01:00
|
|
|
{
|
|
|
|
}
|
2017-05-27 16:16:39 +02:00
|
|
|
|
|
|
|
} // namespace widgets
|
|
|
|
} // namespace chatterino
|