11 from PyQt6.QtGui import QPalette |
11 from PyQt6.QtGui import QPalette |
12 from PyQt6.QtWidgets import QWidget |
12 from PyQt6.QtWidgets import QWidget |
13 |
13 |
14 from .Ui_SearchWidget import Ui_SearchWidget |
14 from .Ui_SearchWidget import Ui_SearchWidget |
15 |
15 |
16 import UI.PixmapCache |
16 from eric7.EricGui import EricPixmapCache |
17 |
17 |
18 |
18 |
19 class SearchWidget(QWidget, Ui_SearchWidget): |
19 class SearchWidget(QWidget, Ui_SearchWidget): |
20 """ |
20 """ |
21 Class implementing the search bar for the web browser. |
21 Class implementing the search bar for the web browser. |
31 super().__init__(parent) |
31 super().__init__(parent) |
32 self.setupUi(self) |
32 self.setupUi(self) |
33 |
33 |
34 self.__mainWindow = mainWindow |
34 self.__mainWindow = mainWindow |
35 |
35 |
36 self.closeButton.setIcon(UI.PixmapCache.getIcon("close")) |
36 self.closeButton.setIcon(EricPixmapCache.getIcon("close")) |
37 self.findPrevButton.setIcon(UI.PixmapCache.getIcon("1leftarrow")) |
37 self.findPrevButton.setIcon(EricPixmapCache.getIcon("1leftarrow")) |
38 self.findNextButton.setIcon(UI.PixmapCache.getIcon("1rightarrow")) |
38 self.findNextButton.setIcon(EricPixmapCache.getIcon("1rightarrow")) |
39 |
39 |
40 self.__defaultBaseColor = ( |
40 self.__defaultBaseColor = ( |
41 self.findtextCombo.lineEdit().palette().color(QPalette.ColorRole.Base) |
41 self.findtextCombo.lineEdit().palette().color(QPalette.ColorRole.Base) |
42 ) |
42 ) |
43 self.__defaultTextColor = ( |
43 self.__defaultTextColor = ( |