From 1ed2cce648ee3168ca97e005b993a2953cdb7536 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 13 Dec 2022 11:35:21 +1000 Subject: [PATCH] Use 6 digit hex codes for default colors The color selector prints a warning otherwise. --- qt/aqt/editor.py | 4 ++-- qt/aqt/profiles.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index bed6fcce1..acd40ed10 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -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(); diff --git a/qt/aqt/profiles.py b/qt/aqt/profiles.py index eca41b593..67b40393b 100644 --- a/qt/aqt/profiles.py +++ b/qt/aqt/profiles.py @@ -94,8 +94,6 @@ profileConf: dict[str, Any] = dict( lastOptimize=int_time(), # editing searchHistory=[], - lastTextColor="#00f", - lastHighlightColor="#00f", # syncing syncKey=None, syncMedia=True,