Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

theme not working #54

Open
rendomnet opened this issue Mar 18, 2021 · 3 comments
Open

theme not working #54

rendomnet opened this issue Mar 18, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@rendomnet
Copy link

rendomnet commented Mar 18, 2021

  mainWindow = new BrowserWindow({
    show: true,
    frame: false,
    titleBarStyle: 'hidden',
    transparent: true,
    backgroundColor: 'rgba(0,0,0,0)',
    webPreferences: {
      enableRemoteModule: true,
      nodeIntegration: true,
      webSecurity: true,
    },
  });

  setVibrancy(mainWindow, {
    theme: '#22222288', <---------
    effect: 'acrylic',
    useCustomWindowRefreshMethod: true,
    disableOnBlur: false,
    // maximumRefreshRate: 10,
    debug: false,
  });

changing theme option does not affect anything. How to make acrylic darker?

@seo-rii
Copy link
Owner

seo-rii commented Apr 5, 2021

Use mainWindow.setVibrancy instead.

@Nihilop
Copy link

Nihilop commented Jun 3, 2021

Hey,

same problem, work only if i do: setVibrancy(win, options). and with this methods i cant edit the theme color option :) *
Otherwise it just returns a transparent window

@Nihilop
Copy link

Nihilop commented Jun 8, 2021

Update n°1
(Typescript*)
import :
const acrylicWindow = require('electron-acrylic-window').BrowserWindow

var :

let theme
let win

options :

theme = {
        theme: '#202425E6',
        effect: 'acrylic',
        useCustomWindowRefreshMethod: true,
        disableOnBlur: true,
        debug: false
      }

window :

win = new acrylicWindow({
    frame: false,
    transparent:  true,
    vibrancy: theme,
    ...
  })

tel me if work

@seo-rii seo-rii added the bug Something isn't working label Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants