mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-17 02:16:54 +00:00
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.
This commit is contained in:
parent
b1f491fcdf
commit
ef827352bb
8 changed files with 110 additions and 50 deletions
|
@ -406,6 +406,7 @@ export default class ChatHook extends Module {
|
|||
ic.contrast = contrast;
|
||||
|
||||
this.updateChatLines();
|
||||
this.updateMentionCSS();
|
||||
this.emit(':update-colors');
|
||||
}
|
||||
|
||||
|
@ -452,8 +453,20 @@ export default class ChatHook extends Module {
|
|||
updateMentionCSS() {
|
||||
const enabled = this.chat.context.get('chat.filtering.highlight-mentions');
|
||||
this.css_tweaks.toggle('chat-mention-token', this.chat.context.get('chat.filtering.highlight-tokens'));
|
||||
this.css_tweaks.toggle('chat-mention-bg', enabled);
|
||||
this.css_tweaks.toggle('chat-mention-bg-alt', enabled && this.chat.context.get('chat.lines.alternate'));
|
||||
|
||||
const raw_color = this.chat.context.get('chat.filtering.mention-color');
|
||||
if ( raw_color ) {
|
||||
this.css_tweaks.toggle('chat-mention-bg', false);
|
||||
this.css_tweaks.toggle('chat-mention-bg-alt', false);
|
||||
|
||||
this.css_tweaks.toggle('chat-mention-bg-custom', true);
|
||||
this.css_tweaks.setVariable('chat-mention-color', this.inverse_colors.process(raw_color));
|
||||
|
||||
} else {
|
||||
this.css_tweaks.toggle('chat-mention-bg-custom', false);
|
||||
this.css_tweaks.toggle('chat-mention-bg', enabled);
|
||||
this.css_tweaks.toggle('chat-mention-bg-alt', enabled && this.chat.context.get('chat.lines.alternate'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -501,6 +514,7 @@ export default class ChatHook extends Module {
|
|||
this.chat.context.on('changed:chat.lines.borders', this.updateLineBorders, this);
|
||||
this.chat.context.on('changed:chat.filtering.highlight-mentions', this.updateMentionCSS, this);
|
||||
this.chat.context.on('changed:chat.filtering.highlight-tokens', this.updateMentionCSS, this);
|
||||
this.chat.context.on('changed:chat.filtering.mention-color', this.updateMentionCSS, this);
|
||||
this.chat.context.on('changed:chat.fix-bad-emotes', this.updateChatLines, this);
|
||||
this.chat.context.on('changed:chat.filtering.display-deleted', this.updateChatLines, this);
|
||||
this.chat.context.on('changed:chat.filtering.display-mod-action', this.updateChatLines, this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue