Support Translucent Window Background

This commit is contained in:
Lea Anthony
2020-10-02 07:45:22 +10:00
parent ee9c98c515
commit 26a1f78d56
4 changed files with 49 additions and 45 deletions

View File

@@ -13,6 +13,7 @@ extern void HideToolbarSeparator(void *);
extern void DisableFrame(void *);
extern void SetAppearance(void *, const char *);
extern void WebviewIsTransparent(void *);
extern void SetWindowBackgroundIsTranslucent(void *);
*/
import "C"
@@ -63,4 +64,9 @@ func (a *Application) processPlatformSettings() {
if mac.WebviewIsTransparent {
C.WebviewIsTransparent(a.app)
}
// Check if window should be translucent
if mac.WindowBackgroundIsTranslucent {
C.SetWindowBackgroundIsTranslucent(a.app)
}
}