From 0401b8556d7b9c3dabd1c8004d1510edc2c05661 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 1 Jan 2022 19:36:04 +0100 Subject: [PATCH] Add result count to search and rewrite scroll past end feature (#946) * Restore colours to dark theme search-replace icon * Implement a working search result counter * Disable scroll past end feature and clean up search/replace and update test * Re-implement scroll past end feature as a static distance * Stop the search box from resizing on every search --- .../typicons_dark/mixed_search-replace.svg | 17 +- novelwriter/config.py | 4 +- novelwriter/dialogs/preferences.py | 12 +- novelwriter/gui/doceditor.py | 176 ++++++++++++------ tests/reference/baseConfig_novelwriter.conf | 2 +- .../reference/guiPreferences_novelwriter.conf | 2 +- tests/test_dialogs/test_dlg_preferences.py | 8 +- tests/test_gui/test_gui_doceditor.py | 102 ++++++---- tests/test_gui/test_gui_guimain.py | 1 - 9 files changed, 211 insertions(+), 113 deletions(-) diff --git a/novelwriter/assets/icons/typicons_dark/mixed_search-replace.svg b/novelwriter/assets/icons/typicons_dark/mixed_search-replace.svg index 193ffb49..784fb950 100644 --- a/novelwriter/assets/icons/typicons_dark/mixed_search-replace.svg +++ b/novelwriter/assets/icons/typicons_dark/mixed_search-replace.svg @@ -26,9 +26,14 @@ id="defs877" /> -