From 5ecdd310e5501ae3f4253e33c093e09e72f86b4a Mon Sep 17 00:00:00 2001 From: Al Ali Date: Mon, 16 Jun 2025 20:57:28 +0200 Subject: [PATCH] Add streak display to overview window --- qt/aqt/overview.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/qt/aqt/overview.py b/qt/aqt/overview.py index d04b8b32f..72ae570c7 100644 --- a/qt/aqt/overview.py +++ b/qt/aqt/overview.py @@ -49,13 +49,15 @@ class Overview: self.streak_label = QLabel() self.streak_label.setText("") - self.streak_label.setStyleSheet(""" + self.streak_label.setStyleSheet( + """ font-size: 16px; padding: 10px; color: orange; font-weight: bold; qproperty-alignment: AlignCenter; - """) + """ + ) streak_layout = QHBoxLayout() streak_layout.addStretch() @@ -315,7 +317,9 @@ class Overview: b[0] = tr.actions_shortcut_key(val=shortcut(b[0])) buf += f""" """ - self.bottom.draw(buf=buf, link_handler=link_handler, web_context=OverviewBottomBar(self)) + self.bottom.draw( + buf=buf, link_handler=link_handler, web_context=OverviewBottomBar(self) + ) def onStudyMore(self) -> None: import aqt.customstudy