fix: frameless vibrant modals shouldn't bezel (#24250)

This commit is contained in:
Shelley Vohr 2020-06-24 07:30:49 -07:00 committed by GitHub
parent 6369748a2a
commit 46f58b28c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1454,7 +1454,7 @@ void NativeWindowMac::SetVibrancy(const std::string& type) {
[effect_view setState:NSVisualEffectStateActive]; [effect_view setState:NSVisualEffectStateActive];
// Make frameless Vibrant windows have rounded corners. // Make frameless Vibrant windows have rounded corners.
if (!has_frame()) { if (!has_frame() && !is_modal()) {
CGFloat radius = 5.0f; // default corner radius CGFloat radius = 5.0f; // default corner radius
CGFloat dimension = 2 * radius + 1; CGFloat dimension = 2 * radius + 1;
NSSize size = NSMakeSize(dimension, dimension); NSSize size = NSMakeSize(dimension, dimension);