fix: fix vibrancy applying without transparency on MacOS (#40109)

This commit is contained in:
Keeley Hammond 2023-10-06 11:57:26 -07:00 committed by GitHub
parent a55c163db0
commit cff50ac65a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,6 +101,11 @@ NativeWindow::NativeWindow(const gin_helper::Dictionary& options,
options.Get(options::kTransparent, &transparent_);
options.Get(options::kEnableLargerThanScreen, &enable_larger_than_screen_);
options.Get(options::kTitleBarStyle, &title_bar_style_);
#if BUILDFLAG(IS_WIN)
options.Get(options::kBackgroundMaterial, &background_material_);
#elif BUILDFLAG(IS_MAC)
options.Get(options::kVibrancyType, &vibrancy_);
#endif
v8::Local<v8::Value> titlebar_overlay;
if (options.Get(options::ktitleBarOverlay, &titlebar_overlay)) {