10 import os |
10 import os |
11 |
11 |
12 from PyQt6.QtCore import pyqtSlot |
12 from PyQt6.QtCore import pyqtSlot |
13 from PyQt6.QtWidgets import QListWidgetItem |
13 from PyQt6.QtWidgets import QListWidgetItem |
14 |
14 |
15 from E5Gui.E5PathPicker import E5PathPickerModes |
15 from E5Gui.EricPathPicker import EricPathPickerModes |
16 from E5Gui.E5Application import e5App |
16 from E5Gui.EricApplication import ericApp |
17 |
17 |
18 from .ConfigurationPageBase import ConfigurationPageBase |
18 from .ConfigurationPageBase import ConfigurationPageBase |
19 from .Ui_IconsPage import Ui_IconsPage |
19 from .Ui_IconsPage import Ui_IconsPage |
20 |
20 |
21 import Preferences |
21 import Preferences |
33 """ |
33 """ |
34 super().__init__() |
34 super().__init__() |
35 self.setupUi(self) |
35 self.setupUi(self) |
36 self.setObjectName("IconsPage") |
36 self.setObjectName("IconsPage") |
37 |
37 |
38 self.iconDirectoryPicker.setMode(E5PathPickerModes.DIRECTORY_MODE) |
38 self.iconDirectoryPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) |
39 |
39 |
40 # set initial values |
40 # set initial values |
41 defaultIconsPath = Preferences.getIcons("DefaultIconsPath") |
41 defaultIconsPath = Preferences.getIcons("DefaultIconsPath") |
42 if defaultIconsPath == "automatic": |
42 if defaultIconsPath == "automatic": |
43 self.defaultAutomaticButton.setChecked(True) |
43 self.defaultAutomaticButton.setChecked(True) |
196 """ |
196 """ |
197 Private slot to display a preview of the selected default icons. |
197 Private slot to display a preview of the selected default icons. |
198 """ |
198 """ |
199 defaultIconsPath = self.__getSelectedDefaultIconsPath() |
199 defaultIconsPath = self.__getSelectedDefaultIconsPath() |
200 if defaultIconsPath == "automatic": |
200 if defaultIconsPath == "automatic": |
201 if e5App().usesDarkPalette(): |
201 if ericApp().usesDarkPalette(): |
202 defaultIconsPath = "breeze-dark" |
202 defaultIconsPath = "breeze-dark" |
203 else: |
203 else: |
204 defaultIconsPath = "breeze-light" |
204 defaultIconsPath = "breeze-light" |
205 |
205 |
206 from .IconsPreviewDialog import IconsPreviewDialog |
206 from .IconsPreviewDialog import IconsPreviewDialog |