Add Mid-small toolbar icon size

This commit is contained in:
cm-fy 2024-12-03 16:54:20 -03:00 committed by Kovid Goyal
parent db004d842b
commit fb7932459f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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'),