mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-08 07:10:54 +00:00
4.16.0
* Added: Show the FFZ menu button on new dashboard pages. * Fixed: Synchronize settings with the `dashboard.twitch.tv` subdomain. * Fixed: Performance issue with metadata tool-tips being calculated too frequently. * Fixed: Metadata not appearing in theater mode when portrait mode is enabled. * API Added: Chat Action types can now override rendering.
This commit is contained in:
parent
347919c51a
commit
ff0f0ea074
14 changed files with 317 additions and 42 deletions
|
@ -101,6 +101,22 @@ export default class Layout extends Module {
|
|||
changed: val => this.css_tweaks.toggle('portrait-swapped', val)
|
||||
});
|
||||
|
||||
this.settings.add('layout.use-portrait-meta', {
|
||||
requires: ['layout.inject-portrait', 'player.theatre.metadata'],
|
||||
process(ctx) {
|
||||
return ctx.get('layout.inject-portrait') && ctx.get('player.theatre.metadata')
|
||||
},
|
||||
changed: val => this.css_tweaks.toggle('portrait-metadata', val)
|
||||
});
|
||||
|
||||
this.settings.add('layout.use-portrait-meta-top', {
|
||||
requires: ['layout.use-portrait-meta', 'layout.portrait-invert'],
|
||||
process(ctx) {
|
||||
return ctx.get('layout.use-portrait-meta') && ! ctx.get('layout.portrait-invert')
|
||||
},
|
||||
changed: val => this.css_tweaks.toggle('portrait-metadata-top', val)
|
||||
});
|
||||
|
||||
this.settings.add('layout.show-portrait-chat', {
|
||||
requires: ['layout.use-portrait', 'layout.portrait-extra-height', 'layout.portrait-extra-width'],
|
||||
process() {
|
||||
|
@ -168,6 +184,8 @@ export default class Layout extends Module {
|
|||
|
||||
this.css_tweaks.toggle('portrait', this.settings.get('layout.inject-portrait'));
|
||||
this.css_tweaks.toggle('portrait-swapped', this.settings.get('layout.use-portrait-swapped'));
|
||||
this.css_tweaks.toggle('portrait-metadata', this.settings.get('layout.use-portrait-meta'));
|
||||
this.css_tweaks.toggle('portrait-metadata-top', this.settings.get('layout.use-portrait-meta-top'));
|
||||
this.css_tweaks.setVariable('portrait-extra-width', `${this.settings.get('layout.portrait-extra-width')}rem`);
|
||||
this.css_tweaks.setVariable('portrait-extra-height', `${this.settings.get('layout.portrait-extra-height')}rem`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue