1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-07 06:40:54 +00:00
* Changed: The settings for Animated Emotes and chat user color correction now default to enabled or disabled based on your vanilla Twitch settings.
* Changed: Strip automatic error reporting from builds till it can be fixed.
* Fixed: Native viewer count and uptime not hiding correctly when a stream goes live.
* API Added: Settings can now depend on `localStorage` values by using `ls.{name}` keys for JSON or `ls.raw.{name}` for raw strings.
* Maintenance: Update dependencies.
This commit is contained in:
SirStendec 2021-06-18 14:27:14 -04:00
parent ce38c3c251
commit 2340992977
17 changed files with 2689 additions and 1438 deletions

View file

@ -1014,12 +1014,23 @@ export default class Chat extends Module {
this.settings.add('chat.adjustment-mode', {
default: 1,
default: null,
process(ctx, val) {
if ( val == null )
return (ctx.get('ls.useHighContrastColors') ?? true) ? 1 : 0;
return val;
},
requires: ['ls.useHighContrastColors'],
ui: {
path: 'Chat > Appearance >> Colors',
title: 'Adjustment',
description: 'Alter user colors to ensure that they remain readable.',
default(ctx) {
return (ctx.get('ls.useHighContrastColors') ?? true) ? 1 : 0;
},
component: 'setting-select-box',
data: [
@ -1079,12 +1090,22 @@ export default class Chat extends Module {
});
this.settings.add('chat.emotes.animated', {
default: 1,
default: null,
requires: ['ls.emoteAnimationsEnabled'],
process(ctx, val) {
if ( val == null )
return (ctx.get('ls.emoteAnimationsEnabled') ?? true) ? 1 : 0;
return val;
},
ui: {
path: 'Chat > Appearance >> Emotes',
sort: -50,
title: 'Animated Emotes',
default(ctx) {
return (ctx.get('ls.emoteAnimationsEnabled') ?? true) ? 1 : 0;
},
getExtraTerms: () => GIF_TERMS,
description: 'This controls whether or not animated emotes are allowed to play in chat. When this is `Disabled`, emotes will appear as static images. Setting this to `Enable on Hover` may cause performance issues.',