eric7/UI/UserInterface.py

branch
eric7
changeset 8587
78971b458d25
parent 8583
aac629a05f8b
child 8588
84dfb28716e2
equal deleted inserted replaced
8586:6a315398a554 8587:78971b458d25
1118 """ 1118 """
1119 from EricWidgets.EricSideBar import EricSideBar, EricSideBarSide 1119 from EricWidgets.EricSideBar import EricSideBar, EricSideBarSide
1120 1120
1121 logging.debug("Creating Sidebars Layout...") 1121 logging.debug("Creating Sidebars Layout...")
1122 1122
1123 # TODO: create icon for biggest icon bar size (96px)
1123 # Create the left sidebar 1124 # Create the left sidebar
1124 self.leftSidebar = EricSideBar(EricSideBarSide.WEST) 1125 self.leftSidebar = EricSideBar(EricSideBarSide.WEST,
1126 Preferences.getUI("IconBarSize"))
1125 self.leftSidebar.setIconBarColor(Preferences.getUI("IconBarColor")) 1127 self.leftSidebar.setIconBarColor(Preferences.getUI("IconBarColor"))
1126 1128
1127 # Create the bottom sidebar 1129 # Create the bottom sidebar
1128 self.bottomSidebar = EricSideBar(EricSideBarSide.SOUTH) 1130 self.bottomSidebar = EricSideBar(EricSideBarSide.SOUTH,
1131 Preferences.getUI("IconBarSize"))
1129 self.bottomSidebar.setIconBarColor(Preferences.getUI("IconBarColor")) 1132 self.bottomSidebar.setIconBarColor(Preferences.getUI("IconBarColor"))
1130 1133
1131 # Create the right sidebar 1134 # Create the right sidebar
1132 self.rightSidebar = EricSideBar(EricSideBarSide.EAST) 1135 self.rightSidebar = EricSideBar(EricSideBarSide.EAST,
1136 Preferences.getUI("IconBarSize"))
1133 self.rightSidebar.setIconBarColor(Preferences.getUI("IconBarColor")) 1137 self.rightSidebar.setIconBarColor(Preferences.getUI("IconBarColor"))
1134 1138
1135 #################################################### 1139 ####################################################
1136 ## Populate the left side bar 1140 ## Populate the left side bar
1137 #################################################### 1141 ####################################################
6203 Preferences.getUI("IconBarColor")) 6207 Preferences.getUI("IconBarColor"))
6204 self.bottomSidebar.setIconBarColor( 6208 self.bottomSidebar.setIconBarColor(
6205 Preferences.getUI("IconBarColor")) 6209 Preferences.getUI("IconBarColor"))
6206 self.rightSidebar.setIconBarColor( 6210 self.rightSidebar.setIconBarColor(
6207 Preferences.getUI("IconBarColor")) 6211 Preferences.getUI("IconBarColor"))
6212
6213 self.leftSidebar.setIconBarSize(
6214 Preferences.getUI("IconBarSize"))
6215 self.bottomSidebar.setIconBarSize(
6216 Preferences.getUI("IconBarSize"))
6217 self.rightSidebar.setIconBarSize(
6218 Preferences.getUI("IconBarSize"))
6208 6219
6209 self.maxEditorPathLen = Preferences.getUI("CaptionFilenameLength") 6220 self.maxEditorPathLen = Preferences.getUI("CaptionFilenameLength")
6210 self.captionShowsFilename = Preferences.getUI("CaptionShowsFilename") 6221 self.captionShowsFilename = Preferences.getUI("CaptionShowsFilename")
6211 if not self.captionShowsFilename: 6222 if not self.captionShowsFilename:
6212 self.__setWindowCaption(editor="") 6223 self.__setWindowCaption(editor="")

eric ide

mercurial