From 417e13772689cc580475a1d1d0327baa1b51645e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Quatremain?= Date: Mon, 22 Sep 2025 11:51:27 +0200 Subject: [PATCH] Prepare for release (version 0.10.0) --- CHANGELOG.rst | 16 ++++++++++++++++ data/io.github.herve4m.Length.metainfo.xml.in.in | 13 +++++++++++++ meson.build | 2 +- src/unit.py | 2 +- 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 12d6c02..ea467d0 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,22 @@ Length Release Notes .. contents:: Topics +v0.10.0 +====== + +Minor Changes +------------- + +- Disable middle click for locking the position of the mouse tracker. + Now only the P keyboard shortcut remains to lock the tracker [`#44`_]. +- Add angles measurement. +- The grid and diagonal rulers can now be disabled from the Preferences dialog. +- Add keyboard shortcuts for showing/hiding the markings (M), the grid (G), + the diagonal rulers (I), and the angles (A). +- Add a keyboard shortcut (D) for switching between left-to-right and right-to-left. + +.. _#44: https://github.com/herve4m/length/issues/44 + v0.9.0 ====== diff --git a/data/io.github.herve4m.Length.metainfo.xml.in.in b/data/io.github.herve4m.Length.metainfo.xml.in.in index 98dc038..8a1acfe 100644 --- a/data/io.github.herve4m.Length.metainfo.xml.in.in +++ b/data/io.github.herve4m.Length.metainfo.xml.in.in @@ -67,6 +67,19 @@ + + https://github.com/herve4m/length/blob/main/CHANGELOG.rst#v0100 + +

+ Disable middle click for locking the position of the mouse tracker. + Now only the P keyboard shortcut remains to lock the tracker. +

+

Add angles measurement

+

The grid and diagonal rulers can now be disabled from the Preferences dialog

+

Add keyboard shortcuts for showing/hiding the markings (M), the grid (G), the diagonal rulers (I), and the angles (A)

+

Add a keyboard shortcut (D) for switching between left-to-right and right-to-left

+
+
https://github.com/herve4m/length/blob/main/CHANGELOG.rst#v090 diff --git a/meson.build b/meson.build index eac4546..ce032cc 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('length', - version: '0.9.0', + version: '0.10.0', meson_version: '>= 1.1.0', default_options: [ 'warning_level=2', 'werror=false', ], ) diff --git a/src/unit.py b/src/unit.py index 51d415d..d683d39 100644 --- a/src/unit.py +++ b/src/unit.py @@ -638,7 +638,7 @@ def _draw_angles(self, ctx_text, min_size: int) -> None: legend_y_4 = self.context.height / 2 - extend_4.height / 2 # Draw the diagonals - self.context.ctx.set_line_width(0.2) + self.context.ctx.set_line_width(1) # Do not draw on the menu button self.context.ctx.move_to(min_size * width_per_diag, min_size * height_per_diag) self.context.ctx.line_to(self.context.width, self.context.height)