feat: add win.getBackgroundColor() for macOS (#21448)
thanks @vbennich - great work on this 🌟
This commit is contained in:
parent
c1210f8ad3
commit
cf833a7650
10 changed files with 46 additions and 1 deletions
|
@ -1102,6 +1102,11 @@ void NativeWindowMac::SetBackgroundColor(SkColor color) {
|
|||
[[[window_ contentView] layer] setBackgroundColor:cgcolor];
|
||||
}
|
||||
|
||||
SkColor NativeWindowMac::GetBackgroundColor() {
|
||||
return skia::CGColorRefToSkColor(
|
||||
[[[window_ contentView] layer] backgroundColor]);
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetHasShadow(bool has_shadow) {
|
||||
[window_ setHasShadow:has_shadow];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue