diff --git a/qt/aqt/previewer.py b/qt/aqt/previewer.py index cfafa1456..f099023f3 100644 --- a/qt/aqt/previewer.py +++ b/qt/aqt/previewer.py @@ -7,6 +7,8 @@ import re import time from typing import Any, Callable, List, Optional, Union +from PyQt5 import QtGui + from anki.cards import Card from anki.lang import _ from aqt import AnkiQt, gui_hooks @@ -41,6 +43,11 @@ class Previewer(QDialog): self._parent = parent self._close_callback = on_close self.mw = mw + icon = QtGui.QIcon() + icon.addPixmap( + QtGui.QPixmap(":/icons/anki.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off + ) + self.setWindowIcon(icon) def card(self) -> Optional[Card]: raise NotImplementedError