add different modes to video-toggle plugin

* Custom: like before but slightly position

* Native: use the native video-toggle

* Disabled: force disable the native video-toggle
This commit is contained in:
Araxeus
2022-04-20 18:21:51 +03:00
parent 23058729f3
commit 9beebd3772
6 changed files with 66 additions and 7 deletions

View File

@ -4,7 +4,7 @@ const path = require("path");
module.exports = (win, options) => {
if (options.forceHide) {
injectCSS(win.webContents, path.join(__dirname, "force-hide.css"));
} else {
} else if (!options.mode || options.mode === "custom") {
injectCSS(win.webContents, path.join(__dirname, "button-switcher.css"));
}
};