mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12: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>
|
<title>{}</title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body {{ zoom: {}; {} }}
|
body {{ zoom: {}; background: {}; {} }}
|
||||||
{}
|
{}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -328,7 +328,14 @@ body {{ zoom: {}; {} }}
|
||||||
|
|
||||||
<body class="{}">{}</body>
|
<body class="{}">{}</body>
|
||||||
</html>""".format(
|
</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)
|
# print(html)
|
||||||
self.setHtml(html)
|
self.setHtml(html)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
$day-text-fg: black;
|
$day-text-fg: black;
|
||||||
$day-window-bg: white;
|
$day-window-bg: #ececec;
|
||||||
$day-frame-bg: white;
|
$day-frame-bg: white;
|
||||||
$day-border: #aaa;
|
$day-border: #aaa;
|
||||||
$day-faint-border: #e7e7e7;
|
$day-faint-border: #e7e7e7;
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 2em;
|
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 {
|
h1 {
|
||||||
|
|
Loading…
Reference in a new issue