Skip to content

Commit

Permalink
use white page background on linux and windows
Browse files Browse the repository at this point in the history
fixes #954
  • Loading branch information
PalmerAL committed Apr 4, 2020
1 parent 3f6180a commit 33c7876
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions css/webviews.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
position: relative;
}

/* disabled on linux and windows due to https://github.com/minbrowser/min/issues/807 */
body.mac.dark-mode #webviews {
background-color: rgb(33, 37, 43);
/* Webpages assume the page background will always be white, but the Electron API to set this is broken on Windows and Linux (https://github.com/electron/electron/issues/20447) - there, the view will always be transparent.
Therefore, the default app background (which can be white or black) can only be used on mac; on linux and windows, it needs to always be white, since it could become part of the page background. */
body.windows #webviews,
body.linux #webviews {
background-color: white;
}

.arrow-indicator {
Expand Down

0 comments on commit 33c7876

Please sign in to comment.