GregVido / mica-electron

Library to add mica effect of windows 11 in electron app
Apache License 2.0
126 stars 7 forks source link

When set frame: false, Minimize window is black #10

Closed tonylu110 closed 1 year ago

tonylu110 commented 1 year ago

I set frame: false, when I minimize window then open window, window will be black

tonylu110 commented 1 year ago

uyou-todo-electron This repo uses mica-electron, and like I say when I set frame: false background will be black

GregVido commented 1 year ago

Hello, I just made a commit which in theory fixes the problem 😁

tonylu110 commented 1 year ago

Hello, I just made a commit which in theory fixes the problem 😁

Oh, thanks. It can work for me. I have another question. How to set always use the light theme.

GregVido commented 1 year ago

Normally win.setLightTheme(); works for windows 11 effects.

tonylu110 commented 1 year ago

Normally win.setLightTheme(); works for windows 11 effects.

I know, but when I change the color theme. the window will change, and the background will be black. I use nativeTheme to change light theme, but it won't work

// it doesn't work
nativeTheme.on('updated', () => {
  mainWindow.setLightTheme()
})
GregVido commented 1 year ago

I just made an update, normally you don't need to use nativeTheme anymore, it's fixed 👍

tonylu110 commented 1 year ago

I just made an update, normally you don't need to use nativeTheme anymore, it's fixed 👍

Thanks, but it doesn't work. When I change color theme and background will be black. Like this:

GregVido commented 1 year ago

Ok normally it's fixed (hopefully)

tonylu110 commented 1 year ago

Ok normally it's fixed (hopefully)

When it exit, it has a error

GregVido commented 1 year ago

Yes sorry it's fixed

tonylu110 commented 1 year ago

Yes sorry it's fixed

Oh yes, it's all work. Thanks