From 378ea157a1a72ed9a63a47e69055a83450f7d662 Mon Sep 17 00:00:00 2001 From: Chronophylos Date: Mon, 1 Oct 2018 13:05:50 +0200 Subject: [PATCH] Add hidden setting for highlight color --- src/singletons/Settings.hpp | 1 + src/singletons/Theme.cpp | 2 +- src/singletons/Theme.hpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/singletons/Settings.hpp b/src/singletons/Settings.hpp index 43b3d8d6a..5a2fae91a 100644 --- a/src/singletons/Settings.hpp +++ b/src/singletons/Settings.hpp @@ -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}; diff --git a/src/singletons/Theme.cpp b/src/singletons/Theme.cpp index cae5da1e2..9d91bab11 100644 --- a/src/singletons/Theme.cpp +++ b/src/singletons/Theme.cpp @@ -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 = diff --git a/src/singletons/Theme.hpp b/src/singletons/Theme.hpp index 6c88e7428..d301d21af 100644 --- a/src/singletons/Theme.hpp +++ b/src/singletons/Theme.hpp @@ -6,6 +6,7 @@ #include #include #include +#include namespace chatterino {