Skip to content

Commit

Permalink
making transparent window work
Browse files Browse the repository at this point in the history
  • Loading branch information
catdad committed Apr 27, 2024
1 parent e3c1679 commit dff95eb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ function getLocationOnExistingScreen() {
},
frame: process.platform === 'darwin' ? true : false,
titleBarStyle: process.platform === 'darwin' ? 'hidden' : undefined,
transparent: true,
backgroundColor: '#000000ff',
icon
};

Expand Down
1 change: 1 addition & 0 deletions renderer/Frame/Frame.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-webkit-app-region: drag;
height: var(--frame-height);
display: flex;
background-color: var(--color-background);
}

.frame .frame-title {
Expand Down
12 changes: 11 additions & 1 deletion renderer/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,23 @@ html, body {
margin: 0;
padding: 0;

background-color: var(--color-background);
background: transparent;
color: var(--color-text);
font-size: var(--font-size);
font-family: var(--font-family);
min-height: 100%;
}

#app {
/* makes border-radius work */
transform: translateZ(0);
border-radius: 8px;
overflow: hidden;

/* box-shadow: inset 0 0 0 1px var(--color-background); */
background-color: var(--color-background);
}

* {
box-sizing: border-box;
}
Expand Down

0 comments on commit dff95eb

Please sign in to comment.