fix white background in day mode

This commit is contained in:
Damien Elmes 2020-01-23 18:36:42 +10:00
parent 406c58a109
commit 9804105928
3 changed files with 15 additions and 3 deletions

View file

@ -319,7 +319,7 @@ div[contenteditable="true"]:focus {
<title>{}</title>
<style>
body {{ zoom: {}; {} }}
body {{ zoom: {}; background: {}; {} }}
{}
</style>
@ -328,7 +328,14 @@ body {{ zoom: {}; {} }}
<body class="{}">{}</body>
</html>""".format(
self.title, self.zoomFactor(), fontspec, widgetspec, head, body_class, body,
self.title,
self.zoomFactor(),
self._getWindowColor().name(),
fontspec,
widgetspec,
head,
body_class,
body,
)
# print(html)
self.setHtml(html)

View file

@ -1,5 +1,5 @@
$day-text-fg: black;
$day-window-bg: white;
$day-window-bg: #ececec;
$day-frame-bg: white;
$day-border: #aaa;
$day-faint-border: #e7e7e7;

View file

@ -6,6 +6,11 @@
body {
margin: 2em;
color: vars.$day-text-fg;
// currently this is injected via webview.py to try to match the
// system background color
// background: vars.$day-window-bg;
}
h1 {