From 873cd6f9476263b684686544a15e5a9810e171fc Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sat, 15 Jan 2022 03:34:33 +0200 Subject: [PATCH] - some changes to the FCMessageBox so the dark theme works ok on it --- CHANGELOG.md | 1 + appGUI/GUIElements.py | 2 +- appTranslation.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9295682..a3907406 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ CHANGELOG for FlatCAM beta 15.01.2022 - All FCColorEntry GUI element instances have now a set icon for the title (and taskbar) +- some changes to the FCMessageBox so the dark theme works ok on it 14.01.2022 diff --git a/appGUI/GUIElements.py b/appGUI/GUIElements.py index 4a17090f..2169cf21 100644 --- a/appGUI/GUIElements.py +++ b/appGUI/GUIElements.py @@ -5430,10 +5430,10 @@ class FCMessageBox(QtWidgets.QMessageBox): self.moving = None self.setWindowFlags(self.windowFlags() | Qt.WindowType.FramelessWindowHint | Qt.WindowType.WindowSystemMenuHint) + # "background-color: palette(base); " self.setStyleSheet( "QDialog { " "border: 1px solid palette(shadow); " - "background-color: palette(base); " "}" ) diff --git a/appTranslation.py b/appTranslation.py index bb9231a2..f9599aa0 100644 --- a/appTranslation.py +++ b/appTranslation.py @@ -268,10 +268,10 @@ class FCMessageBox(QtWidgets.QMessageBox): self.moving = None self.setWindowFlags(self.windowFlags() | Qt.WindowType.FramelessWindowHint | Qt.WindowType.WindowSystemMenuHint) + # "background-color: palette(base); " self.setStyleSheet( "QDialog { " "border: 1px solid palette(shadow); " - "background-color: palette(base); " "}" )