mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix white background in day mode
This commit is contained in:
parent
406c58a109
commit
9804105928
3 changed files with 15 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue