1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-10-18 08:52:00 +00:00

Change the settings pop-out to use a chat pop-out. Tweaks to badge visibility rendering. Forcibly set tw-theme--dark on body since Twitch doesn't do it consistently with pop-outs.

This commit is contained in:
SirStendec 2018-03-24 04:19:41 -04:00
parent cc682230e2
commit c190ecf5ed
11 changed files with 129 additions and 108 deletions

View file

@ -60,9 +60,9 @@ export default class SettingsMenu extends Module {
const twMinimalRoot = document.querySelector('.twilight-minimal-root');
if (twMinimalRoot) {
const win = window.open(
'https://twitch.tv/frankerfacez?ffz-settings',
'https://twitch.tv/popout/frankerfacez/chat?ffz-settings',
'_blank',
'resizable=yes,scrollbars=yes,width=800,height=600'
'resizable=yes,scrollbars=yes,width=850,height=600'
);
win.focus();
} else {

View file

@ -39,7 +39,8 @@ export default class ThemeEngine extends Module {
requires: ['context.ui.theme'],
process(ctx) {
return ctx.get('context.ui.theme') === 1;
}
},
changed: val => document.body.classList.toggle('tw-theme--dark', val)
});
this.settings.add('theme.tooltips-dark', {
@ -78,5 +79,6 @@ export default class ThemeEngine extends Module {
onEnable() {
this.updateSetting(this.settings.get('theme.dark'));
document.body.classList.toggle('tw-theme--dark', this.settings.get('theme.is-dark'));
}
}