Compare commits
1 Commits
nightmode
...
multipleNe
Author | SHA1 | Date | |
---|---|---|---|
33ed64c0c0
|
@ -82,7 +82,10 @@ class EditorPreview(object):
|
|||||||
c = note.ephemeral_card()
|
c = note.ephemeral_card()
|
||||||
a = mw.prepare_card_text_for_display(c.answer())
|
a = mw.prepare_card_text_for_display(c.answer())
|
||||||
a = gui_hooks.card_will_show(a, c, "clayoutAnswer")
|
a = gui_hooks.card_will_show(a, c, "clayoutAnswer")
|
||||||
bodyclass = theme_manager.body_classes_for_card_ord(c.ord, theme_manager.night_mode)
|
if theme_manager.night_mode:
|
||||||
|
bodyclass = theme_manager.body_classes_for_card_ord(c.ord, mw.pm.night_mode())
|
||||||
|
else:
|
||||||
|
bodyclass = theme_manager.body_classes_for_card_ord(c.ord)
|
||||||
bodyclass += " editor-preview"
|
bodyclass += " editor-preview"
|
||||||
|
|
||||||
return f"_showAnswer({json.dumps(a)},'{bodyclass}');"
|
return f"_showAnswer({json.dumps(a)},'{bodyclass}');"
|
||||||
|
Reference in New Issue
Block a user