mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
More context menu icons
This commit is contained in:
parent
f4a1cdc98c
commit
22aaea6073
@ -63,14 +63,14 @@ class ViewAction(InterfaceAction):
|
|||||||
cm = partial(self.create_menu_action, self.view_menu)
|
cm = partial(self.create_menu_action, self.view_menu)
|
||||||
self.view_specific_action = cm('specific', _('View specific format'),
|
self.view_specific_action = cm('specific', _('View specific format'),
|
||||||
shortcut='Alt+V', triggered=self.view_specific_format)
|
shortcut='Alt+V', triggered=self.view_specific_format)
|
||||||
self.internal_view_action = cm('internal', _('View with calibre E-book viewer'), triggered=self.view_internal)
|
self.internal_view_action = cm('internal', _('View with calibre E-book viewer'), icon='viewer.png', triggered=self.view_internal)
|
||||||
self.action_pick_random = cm('pick random', _('Read a random book'),
|
self.action_pick_random = cm('pick random', _('Read a random book'),
|
||||||
icon='random.png', triggered=self.view_random)
|
icon='random.png', triggered=self.view_random)
|
||||||
self.view_menu.addAction(QIcon(I('highlight.png')), _('Browse annotations'), self.browse_annots)
|
self.view_menu.addAction(QIcon(I('highlight.png')), _('Browse annotations'), self.browse_annots)
|
||||||
self.clear_sep1 = self.view_menu.addSeparator()
|
self.clear_sep1 = self.view_menu.addSeparator()
|
||||||
self.clear_sep2 = self.view_menu.addSeparator()
|
self.clear_sep2 = self.view_menu.addSeparator()
|
||||||
self.clear_history_action = cm('clear history',
|
self.clear_history_action = cm('clear history',
|
||||||
_('Clear recently viewed list'), triggered=self.clear_history)
|
_('Clear recently viewed list'), icon='trash.png', triggered=self.clear_history)
|
||||||
self.history_actions = [self.clear_sep1]
|
self.history_actions = [self.clear_sep1]
|
||||||
self.action_view_last_read = ac = self.create_action(
|
self.action_view_last_read = ac = self.create_action(
|
||||||
spec=(_('Continue reading previous book'), None, _('Continue reading the last opened book'), 'shift+v'), attr='action_view_last_read')
|
spec=(_('Continue reading previous book'), None, _('Continue reading the last opened book'), 'shift+v'), attr='action_view_last_read')
|
||||||
|
@ -749,7 +749,7 @@ class TagBrowserWidget(QFrame): # {{{
|
|||||||
ac.setIcon(QIcon.ic('minus.png') if gprefs['tag_browser_show_counts'] else QIcon.ic('plus.png'))
|
ac.setIcon(QIcon.ic('minus.png') if gprefs['tag_browser_show_counts'] else QIcon.ic('plus.png'))
|
||||||
ac = self.alter_tb.m.show_avg_rating_action
|
ac = self.alter_tb.m.show_avg_rating_action
|
||||||
ac.setText(_('Hide average rating') if config['show_avg_rating'] else _('Show average rating'))
|
ac.setText(_('Hide average rating') if config['show_avg_rating'] else _('Show average rating'))
|
||||||
ac.setIcon(QIcon.ic('minus.png' if config['show_avg_rating'] else 'rating.png'))
|
ac.setIcon(QIcon.ic('minus.png' if config['show_avg_rating'] else 'plus.png'))
|
||||||
|
|
||||||
def toggle_counts(self):
|
def toggle_counts(self):
|
||||||
gprefs['tag_browser_show_counts'] ^= True
|
gprefs['tag_browser_show_counts'] ^= True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user