Merge pull request #10667 from dittos/window-opacity

Add window opacity support
This commit is contained in:
Cheng Zhao 2017-10-04 15:03:45 +09:00 committed by GitHub
commit 8c5bb5969c
12 changed files with 92 additions and 0 deletions

View file

@ -159,6 +159,10 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
if (options.Get(options::kHasShadow, &has_shadow)) {
SetHasShadow(has_shadow);
}
double opacity;
if (options.Get(options::kOpacity, &opacity)) {
SetOpacity(opacity);
}
bool top;
if (options.Get(options::kAlwaysOnTop, &top) && top) {
SetAlwaysOnTop(true);