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

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2020-06-24 10:15:26 -07:00
committed by GitHub
parent fb292c26d5
commit e059ae7bd6

View File

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