fixes vibrancy window

This commit is contained in:
Gellert Hegyi 2024-11-03 16:49:27 +01:00
parent 52dd2549fb
commit 1e00bd437f
3 changed files with 13 additions and 3 deletions

View file

@ -14,7 +14,7 @@ NSView* viewUnderneathPoint(NSView* self, NSPoint point) {
NSArray *views = [contentView subviews];
for (NSView *v in views) {
if (v != self) {
if (v != self && ![v isKindOfClass:[NSVisualEffectView class]]) {
NSPoint pointInView = [v convertPoint:point fromView:nil];
if ([v hitTest:pointInView] && [v mouse:pointInView inRect:v.bounds]) {
return v;

View file

@ -1,6 +1,14 @@
<html>
<head>
<style>
* {
color: whitesmoke;
}
button, input {
color: black;
}
.drag-container {
-webkit-app-region: drag;
background-color: cadetblue;

View file

@ -8,6 +8,8 @@ app.on('ready', () => {
width: 800,
height: 600,
frame: false,
transparent: true,
vibrancy: 'sidebar',
});
win.loadFile('./index.html');