From 51ef3b40ec5020f8b8b3ea19ad1b1d54dd790854 Mon Sep 17 00:00:00 2001 From: Louis Mazin Date: Sun, 28 Jun 2026 18:07:25 +0200 Subject: [PATCH] nice change --- app/ui/main_window.py | 4 ++++ app/ui/widgets/tabs_widget.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/ui/main_window.py b/app/ui/main_window.py index cef1341..5886cc9 100644 --- a/app/ui/main_window.py +++ b/app/ui/main_window.py @@ -202,6 +202,10 @@ class MainWindow(QMainWindow): for widget_type in widget_types: for child in widget.findChildren(widget_type): + + if child.accessibleName() == "ignore": + continue # Ignorer les widgets marqués pour être ignorés + widget_id = id(child) # Récupérer la taille de base diff --git a/app/ui/widgets/tabs_widget.py b/app/ui/widgets/tabs_widget.py index 6e2ce7a..6e7b60c 100644 --- a/app/ui/widgets/tabs_widget.py +++ b/app/ui/widgets/tabs_widget.py @@ -728,9 +728,9 @@ class TabsWidget(QWidget): continue lname = tag.split('}')[-1] # local name if lname in ("svg", "g", "path", "rect", "circle", "ellipse", "polygon", "line", "polyline"): - if 'fill' in el.attrib: + if 'fill' in el.attrib and el.attrib['fill'] != 'none': el.attrib['fill'] = color - if 'stroke' in el.attrib: + if 'stroke' in el.attrib and el.attrib['stroke'] != 'none': el.attrib['stroke'] = color style = el.attrib.get('style')