From 89e6bfd08665a243d0a8fba08cde317b5706ae56 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 20 Jul 2025 02:42:06 +0100 Subject: [PATCH] updated warning pic --- gui/__main__.py | 9 +++++++-- gui/resources/images/warning.png | Bin 0 -> 351 bytes 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 gui/resources/images/warning.png diff --git a/gui/__main__.py b/gui/__main__.py index 59d3422..00fe690 100644 --- a/gui/__main__.py +++ b/gui/__main__.py @@ -1395,8 +1395,6 @@ class MenuPage(Page): new_profile['browser'] = 'unknown browser' new_profile['browser_supported'] = False - - resolution = profile.resolution if hasattr(profile, 'resolution') else 'None' new_profile['dimentions'] = resolution @@ -1539,6 +1537,13 @@ class MenuPage(Page): if pixmap.isNull(): pixmap = QPixmap(50, 50) 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.show() diff --git a/gui/resources/images/warning.png b/gui/resources/images/warning.png new file mode 100644 index 0000000000000000000000000000000000000000..5bd92ac0427bc3691ebfcf4d05837ae8b8b0402a GIT binary patch literal 351 zcmV-l0igbgP)1F^5F+irsK6y#( zkx9~DXijWsBkL%iHPTv4)Jg83{QcthVFy1K%P@W)cVTTVccdeV+MI+FSMaepjQ5Q} zcs{m9@N>Bams`@}MJww0KAE*iCHX#`gUh-^1AZsvBqHpr&qUL@6CI~CI_9XqvxzJ{ zv0Y}R62Uop678Ajnc(Mqv1*aMX3BF;bg@*A=+PZ*uZE-TOSEgEDP1=INp+WvKZ(Y( zR67=X(kh;R11`P#kUFe=whBJve5|`nqDFGI&ww(xaW#?&l-ay x6s@C`tfG8Yw38@`^pOd&OP&+EsjauroPWIFNvwoCe~thE002ovPDHLkV1n|vpz;6! literal 0 HcmV?d00001