--- a/eric7/EricWidgets/EricSideBar.py Thu Sep 09 19:04:53 2021 +0200 +++ b/eric7/EricWidgets/EricSideBar.py Thu Sep 09 19:22:12 2021 +0200 @@ -33,20 +33,24 @@ """ Version = 3 - # TODO: make icon bar size configurable with default - def __init__(self, orientation=None, parent=None): + def __init__(self, orientation=None, + iconBarSize=EricIconBar.DefaultBarSize, parent=None): """ Constructor @param orientation orientation of the sidebar widget @type EricSideBarSide + @param iconBarSize size category for the bar (one of 'xs', 'sm', 'md', + 'lg', 'xl', 'xxl') + @type str @param parent parent widget @type QWidget """ super().__init__(parent) # initial layout is done for NORTH - self.__iconBar = EricIconBar(orientation=Qt.Orientation.Horizontal) + self.__iconBar = EricIconBar(orientation=Qt.Orientation.Horizontal, + barSize=iconBarSize) self.__stackedWidget = QStackedWidget(self) self.__stackedWidget.setContentsMargins(0, 0, 0, 0)