From ef10e0aab7dfeda39230e743ae65649e8ff92f5d Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Wed, 19 Nov 2025 11:47:27 +1100 Subject: [PATCH] shortcut for time log. adjust checkbox size again. Use icon for Images in toolbar --- bouquin/main_window.py | 1 + bouquin/markdown_highlighter.py | 3 ++- bouquin/toolbar.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bouquin/main_window.py b/bouquin/main_window.py index 4001fdb..c2f3d40 100644 --- a/bouquin/main_window.py +++ b/bouquin/main_window.py @@ -228,6 +228,7 @@ class MainWindow(QMainWindow): act_stats.triggered.connect(self._open_statistics) file_menu.addAction(act_stats) act_time_report = QAction(strings._("time_log_report"), self) + act_time_report.setShortcut("Ctrl+Shift+L") act_time_report.triggered.connect(self._open_time_report) file_menu.addAction(act_time_report) file_menu.addSeparator() diff --git a/bouquin/markdown_highlighter.py b/bouquin/markdown_highlighter.py index 35b0045..9fcbcc3 100644 --- a/bouquin/markdown_highlighter.py +++ b/bouquin/markdown_highlighter.py @@ -106,7 +106,8 @@ class MarkdownHighlighter(QSyntaxHighlighter): base_size = 10.0 # fallback # Checkboxes: make them a bit bigger so they stand out self.checkbox_format = QTextCharFormat() - self.checkbox_format.setFontPointSize(base_size * 1.4) + self.checkbox_format.setFontPointSize(base_size * 1.3) + self.checkbox_format.setVerticalAlignment(QTextCharFormat.AlignMiddle) # Bullets self.bullet_format = QTextCharFormat() diff --git a/bouquin/toolbar.py b/bouquin/toolbar.py index 9764246..8179925 100644 --- a/bouquin/toolbar.py +++ b/bouquin/toolbar.py @@ -92,7 +92,7 @@ class ToolBar(QToolBar): self.actAlarm.triggered.connect(self.alarmRequested) # Images - self.actInsertImg = QAction(strings._("images"), self) + self.actInsertImg = QAction("📸", self) self.actInsertImg.setToolTip(strings._("insert_images")) self.actInsertImg.setShortcut("Ctrl+Shift+I") self.actInsertImg.triggered.connect(self.insertImageRequested)