refactored the managers
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "widgets/helper/scrollbarhighlight.hpp"
|
||||
#include "colorscheme.hpp"
|
||||
#include "singletons/thememanager.hpp"
|
||||
#include "widgets/scrollbar.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
@@ -7,9 +7,9 @@ namespace widgets {
|
||||
|
||||
ScrollBarHighlight::ScrollBarHighlight(double _position, int _colorIndex, ScrollBar *parent,
|
||||
Style _style, QString _tag)
|
||||
: colorScheme(parent->colorScheme)
|
||||
: themeManager(parent->themeManager)
|
||||
, position(_position)
|
||||
, colorIndex(std::max(0, std::min(this->colorScheme.HighlightColorCount, _colorIndex)))
|
||||
, colorIndex(std::max(0, std::min(this->themeManager.HighlightColorCount, _colorIndex)))
|
||||
, style(_style)
|
||||
, tag(_tag)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user