mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
fixes vibrancy window
This commit is contained in:
parent
52dd2549fb
commit
1e00bd437f
3 changed files with 13 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,14 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
* {
|
||||
color: whitesmoke;
|
||||
}
|
||||
|
||||
button, input {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.drag-container {
|
||||
-webkit-app-region: drag;
|
||||
background-color: cadetblue;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ app.on('ready', () => {
|
|||
width: 800,
|
||||
height: 600,
|
||||
frame: false,
|
||||
transparent: true,
|
||||
vibrancy: 'sidebar',
|
||||
});
|
||||
|
||||
win.loadFile('./index.html');
|
||||
|
|
|
|||
Loading…
Reference in a new issue