Add hidden setting for highlight color

This commit is contained in:
Chronophylos 2018-10-01 13:05:50 +02:00
parent cd571a7e25
commit 378ea157a1
3 changed files with 3 additions and 1 deletions

View file

@ -141,6 +141,7 @@ public:
"/highlighting/whisperHighlight/enableSound", false}; "/highlighting/whisperHighlight/enableSound", false};
BoolSetting enableWhisperHighlightTaskbar = { BoolSetting enableWhisperHighlightTaskbar = {
"/highlighting/whisperHighlight/enableTaskbarFlashing", false}; "/highlighting/whisperHighlight/enableTaskbarFlashing", false};
QStringSetting highlightColor = {"/highlighting/color", "#4B282C"};
/// Logging /// Logging
BoolSetting enableLogging = {"/logging/enabled", false}; BoolSetting enableLogging = {"/logging/enabled", false};

View file

@ -212,7 +212,7 @@ void Theme::actuallyUpdate(double hue, double multiplier)
this->messages.backgrounds.highlighted = this->messages.backgrounds.highlighted =
blendColors(themeColor, this->messages.backgrounds.regular, 0.8); blendColors(themeColor, this->messages.backgrounds.regular, 0.8);
} else { } else {
this->messages.backgrounds.highlighted = QColor(75, 40, 44); this->messages.backgrounds.highlighted = QColor(getSettings()->highlightColor);
} }
this->messages.backgrounds.subscription = this->messages.backgrounds.subscription =

View file

@ -6,6 +6,7 @@
#include <QBrush> #include <QBrush>
#include <QColor> #include <QColor>
#include <pajlada/settings/setting.hpp> #include <pajlada/settings/setting.hpp>
#include <singletons/Settings.hpp>
namespace chatterino { namespace chatterino {