10 import os |
10 import os |
11 |
11 |
12 from PyQt6.QtCore import pyqtSlot, Qt |
12 from PyQt6.QtCore import pyqtSlot, Qt |
13 from PyQt6.QtWidgets import QWidget, QMenu, QLabel, QHeaderView, QListWidgetItem |
13 from PyQt6.QtWidgets import QWidget, QMenu, QLabel, QHeaderView, QListWidgetItem |
14 |
14 |
15 from EricWidgets.EricPathPicker import EricPathPickerModes |
15 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes |
16 from EricWidgets.EricApplication import ericApp |
16 from eric7.EricWidgets.EricApplication import ericApp |
17 |
17 |
18 from .Ui_PreviewerQSS import Ui_PreviewerQSS |
18 from .Ui_PreviewerQSS import Ui_PreviewerQSS |
19 |
19 |
20 import Preferences |
20 from eric7 import Preferences, Utilities |
21 import Utilities |
21 from eric7.EricGui import EricPixmapCache |
22 import UI.PixmapCache |
|
23 |
22 |
24 from eric7config import getConfig |
23 from eric7config import getConfig |
25 |
24 |
26 |
25 |
27 class PreviewerQSS(QWidget, Ui_PreviewerQSS): |
26 class PreviewerQSS(QWidget, Ui_PreviewerQSS): |
79 ("filePython", self.tr("Python")), |
78 ("filePython", self.tr("Python")), |
80 ("fileRuby", self.tr("Ruby")), |
79 ("fileRuby", self.tr("Ruby")), |
81 ("fileJavascript", self.tr("JavaScript")), |
80 ("fileJavascript", self.tr("JavaScript")), |
82 ): |
81 ): |
83 self.iconsListWidget.addItem( |
82 self.iconsListWidget.addItem( |
84 QListWidgetItem(UI.PixmapCache.getIcon(iconName), labelText) |
83 QListWidgetItem(EricPixmapCache.getIcon(iconName), labelText) |
85 ) |
84 ) |
86 |
85 |
87 @pyqtSlot(str) |
86 @pyqtSlot(str) |
88 def on_styleIconsPathPicker_textChanged(self, txt): |
87 def on_styleIconsPathPicker_textChanged(self, txt): |
89 """ |
88 """ |