From 45236f2c122ada74c65dfde5dc2e0fb8ce9871bc Mon Sep 17 00:00:00 2001
From: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com>
Date: Fri, 11 Sep 2026 22:16:59 -0700
Subject: [PATCH] ui: update search results text style
---
src/tagstudio/qt/qt_driver.py | 9 ++++++---
src/tagstudio/resources/translations/en.json | 4 ++--
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/tagstudio/qt/qt_driver.py b/src/tagstudio/qt/qt_driver.py
index fce01efa..178dacf4 100644
--- a/src/tagstudio/qt/qt_driver.py
+++ b/src/tagstudio/qt/qt_driver.py
@@ -1641,11 +1641,14 @@ class QtDriver(DriverMixin, QObject):
end_time = time.time()
# inform user about completed search
+ time_span = f"({format_timespan(end_time - start_time).title()})"
+ count = f"{results.total_count:,}"
self.main_window.results_label.setText(
Translations.format(
- "status.results_found",
- count=results.total_count,
- time_span=format_timespan(end_time - start_time),
+ # Show "X Results" on query, "X Items" on none
+ "status.results_found" if state and state.query else "status.items",
+ count=count,
+ time_span=time_span,
)
)
diff --git a/src/tagstudio/resources/translations/en.json b/src/tagstudio/resources/translations/en.json
index 6a612f85..4ea99932 100644
--- a/src/tagstudio/resources/translations/en.json
+++ b/src/tagstudio/resources/translations/en.json
@@ -373,12 +373,12 @@
"sorting.direction.descending": "Descending",
"sorting.mode.random": "Random",
"splash.opening_library": "Opening Library \"{library_path}\"…",
+ "status.items": "{count} Items {time_span}",
"status.library_save_success": "Library Saved and Closed!",
"status.library_version_expected": "Expected:",
"status.library_version_found": "Found:",
"status.library_version_mismatch": "Library Version Mismatch!",
- "status.results": "Results",
- "status.results_found": "{count} Results Found ({time_span})",
+ "status.results_found": "{count} Results {time_span}",
"status.results.invalid_syntax": "Invalid Search Syntax:",
"tag_manager.title": "Library Tags",
"tag.add": "Add Tag",