GregVido / mica-electron

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

Use Windows 11 build, It can't run in Windows 10 #12

Closed tonylu110 closed 1 year ago

tonylu110 commented 1 year ago

I set not windows 11 use setCustomEffect. It's only in Task Manager can see

GregVido commented 1 year ago

Sorry I don't understand, what you want say ?

tonylu110 commented 1 year ago

Sorry I don't understand, what you want say ?

The result I build on Windows 11 can't be used on Windows 10, it can only see the process in the task manager

tonylu110 commented 1 year ago

It's my release https://github.com/tonylu110/uyou-todo-electron/releases/tag/1.1.7

GregVido commented 1 year ago

I watch this in the evening I can't currently

GregVido commented 1 year ago

Hello I don't have windows 10 so I can't try, next week I download windows 10 to emulate it

tonylu110 commented 1 year ago

Hello I don't have windows 10 so I can't try, next week I download windows 10 to emulate it

ok thanks

tonylu110 commented 1 year ago

@GregVido Hello, Do you know how to solve this issue

GregVido commented 1 year ago

Hello, I found the problem

  // mainWindow.setLightTheme()
  if (menuBlur || menuBlur === undefined) {
    if (IS_WINDOWS_11) {
      mainWindow.setMicaEffect()
    } else {
      // mainWindow.setRoundedCorner()
      mainWindow.setCustomEffect(4, '#fff6dc', 0.7);
    }
  } else {
    mainWindow.setCaptionColor('#fff6dc')
  }

mainWindow.setLightTheme() and mainWindow.setRoundedCorner() is for windows 11.

Sorry for the time, I'm a student and I don't have much time right now.

tonylu110 commented 1 year ago

ok,thinks