mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: frameless vibrant modals shouldn't bezel (#24284)
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user