235 |
235 |
236 @param evt reference to the paint event (QPaintEvent) |
236 @param evt reference to the paint event (QPaintEvent) |
237 """ |
237 """ |
238 foregroundColor = QApplication.palette().color(QPalette.ColorRole.Text) |
238 foregroundColor = QApplication.palette().color(QPalette.ColorRole.Text) |
239 |
239 |
240 if self.__privateMode: |
240 backgroundColor = ( |
241 backgroundColor = Preferences.getWebBrowser("PrivateModeUrlColor") |
241 Preferences.getWebBrowser("PrivateModeUrlColor") |
242 else: |
242 if self.__privateMode else |
243 backgroundColor = QApplication.palette().color( |
243 QApplication.palette().color(QPalette.ColorRole.Base) |
244 QPalette.ColorRole.Base) |
244 ) |
245 |
245 |
246 if self.__browser is not None: |
246 if self.__browser is not None: |
247 p = self.palette() |
247 p = self.palette() |
248 progress = self.__browser.progress() |
248 progress = self.__browser.progress() |
249 |
249 |