adds vibrancy effect for macos

This commit is contained in:
gellert 2016-11-07 21:22:41 +01:00 committed by Kevin Sawicki
parent ad638097b6
commit 8ad50d1e35
9 changed files with 105 additions and 0 deletions

View file

@ -201,6 +201,13 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
options.Get(options::kShow, &show);
if (show)
Show();
#if defined(OS_MACOSX)
std::string type;
if (options.Get(options::kVibrancyType, &type)) {
SetVibrancy(type);
}
#endif
}
void NativeWindow::SetSize(const gfx::Size& size, bool animate) {