Make the help text for tag browser keyboard focus option a bit nicer

This commit is contained in:
Kovid Goyal 2020-11-02 18:31:55 +05:30
parent 9f47303af3
commit 9ac1509053
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 29 additions and 10 deletions

View File

@ -657,6 +657,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
self.opt_book_details_css.blockSignals(True)
self.opt_book_details_css.setPlainText(P('templates/book_details.css', data=True).decode('utf-8'))
self.opt_book_details_css.blockSignals(False)
self.tb_focus_label.setVisible(self.opt_tag_browser_allow_keyboard_focus.isChecked())
def open_cg_cache(self):
open_local_file(self.gui.grid_view.thumbnail_cache.location)

View File

@ -1107,9 +1107,6 @@ see the counts by hovering your mouse over any item.</string>
</item>
<item row="14" column="0" colspan="2">
<widget class="QCheckBox" name="opt_tag_browser_allow_keyboard_focus">
<property name="text">
<string>Allow the Tag browser to have keyboard focus</string>
</property>
<property name="toolTip">
<string>&lt;p&gt;When checked, the Tag browser can get keyboard focus, allowing
use of the keyboard to navigate the tree using the arrow keys. The RETURN key simulates
@ -1117,16 +1114,21 @@ a click on the selected item. The keyboard shortcut 'Tag browser /
Give the Tag browser keyboard focus' changes the keyboard focus without
using the mouse.&lt;/p&gt;</string>
</property>
<property name="text">
<string>Allow the Tag browser to have keyboard focus</string>
</property>
</widget>
</item>
<item row="15" column="0" colspan="2">
<widget class="QLabel">
<widget class="QLabel" name="tb_focus_label">
<property name="styleSheet">
<string notr="true">margin-left: 1.5em</string>
</property>
<property name="text">
<string>&lt;p&gt;If you enable this option then you should set the
keyboard shortcut 'Tag browser-&gt;Give the Tag browser keyboard focus'&lt;/p&gt;</string>
<string>&lt;p style=&quot;text-indent: 2em; font-size:smaller&quot;&gt;If you enable this option then you should set a keyboard shortcut to focus the Tag browser under &lt;code&gt;Preferences-&amp;gt;Shortcuts-&amp;gt;Tag browser-&amp;gt;Give the Tag browser keyboard focus&lt;/code&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
@ -1390,12 +1392,28 @@ column being examined (the left-hand pane)</string>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>75</x>
<y>102</y>
<x>86</x>
<y>49</y>
</hint>
<hint type="destinationlabel">
<x>289</x>
<y>118</y>
<x>101</x>
<y>51</y>
</hint>
</hints>
</connection>
<connection>
<sender>opt_tag_browser_allow_keyboard_focus</sender>
<signal>toggled(bool)</signal>
<receiver>tb_focus_label</receiver>
<slot>setVisible(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>275</x>
<y>528</y>
</hint>
<hint type="destinationlabel">
<x>358</x>
<y>555</y>
</hint>
</hints>
</connection>