Tweaks
This commit is contained in:
parent
61e37b7669
commit
1c0052a0cf
4 changed files with 16 additions and 4 deletions
|
|
@ -1,3 +1,8 @@
|
|||
# 0.2.1.5
|
||||
|
||||
* Go back to font size 10 (I might add a switcher later)
|
||||
* Fix bug with not syncing the right calendar date on search (History item would then be wrong too)
|
||||
|
||||
# 0.2.1.4
|
||||
|
||||
* Increase font size of normal text
|
||||
|
|
|
|||
|
|
@ -758,7 +758,6 @@ class MainWindow(QMainWindow):
|
|||
tb.numbersRequested.connect(self._tb_numbers)
|
||||
tb.checkboxesRequested.connect(self._tb_checkboxes)
|
||||
|
||||
# these aren’t editor methods
|
||||
tb.historyRequested.connect(self._open_history)
|
||||
tb.insertImageRequested.connect(self._on_insert_image)
|
||||
|
||||
|
|
@ -812,6 +811,10 @@ class MainWindow(QMainWindow):
|
|||
date_iso = self._current_date_iso()
|
||||
|
||||
qd = QDate.fromString(date_iso, "yyyy-MM-dd")
|
||||
# Keep calendar in sync
|
||||
with QSignalBlocker(self.calendar):
|
||||
self.calendar.setSelectedDate(qd)
|
||||
|
||||
self._load_date_into_editor(qd, extra_data)
|
||||
self.editor.current_date = qd
|
||||
|
||||
|
|
@ -948,7 +951,11 @@ class MainWindow(QMainWindow):
|
|||
|
||||
# ----------- History handler ------------#
|
||||
def _open_history(self):
|
||||
if hasattr(self.editor, "current_date"):
|
||||
date_iso = self.editor.current_date.toString("yyyy-MM-dd")
|
||||
else:
|
||||
date_iso = self._current_date_iso()
|
||||
|
||||
dlg = HistoryDialog(self.db, date_iso, self)
|
||||
if dlg.exec() == QDialog.Accepted:
|
||||
# refresh editor + calendar (head pointer may have changed)
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ class MarkdownEditor(QTextEdit):
|
|||
|
||||
# Normal text
|
||||
font = QFont()
|
||||
font.setPointSize(11)
|
||||
font.setPointSize(10)
|
||||
self.setFont(font)
|
||||
|
||||
# Install syntax highlighter
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "bouquin"
|
||||
version = "0.2.1.4"
|
||||
version = "0.2.1.5"
|
||||
description = "Bouquin is a simple, opinionated notebook application written in Python, PyQt and SQLCipher."
|
||||
authors = ["Miguel Jacq <mig@mig5.net>"]
|
||||
readme = "README.md"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue