Better Highlights (#1320)
* Support for user-defined sounds and colors * Make color & sound columns selectable * Add custom row for subscription highlights * Add subscriptions to custom highlights and centrally manage highlight colors * Dynamically update message highlight colors
This commit is contained in:
@@ -146,18 +146,39 @@ public:
|
||||
/// Highlighting
|
||||
// BoolSetting enableHighlights = {"/highlighting/enabled", true};
|
||||
BoolSetting customHighlightSound = {"/highlighting/useCustomSound", false};
|
||||
|
||||
BoolSetting enableSelfHighlight = {
|
||||
"/highlighting/selfHighlight/nameIsHighlightKeyword", true};
|
||||
BoolSetting enableSelfHighlightSound = {
|
||||
"/highlighting/selfHighlight/enableSound", true};
|
||||
BoolSetting enableSelfHighlightTaskbar = {
|
||||
"/highlighting/selfHighlight/enableTaskbarFlashing", true};
|
||||
QStringSetting selfHighlightSoundUrl = {
|
||||
"/highlighting/selfHighlightSoundUrl", ""};
|
||||
QStringSetting selfHighlightColor = {"/highlighting/selfHighlightColor",
|
||||
""};
|
||||
|
||||
BoolSetting enableWhisperHighlight = {
|
||||
"/highlighting/whisperHighlight/whispersHighlighted", true};
|
||||
BoolSetting enableWhisperHighlightSound = {
|
||||
"/highlighting/whisperHighlight/enableSound", false};
|
||||
BoolSetting enableWhisperHighlightTaskbar = {
|
||||
"/highlighting/whisperHighlight/enableTaskbarFlashing", false};
|
||||
QStringSetting whisperHighlightSoundUrl = {
|
||||
"/highlighting/whisperHighlightSoundUrl", ""};
|
||||
QStringSetting whisperHighlightColor = {
|
||||
"/highlighting/whisperHighlightColor", ""};
|
||||
|
||||
BoolSetting enableSubHighlight = {
|
||||
"/highlighting/subHighlight/subsHighlighted", true};
|
||||
BoolSetting enableSubHighlightSound = {
|
||||
"/highlighting/subHighlight/enableSound", false};
|
||||
BoolSetting enableSubHighlightTaskbar = {
|
||||
"/highlighting/subHighlight/enableTaskbarFlashing", false};
|
||||
QStringSetting subHighlightSoundUrl = {"/highlighting/subHighlightSoundUrl",
|
||||
""};
|
||||
QStringSetting subHighlightColor = {"/highlighting/subHighlightColor", ""};
|
||||
|
||||
QStringSetting highlightColor = {"/highlighting/color", ""};
|
||||
|
||||
BoolSetting longAlerts = {"/highlighting/alerts", false};
|
||||
@@ -168,7 +189,7 @@ public:
|
||||
QStringSetting logPath = {"/logging/path", ""};
|
||||
|
||||
QStringSetting pathHighlightSound = {"/highlighting/highlightSoundPath",
|
||||
"qrc:/sounds/ping2.wav"};
|
||||
""};
|
||||
|
||||
BoolSetting highlightAlwaysPlaySound = {"/highlighting/alwaysPlaySound",
|
||||
false};
|
||||
|
||||
@@ -38,9 +38,6 @@ void Theme::actuallyUpdate(double hue, double multiplier)
|
||||
|
||||
this->splits.resizeHandle = QColor(0, 148, 255, 0xff);
|
||||
this->splits.resizeHandleBackground = QColor(0, 148, 255, 0x50);
|
||||
|
||||
// Highlighted Messages: theme support quick-fix
|
||||
this->messages.backgrounds.highlighted = QColor("#BD8489");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -49,11 +46,10 @@ void Theme::actuallyUpdate(double hue, double multiplier)
|
||||
|
||||
this->splits.resizeHandle = QColor(0, 148, 255, 0x70);
|
||||
this->splits.resizeHandleBackground = QColor(0, 148, 255, 0x20);
|
||||
|
||||
// Highlighted Messages: theme support quick-fix
|
||||
this->messages.backgrounds.highlighted = QColor("#4B282C");
|
||||
}
|
||||
|
||||
this->messages.backgrounds.highlighted = QColor(140, 84, 89, 127);
|
||||
|
||||
this->splits.header.background = getColor(0, sat, flat ? 1 : 0.9);
|
||||
this->splits.header.border = getColor(0, sat, flat ? 1 : 0.85);
|
||||
this->splits.header.text = this->messages.textColors.regular;
|
||||
|
||||
Reference in New Issue
Block a user