Repository navigation
Commit a6d7150
fix(desktop): markdown and plain-text pages are readable in dark mode
Electron gives <webview> guests a transparent base background, and Chromium
only paints a dark canvas for dark color-scheme pages over an opaque base.
Plain-text documents (e.g. .md files) declare `color-scheme: light dark`, so
in dark mode their text turned white over the white webview backing.
Set an opaque white default background on each guest when the preview
control session attaches, matching Chrome's behavior.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 5cc99e1 commit a6d7150
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1418 | 1418 | | |
1419 | 1419 | | |
1420 | 1420 | | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
1421 | 1432 | | |
1422 | 1433 | | |
1423 | 1434 | | |
| |||
0 commit comments