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
3 changed files with 3 additions and 1 deletions
+1
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};
+1 -1
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 =
+1
View File
@@ -6,6 +6,7 @@
#include <QBrush>
#include <QColor>
#include <pajlada/settings/setting.hpp>
#include <singletons/Settings.hpp>
namespace chatterino {