From 851120856ec55056c9dcda48deb7ec33c61cec0a Mon Sep 17 00:00:00 2001 From: Borys Jurgiel Date: Thu, 10 Oct 2024 09:29:34 +0200 Subject: [PATCH 1/3] Fix table cells default background in dark themes --- a00_qpip/ui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/a00_qpip/ui.py b/a00_qpip/ui.py index ed666f2..0f87817 100644 --- a/a00_qpip/ui.py +++ b/a00_qpip/ui.py @@ -82,7 +82,8 @@ def make_error_widget(error_type): self.action_combos[lib] = action_combo # row color (gray out system deps) - row_color = QColor("#ffffff") if lib.qpip else QColor("#aaaaaa") + row_color = QgsApplication.palette().base().color() if lib.qpip \ + else QColor("#aaaaaa") for j in range(0, 5): self.table_widget.item(i, j).setBackground(row_color) From 9e36739e1f87c7e22538f7c1297d20cbf281ee99 Mon Sep 17 00:00:00 2001 From: Borys Jurgiel Date: Thu, 10 Oct 2024 09:36:28 +0200 Subject: [PATCH 2/3] Make the dialog slightly wider --- a00_qpip/ui_dialog.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a00_qpip/ui_dialog.ui b/a00_qpip/ui_dialog.ui index 1de37ab..3f95757 100644 --- a/a00_qpip/ui_dialog.ui +++ b/a00_qpip/ui_dialog.ui @@ -6,7 +6,7 @@ 0 0 - 683 + 780 387 From 7ebb17aec9e221eabf74ce81e64df3266e9f99e0 Mon Sep 17 00:00:00 2001 From: Borys Jurgiel Date: Thu, 10 Oct 2024 09:47:54 +0200 Subject: [PATCH 3/3] black --- a00_qpip/ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/a00_qpip/ui.py b/a00_qpip/ui.py index 0f87817..42ce791 100644 --- a/a00_qpip/ui.py +++ b/a00_qpip/ui.py @@ -82,8 +82,11 @@ def make_error_widget(error_type): self.action_combos[lib] = action_combo # row color (gray out system deps) - row_color = QgsApplication.palette().base().color() if lib.qpip \ + row_color = ( + QgsApplication.palette().base().color() + if lib.qpip else QColor("#aaaaaa") + ) for j in range(0, 5): self.table_widget.item(i, j).setBackground(row_color)