diff --git a/qt/aqt/webview.py b/qt/aqt/webview.py index 575338fad..21bd22663 100644 --- a/qt/aqt/webview.py +++ b/qt/aqt/webview.py @@ -421,12 +421,12 @@ border-radius:5px; font-family: Helvetica }""" family = self.font().family() color_hl_txt = palette.color(QPalette.ColorRole.HighlightedText).name() color_btn = palette.color(QPalette.ColorRole.Button).name() - font = f'font-size:14px;font-family:"{family}";' + font = f'font-size:14px;font-family:"{family}", sans-serif;' button_style = """ /* Buttons */ button{{ background-color: {color_btn}; - font-family:"{family}"; }} + font-family:"{family}", sans-serif; }} button:focus{{ border-color: {color_hl} }} button:active, button:active:hover {{ background-color: {color_hl}; color: {color_hl_txt};}} /* Input field focus outline */