mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Use 6 digit hex codes for default colors
The color selector prints a warning otherwise.
This commit is contained in:
parent
c5da911f24
commit
1ed2cce648
2 changed files with 2 additions and 4 deletions
|
@ -520,8 +520,8 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
|
||||||
self.web.setFocus()
|
self.web.setFocus()
|
||||||
gui_hooks.editor_did_load_note(self)
|
gui_hooks.editor_did_load_note(self)
|
||||||
|
|
||||||
text_color = self.mw.pm.profile.get("lastTextColor", "#00f")
|
text_color = self.mw.pm.profile.get("lastTextColor", "#0000ff")
|
||||||
highlight_color = self.mw.pm.profile.get("lastHighlightColor", "#00f")
|
highlight_color = self.mw.pm.profile.get("lastHighlightColor", "#0000ff")
|
||||||
|
|
||||||
js = f"""
|
js = f"""
|
||||||
saveSession();
|
saveSession();
|
||||||
|
|
|
@ -94,8 +94,6 @@ profileConf: dict[str, Any] = dict(
|
||||||
lastOptimize=int_time(),
|
lastOptimize=int_time(),
|
||||||
# editing
|
# editing
|
||||||
searchHistory=[],
|
searchHistory=[],
|
||||||
lastTextColor="#00f",
|
|
||||||
lastHighlightColor="#00f",
|
|
||||||
# syncing
|
# syncing
|
||||||
syncKey=None,
|
syncKey=None,
|
||||||
syncMedia=True,
|
syncMedia=True,
|
||||||
|
|
Loading…
Reference in a new issue