shortcut for time log. adjust checkbox size again. Use icon for Images in toolbar
Some checks failed
CI / test (push) Failing after 3m47s
Lint / test (push) Successful in 29s
Trivy / test (push) Successful in 21s

This commit is contained in:
Miguel Jacq 2025-11-19 11:47:27 +11:00
parent 55b78833ac
commit ef10e0aab7
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
3 changed files with 4 additions and 2 deletions

View file

@ -228,6 +228,7 @@ class MainWindow(QMainWindow):
act_stats.triggered.connect(self._open_statistics) act_stats.triggered.connect(self._open_statistics)
file_menu.addAction(act_stats) file_menu.addAction(act_stats)
act_time_report = QAction(strings._("time_log_report"), self) 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) act_time_report.triggered.connect(self._open_time_report)
file_menu.addAction(act_time_report) file_menu.addAction(act_time_report)
file_menu.addSeparator() file_menu.addSeparator()

View file

@ -106,7 +106,8 @@ class MarkdownHighlighter(QSyntaxHighlighter):
base_size = 10.0 # fallback base_size = 10.0 # fallback
# Checkboxes: make them a bit bigger so they stand out # Checkboxes: make them a bit bigger so they stand out
self.checkbox_format = QTextCharFormat() 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 # Bullets
self.bullet_format = QTextCharFormat() self.bullet_format = QTextCharFormat()

View file

@ -92,7 +92,7 @@ class ToolBar(QToolBar):
self.actAlarm.triggered.connect(self.alarmRequested) self.actAlarm.triggered.connect(self.alarmRequested)
# Images # Images
self.actInsertImg = QAction(strings._("images"), self) self.actInsertImg = QAction("📸", self)
self.actInsertImg.setToolTip(strings._("insert_images")) self.actInsertImg.setToolTip(strings._("insert_images"))
self.actInsertImg.setShortcut("Ctrl+Shift+I") self.actInsertImg.setShortcut("Ctrl+Shift+I")
self.actInsertImg.triggered.connect(self.insertImageRequested) self.actInsertImg.triggered.connect(self.insertImageRequested)