mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use an int for wm::ShadowElevation. Pick semantic constants.
https://chromium-review.googlesource.com/899886
This commit is contained in:
committed by
Samuel Attard
parent
4a38c2d800
commit
d6ffbc0148
@@ -792,14 +792,14 @@ void NativeWindowViews::SetBackgroundColor(SkColor background_color) {
|
||||
}
|
||||
|
||||
void NativeWindowViews::SetHasShadow(bool has_shadow) {
|
||||
wm::SetShadowElevation(GetNativeWindow(), has_shadow
|
||||
? wm::ShadowElevation::MEDIUM
|
||||
: wm::ShadowElevation::NONE);
|
||||
wm::SetShadowElevation(GetNativeWindow(),
|
||||
has_shadow ? wm::kShadowElevationInactiveWindow
|
||||
: wm::kShadowElevationNone);
|
||||
}
|
||||
|
||||
bool NativeWindowViews::HasShadow() {
|
||||
return GetNativeWindow()->GetProperty(wm::kShadowElevationKey) !=
|
||||
wm::ShadowElevation::NONE;
|
||||
wm::kShadowElevationNone;
|
||||
}
|
||||
|
||||
void NativeWindowViews::SetOpacity(const double opacity) {
|
||||
|
||||
Reference in New Issue
Block a user