Better Highlights (#1320)
* Support for user-defined sounds and colors * Make color & sound columns selectable * Add custom row for subscription highlights * Add subscriptions to custom highlights and centrally manage highlight colors * Dynamically update message highlight colors
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#include "messages/Message.hpp"
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "MessageElement.hpp"
|
||||
#include "providers/twitch/PubsubActions.hpp"
|
||||
#include "singletons/Theme.hpp"
|
||||
#include "util/DebugCount.hpp"
|
||||
#include "util/IrcHelpers.hpp"
|
||||
|
||||
@@ -24,11 +27,13 @@ SBHighlight Message::getScrollBarHighlight() const
|
||||
if (this->flags.has(MessageFlag::Highlighted) ||
|
||||
this->flags.has(MessageFlag::HighlightedWhisper))
|
||||
{
|
||||
return SBHighlight(SBHighlight::Highlight);
|
||||
return SBHighlight(this->highlightColor);
|
||||
}
|
||||
else if (this->flags.has(MessageFlag::Subscription))
|
||||
else if (this->flags.has(MessageFlag::Subscription) &&
|
||||
getSettings()->enableSubHighlight)
|
||||
{
|
||||
return SBHighlight(SBHighlight::Subscription);
|
||||
return SBHighlight(
|
||||
ColorProvider::instance().color(ColorType::Subscription));
|
||||
}
|
||||
return SBHighlight();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user