From ef827352bb863804a45b7c2880db493d17659857 Mon Sep 17 00:00:00 2001 From: SirStendec Date: Wed, 31 Jul 2019 17:13:56 -0400 Subject: [PATCH] 4.7.0 * Added: Option to set a default custom color for highlighted messages, overriding the default red color. * Added: Recent Messages for Chat Input. Press up and down to recall previously sent messages. * Added: Option to prioritize favorited emotes and emoji in tab-completion. * Fixed: Extensions not being hidden correctly. * Fixed: Change tab-completion sorting to act more similarly to vanilla Twitch. * Fixed: Color inputs in settings updating too frequently, causing performance issues. * Fixed: Chat-related code breaking on popped out viewer cards and spamming the automated error reporting service with errors. --- package.json | 2 +- src/modules/chat/index.js | 10 ++ .../components/setting-color-box.vue | 8 ++ .../twitch-twilight/modules/chat/index.js | 18 ++- .../twitch-twilight/modules/chat/input.jsx | 109 +++++++++++------- .../twitch-twilight/modules/chat/scroller.js | 2 +- .../modules/css_tweaks/index.js | 4 +- .../styles/chat-mention-bg-custom.scss | 7 ++ 8 files changed, 110 insertions(+), 50 deletions(-) create mode 100644 src/sites/twitch-twilight/modules/css_tweaks/styles/chat-mention-bg-custom.scss diff --git a/package.json b/package.json index 97639e6f..11f5f740 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.6.2", + "version": "4.7.0", "description": "FrankerFaceZ is a Twitch enhancement suite.", "license": "Apache-2.0", "scripts": { diff --git a/src/modules/chat/index.js b/src/modules/chat/index.js index 5a00afd6..7bea8dff 100644 --- a/src/modules/chat/index.js +++ b/src/modules/chat/index.js @@ -592,6 +592,16 @@ export default class Chat extends Module { } }); + this.settings.add('chat.filtering.mention-color', { + default: '', + ui: { + path: 'Chat > Filtering >> Appearance', + title: 'Custom Highlight Color', + component: 'setting-color-box', + description: 'If this is set, highlighted messages with no default color set will use this color rather than red.' + } + }); + this.settings.add('chat.filtering.highlight-mentions', { default: false, ui: { diff --git a/src/modules/main_menu/components/setting-color-box.vue b/src/modules/main_menu/components/setting-color-box.vue index 2a28c9f8..52e02063 100644 --- a/src/modules/main_menu/components/setting-color-box.vue +++ b/src/modules/main_menu/components/setting-color-box.vue @@ -45,6 +45,8 @@