Merge pull request #744 from Chronophylos/custom-highlight-color

Add hidden setting for highlight color
This commit is contained in:
pajlada 2018-10-05 18:41:31 +00:00 committed by GitHub
commit 57eb8f9eb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

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

View file

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

View file

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