I'm trying to create a window with rounded corners using Electron. I've managed to achieve this by setting the BrowserWindow setting transparent to true, and then creating a div the size of the body with a border radius of 10px.
However, the issue is that setting the transparent setting to true seems to remove the shadow that Windows 10 applies to the window. The issue doesn't seem to be present on macOS, as the shadow is applied regardless of the transparency setting.
I've tried also setting the BrowserWindow setting hasShadow to true, but it makes no difference.
Is there any way to create a rounded window in electron, without loosing the window shadow in the process?