mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-09-15 06:59:34 +02:00
ui: update search results text style
This commit is contained in:
@@ -1641,11 +1641,14 @@ class QtDriver(DriverMixin, QObject):
|
||||
end_time = time.time()
|
||||
|
||||
# inform user about completed search
|
||||
time_span = f"<a style=color:'gray'>({format_timespan(end_time - start_time).title()})</a>"
|
||||
count = f"<b>{results.total_count:,}</b>"
|
||||
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,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user