adds vibrancy effect for macos
This commit is contained in:
parent
ad638097b6
commit
8ad50d1e35
9 changed files with 105 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue