From 205cd8503a1b8e0cd627c9e63af520b1aed9e580 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sun, 10 Dec 2017 09:26:38 +0100 Subject: [PATCH] Bug (enhancement) #1735815: I added some space and some placeholder text, and moved things around a bit. --- src/calibre/gui2/preferences/search.py | 6 +++ src/calibre/gui2/preferences/search.ui | 51 ++++++++++++++++++-------- 2 files changed, 41 insertions(+), 16 deletions(-) diff --git a/src/calibre/gui2/preferences/search.py b/src/calibre/gui2/preferences/search.py index 791abd82e4..e26e4e5e99 100644 --- a/src/calibre/gui2/preferences/search.py +++ b/src/calibre/gui2/preferences/search.py @@ -76,6 +76,12 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): self.gst_value.update_items_cache(fl) self.fill_gst_box(select=None) + self.user_category_layout.setContentsMargins(0, 30, 0, 0) + self.gst_names.lineEdit().setPlaceholderText( + _('Enter new or select existing name')) + self.gst_value.lineEdit().setPlaceholderText( + _('Enter list of column lookup names to search')) + self.category_fields = fl ml = [(_('Match any'), 'match_any'), (_('Match all'), 'match_all')] r('similar_authors_match_kind', db.prefs, choices=ml) diff --git a/src/calibre/gui2/preferences/search.ui b/src/calibre/gui2/preferences/search.ui index 834672a5a8..ecb7c0fa9b 100644 --- a/src/calibre/gui2/preferences/search.ui +++ b/src/calibre/gui2/preferences/search.ui @@ -154,8 +154,8 @@ - - + + &Names: @@ -165,7 +165,7 @@ - + @@ -188,7 +188,7 @@ a search term by changing the value box then pressing Save. - + Delete the current search term @@ -202,21 +202,40 @@ a search term by changing the value box then pressing Save. - - - - - - - Save the current search term. You can rename a search term by -changing the name then pressing Save. You can change the value -of a search term by changing the value box then pressing Save. - + + - &Save + &Value: + + + gst_value + + + + Enter a comma-separated list of lookup names of the columns +to include in the grouped search term + + + + + + + + + Save the current search term. You can rename a search term by +changing the name then pressing Save. You can change the value +of a search term by changing the value box then pressing Save. + + + &Save + + + + + @@ -230,7 +249,7 @@ of a search term by changing the value box then pressing Save. - +