eric6/WebBrowser/UrlBar/UrlBar.py

changeset 8260
2161475d9639
parent 8218
7c09585bd960
child 8268
6b8128e0c9d1
equal deleted inserted replaced
8259:2bbec88047dd 8260:2161475d9639
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

eric ide

mercurial