Merge pull request #744 from Chronophylos/custom-highlight-color
Add hidden setting for highlight color
This commit is contained in:
@@ -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};
|
||||||
|
|||||||
@@ -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 =
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user