blurOverlay.js 363 B

12345678910111213141516171819
  1. const Windows = require('./windows');
  2. class BlurOverlay {
  3. static enable() {
  4. BlurOverlay.setBlurOverlay(true);
  5. }
  6. static disable() {
  7. BlurOverlay.setBlurOverlay(false);
  8. }
  9. static setBlurOverlay(flag) {
  10. const mainWindow = Windows.getByType('main');
  11. mainWindow.send('uiAction_enableBlurOverlay', flag);
  12. }
  13. }
  14. module.exports = BlurOverlay;