Use 6 digit hex codes for default colors

The color selector prints a warning otherwise.
This commit is contained in:
Damien Elmes 2022-12-13 11:35:21 +10:00
parent c5da911f24
commit 1ed2cce648
2 changed files with 2 additions and 4 deletions

View file

@ -520,8 +520,8 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
self.web.setFocus()
gui_hooks.editor_did_load_note(self)
text_color = self.mw.pm.profile.get("lastTextColor", "#00f")
highlight_color = self.mw.pm.profile.get("lastHighlightColor", "#00f")
text_color = self.mw.pm.profile.get("lastTextColor", "#0000ff")
highlight_color = self.mw.pm.profile.get("lastHighlightColor", "#0000ff")
js = f"""
saveSession();

View file

@ -94,8 +94,6 @@ profileConf: dict[str, Any] = dict(
lastOptimize=int_time(),
# editing
searchHistory=[],
lastTextColor="#00f",
lastHighlightColor="#00f",
# syncing
syncKey=None,
syncMedia=True,