electron-vibrancy icon indicating copy to clipboard operation
electron-vibrancy copied to clipboard

Unable to set window border radius

Open nodegin opened this issue 7 years ago • 1 comments

Hello, how can I set border radius of the window with the spec/app sample project?

nodegin avatar Jun 16 '17 14:06 nodegin

Not is possible. In electron to set border radius you need transparent frame and after with css you can apply styles in a div (windows, mac by default come with border radius). If you use this css with electron-vibracy you'll see the blur effect behind with the square corner

.myDiv{ border: solid #000000 1px; box-sizing: border-box; background-color: rgba(0, 0, 0, 0.50); border-radius: 4px; }

soyFerrero avatar Jul 11 '17 13:07 soyFerrero