11 import os |
11 import os |
12 |
12 |
13 from PyQt6.QtCore import pyqtSlot, QTranslator |
13 from PyQt6.QtCore import pyqtSlot, QTranslator |
14 from PyQt6.QtWidgets import QStyleFactory, QDialog, QColorDialog |
14 from PyQt6.QtWidgets import QStyleFactory, QDialog, QColorDialog |
15 |
15 |
16 from EricWidgets.EricPathPicker import EricPathPickerModes |
16 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes |
17 from EricWidgets.EricIconBar import EricIconBar |
17 from eric7.EricWidgets.EricIconBar import EricIconBar |
18 from EricWidgets.EricApplication import ericApp |
18 from eric7.EricWidgets.EricApplication import ericApp |
19 |
19 |
20 from .ConfigurationPageBase import ConfigurationPageBase |
20 from .ConfigurationPageBase import ConfigurationPageBase |
21 from .Ui_InterfacePage import Ui_InterfacePage |
21 from .Ui_InterfacePage import Ui_InterfacePage |
22 |
22 |
23 import Preferences |
23 from eric7 import Preferences, Utilities |
24 import Utilities |
24 from eric7.EricGui import EricPixmapCache |
25 import UI.PixmapCache |
|
26 |
25 |
27 from eric7config import getConfig |
26 from eric7config import getConfig |
28 |
27 |
29 |
28 |
30 class InterfacePage(ConfigurationPageBase, Ui_InterfacePage): |
29 class InterfacePage(ConfigurationPageBase, Ui_InterfacePage): |
278 self.sampleLabel.setFixedSize(size, size) |
277 self.sampleLabel.setFixedSize(size, size) |
279 self.sampleLabel.setStyleSheet( |
278 self.sampleLabel.setStyleSheet( |
280 EricIconBar.LabelStyleSheetTemplate.format(self.__iconBarColor.name()) |
279 EricIconBar.LabelStyleSheetTemplate.format(self.__iconBarColor.name()) |
281 ) |
280 ) |
282 self.sampleLabel.setPixmap( |
281 self.sampleLabel.setPixmap( |
283 UI.PixmapCache.getIcon("sbDebugViewer96").pixmap(iconSize, iconSize) |
282 EricPixmapCache.getIcon("sbDebugViewer96").pixmap(iconSize, iconSize) |
284 ) |
283 ) |
285 |
284 |
286 self.highlightedSampleLabel.setFixedSize(size, size) |
285 self.highlightedSampleLabel.setFixedSize(size, size) |
287 self.highlightedSampleLabel.setStyleSheet( |
286 self.highlightedSampleLabel.setStyleSheet( |
288 EricIconBar.LabelStyleSheetTemplate.format( |
287 EricIconBar.LabelStyleSheetTemplate.format( |
289 self.__iconBarColor.darker().name() |
288 self.__iconBarColor.darker().name() |
290 ) |
289 ) |
291 ) |
290 ) |
292 self.highlightedSampleLabel.setPixmap( |
291 self.highlightedSampleLabel.setPixmap( |
293 UI.PixmapCache.getIcon("sbDebugViewer96").pixmap(iconSize, iconSize) |
292 EricPixmapCache.getIcon("sbDebugViewer96").pixmap(iconSize, iconSize) |
294 ) |
293 ) |
295 |
294 |
296 @pyqtSlot() |
295 @pyqtSlot() |
297 def on_iconBarButton_clicked(self): |
296 def on_iconBarButton_clicked(self): |
298 """ |
297 """ |