mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add Mid-small toolbar icon size
This commit is contained in:
parent
db004d842b
commit
fb7932459f
@ -820,7 +820,7 @@ class BarsManager(QObject):
|
||||
|
||||
def apply_settings(self):
|
||||
sz = gprefs['toolbar_icon_size']
|
||||
sz = {'off':0, 'small':24, 'medium':48, 'large':64}[sz]
|
||||
sz = {'off':0, 'small':24, 'mid-small':30, 'medium':48, 'large':64}[sz]
|
||||
style = Qt.ToolButtonStyle.ToolButtonTextUnderIcon
|
||||
if sz > 0 and gprefs['toolbar_text'] == 'never':
|
||||
style = Qt.ToolButtonStyle.ToolButtonIconOnly
|
||||
|
@ -714,7 +714,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
r('cb_double_click_to_activate', gprefs)
|
||||
|
||||
choices = [(_('Off'), 'off'), (_('Small'), 'small'),
|
||||
(_('Medium'), 'medium'), (_('Large'), 'large')]
|
||||
(_('Mid-small'), 'mid-small'), (_('Medium'), 'medium'), (_('Large'), 'large')]
|
||||
r('toolbar_icon_size', gprefs, choices=choices)
|
||||
|
||||
choices = [(_('If there is enough room'), 'auto'), (_('Always'), 'always'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user