Skip to content

Commit

Permalink
Disable gpu hardware acceleration (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr authored Dec 1, 2020
1 parent 2e28c62 commit c9f3615
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/js/components/ModalDialog/ModalDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,14 @@ const Overlay = styled.div`
`

const Background = styled.div`
--blur-color: hsla(32, 5%, 85%, 0.5);
--blur-shadow: hsla(32, 5%, 20%, 0.5);
pointer-events: all;
display: flex;
overflow: hidden;
min-height: 100px;
min-width: 300px;
max-width: 80%;
max-height: 80%;
background: var(--blur-color);
backdrop-filter: blur(24px);
background: var(--cloudy);
box-shadow: 0 0 1px hsla(28, 5%, 20%, 0.75),
0 12px 45px hsla(28, 5%, 20%, 0.6);
border-radius: 0 0 2px 2px;
Expand Down
2 changes: 2 additions & 0 deletions src/js/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ async function main() {
})
})
}

app.disableHardwareAcceleration()
const gotTheLock = app.requestSingleInstanceLock()
if (gotTheLock) {
main().then(() => {
Expand Down

0 comments on commit c9f3615

Please sign in to comment.