10 import os |
10 import os |
11 |
11 |
12 from .ConfigurationPageBase import ConfigurationPageBase |
12 from .ConfigurationPageBase import ConfigurationPageBase |
13 from .Ui_TrayStarterPage import Ui_TrayStarterPage |
13 from .Ui_TrayStarterPage import Ui_TrayStarterPage |
14 |
14 |
15 import Preferences |
15 from eric7 import Preferences |
16 import UI.PixmapCache |
16 from eric7.EricGui import EricPixmapCache |
17 |
17 |
18 |
18 |
19 class TrayStarterPage(ConfigurationPageBase, Ui_TrayStarterPage): |
19 class TrayStarterPage(ConfigurationPageBase, Ui_TrayStarterPage): |
20 """ |
20 """ |
21 Class implementing the tray starter configuration page. |
21 Class implementing the tray starter configuration page. |
27 """ |
27 """ |
28 super().__init__() |
28 super().__init__() |
29 self.setupUi(self) |
29 self.setupUi(self) |
30 self.setObjectName("TrayStarterPage") |
30 self.setObjectName("TrayStarterPage") |
31 |
31 |
32 self.standardButton.setIcon(UI.PixmapCache.getIcon("erict")) |
32 self.standardButton.setIcon(EricPixmapCache.getIcon("erict")) |
33 self.highContrastButton.setIcon(UI.PixmapCache.getIcon("erict-hc")) |
33 self.highContrastButton.setIcon(EricPixmapCache.getIcon("erict-hc")) |
34 self.blackWhiteButton.setIcon(UI.PixmapCache.getIcon("erict-bw")) |
34 self.blackWhiteButton.setIcon(EricPixmapCache.getIcon("erict-bw")) |
35 self.blackWhiteInverseButton.setIcon(UI.PixmapCache.getIcon("erict-bwi")) |
35 self.blackWhiteInverseButton.setIcon(EricPixmapCache.getIcon("erict-bwi")) |
36 |
36 |
37 # set initial values |
37 # set initial values |
38 iconName = os.path.splitext(Preferences.getTrayStarter("TrayStarterIcon"))[0] |
38 iconName = os.path.splitext(Preferences.getTrayStarter("TrayStarterIcon"))[0] |
39 if iconName == "erict": |
39 if iconName == "erict": |
40 self.standardButton.setChecked(True) |
40 self.standardButton.setChecked(True) |