GregVido / mica-electron

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

titlebar background color is visible when frame: false #13

Closed kamiya10 closed 1 year ago

kamiya10 commented 1 year ago

I have followed the README.md instructions and applied the Mica effect perfectly but the background color of the title bar destroyed the perfection. Is there a way to disable the title bar background color? I've tried win.setCaptionColor() but it doesn't take alpha values. image

I'm on Windows 11 Home 22H2 with "Show accent color on title bars and windows borders" enabled in the Personalize Settings.

code https://github.com/ExpTechTW/TREM-RTS-Map/commit/3c42a02397122961fbed31abe599157a0ab13dd6

GregVido commented 1 year ago

Hello, I can't access your repo, but why you add a caption color if you dont want this ? If you remove all win.setCaptionColor you don't have color. You cannot remove a caption color because Windows 11 does not offer it.

kamiya10 commented 1 year ago

Repo is now public

I don't have win.setCaptionColor() in the code and the title bar background is there

https://github.com/ExpTechTW/TREM-RTS-Map/blob/3c42a02397122961fbed31abe599157a0ab13dd6/src/main.js#L8-L38

GregVido commented 1 year ago

When I try your repo it's work for me, what is your windows 11 version ?

image

kamiya10 commented 1 year ago

Edition Windows 11 Home Version 22H2 Installed on ‎2023/‎01/‎21 OS build 22621.1194 Experience Windows Feature Experience Pack 1000.22638.1000.0

image

GregVido commented 1 year ago

I didn't find a solution, I think it's a problem with your Windows 11, I'm limited with Windows 11 API, sorry.