src/eric7/EricWidgets/EricIconBar.py

branch
eric7
changeset 10278
e26fa3b06f4f
parent 9951
91faf698afe6
child 10439
21c28b0f9e41
equal deleted inserted replaced
10277:e3d7e0cc0e6a 10278:e26fa3b06f4f
31 of the icon bar 31 of the icon bar
32 """ 32 """
33 33
34 BarSizes = { 34 BarSizes = {
35 # tuples with (icon size, border size, translated size string) 35 # tuples with (icon size, border size, translated size string)
36 "xs": (16, 1, QCoreApplication.translate("EricIconBar", "extra small")), 36 "xs": (16, 1, QCoreApplication.translate("EricIconBar", "extra small (16 px)")),
37 "sm": (22, 1, QCoreApplication.translate("EricIconBar", "small")), 37 "sm": (22, 1, QCoreApplication.translate("EricIconBar", "small (22 px)")),
38 "md": (32, 2, QCoreApplication.translate("EricIconBar", "medium")), 38 "md": (32, 2, QCoreApplication.translate("EricIconBar", "medium (32 px)")),
39 "lg": (48, 2, QCoreApplication.translate("EricIconBar", "large")), 39 "lg": (48, 2, QCoreApplication.translate("EricIconBar", "large (48 px)")),
40 "xl": (64, 3, QCoreApplication.translate("EricIconBar", "extra large")), 40 "xl": (64, 3, QCoreApplication.translate("EricIconBar", "extra large (64 px)")),
41 "xxl": (96, 3, QCoreApplication.translate("EricIconBar", "very large")), 41 "xxl": (96, 3, QCoreApplication.translate("EricIconBar", "very large (96 px)")),
42 } 42 }
43 DefaultBarSize = "md" 43 DefaultBarSize = "md"
44 44
45 MoreLabelAspect = 36 / 96 45 MoreLabelAspect = 36 / 96
46 46

eric ide

mercurial