updated warning pic
This commit is contained in:
parent
b31ef20240
commit
89e6bfd086
2 changed files with 7 additions and 2 deletions
|
@ -1395,8 +1395,6 @@ class MenuPage(Page):
|
||||||
new_profile['browser'] = 'unknown browser'
|
new_profile['browser'] = 'unknown browser'
|
||||||
new_profile['browser_supported'] = False
|
new_profile['browser_supported'] = False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
resolution = profile.resolution if hasattr(profile, 'resolution') else 'None'
|
resolution = profile.resolution if hasattr(profile, 'resolution') else 'None'
|
||||||
new_profile['dimentions'] = resolution
|
new_profile['dimentions'] = resolution
|
||||||
|
|
||||||
|
@ -1539,6 +1537,13 @@ class MenuPage(Page):
|
||||||
if pixmap.isNull():
|
if pixmap.isNull():
|
||||||
pixmap = QPixmap(50, 50)
|
pixmap = QPixmap(50, 50)
|
||||||
pixmap.fill(QtGui.QColor(200, 200, 200))
|
pixmap.fill(QtGui.QColor(200, 200, 200))
|
||||||
|
|
||||||
|
if label_name == 'browser' and not value.get('browser_supported', True) and value.get('browser') != 'unknown browser':
|
||||||
|
warning_pixmap = QPixmap(os.path.join(self.btn_path, 'warning.png'))
|
||||||
|
painter = QPainter(pixmap)
|
||||||
|
painter.drawPixmap(pixmap.width() - 22, pixmap.height() - 21, warning_pixmap)
|
||||||
|
painter.end()
|
||||||
|
|
||||||
child_label.setPixmap(pixmap)
|
child_label.setPixmap(pixmap)
|
||||||
child_label.show()
|
child_label.show()
|
||||||
|
|
||||||
|
|
BIN
gui/resources/images/warning.png
Normal file
BIN
gui/resources/images/warning.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 351 B |
Loading…
Reference in a new issue