From d1947e37c2dc0502ad3d2786a6ed0ba4d3ca74d1 Mon Sep 17 00:00:00 2001 From: Overlord360 <49475695+Overlord360@users.noreply.github.com> Date: Wed, 29 Jul 2026 15:51:20 +1000 Subject: [PATCH 1/3] change test pass and test fail colors to match the colours used elsewhere in the UI --- src/fixate/ui_gui_qt/ui_gui_qt.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/fixate/ui_gui_qt/ui_gui_qt.py b/src/fixate/ui_gui_qt/ui_gui_qt.py index c8993b3..805b63a 100644 --- a/src/fixate/ui_gui_qt/ui_gui_qt.py +++ b/src/fixate/ui_gui_qt/ui_gui_qt.py @@ -864,9 +864,17 @@ def _topic_Sequence_Complete( # Emit signal to update the image window: if status == "PASSED": - self.sig_image_result.emit("TEST PASS", "#2ECC71") + # get the RGBA values for green used in other parts of the GUI, so that the image window uses the same colour + r, g, b, _ = QtGui.QColor(Qt.green).getRgb() + # convert to hex string + hex_colour = "#{:02X}{:02X}{:02X}".format(r, g, b) + self.sig_image_result.emit("TEST PASS", hex_colour) elif status != "PASSED": - self.sig_image_result.emit("TEST FAIL", "#E74C3C") + # get the RGBA values for red used in other parts of the GUI, so that the image window uses the same colour + r, g, b, _ = QtGui.QColor(Qt.red).getRgb() + # convert to hex string + hex_colour = "#{:02X}{:02X}{:02X}".format(r, g, b) + self.sig_image_result.emit("TEST FAIL", hex_colour) def _print_test_start(self, data, test_index): if self.closing: From 754ea7b4eee5797f038334ee6d362920f135ce46 Mon Sep 17 00:00:00 2001 From: Overlord360 <49475695+Overlord360@users.noreply.github.com> Date: Mon, 19 Oct 2026 11:49:06 +1100 Subject: [PATCH 2/3] update release notes --- docs/release-notes.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/release-notes.rst b/docs/release-notes.rst index 68dd09b..a8d6bac 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -1,6 +1,23 @@ ================================== Release Notes ================================== +************* +Version 0.7.5 +************* +Release Date xx/10/2026 + +Major Changes +################ +- + +New Features +############ +- + +Improvements +############ +- Modified colours of the UI elements to be more consistent. + ************* Version 0.7.0 ************* From 1ebc26ad472cea764e5dc099698a11d4cb61ddc3 Mon Sep 17 00:00:00 2001 From: Overlord360 <49475695+Overlord360@users.noreply.github.com> Date: Tue, 20 Oct 2026 11:56:29 +1100 Subject: [PATCH 3/3] change colours to be more muted --- src/fixate/ui_gui_qt/ui_gui_qt.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/fixate/ui_gui_qt/ui_gui_qt.py b/src/fixate/ui_gui_qt/ui_gui_qt.py index 805b63a..286359d 100644 --- a/src/fixate/ui_gui_qt/ui_gui_qt.py +++ b/src/fixate/ui_gui_qt/ui_gui_qt.py @@ -38,13 +38,17 @@ width: 1px; }""" +# create some custom colours for the GUI +MUTED_RED = QtGui.QColor(Qt.red).darker(120) +MUTED_GREEN = QtGui.QColor(Qt.green).darker(125) + STATUS_PRIORITY = OrderedDict( [ ("In Progress", (QtGui.QBrush(Qt.yellow), QtGui.QBrush(Qt.black))), ("Error", (QtGui.QBrush(Qt.red), QtGui.QBrush(Qt.white))), - ("Failed", (QtGui.QBrush(Qt.red), QtGui.QBrush(Qt.black))), + ("Failed", (QtGui.QBrush(MUTED_RED), QtGui.QBrush(Qt.black))), ("Aborted", (QtGui.QBrush(Qt.gray), QtGui.QBrush(Qt.white))), - ("Passed", (QtGui.QBrush(Qt.green), QtGui.QBrush(Qt.black))), + ("Passed", (QtGui.QBrush(MUTED_GREEN), QtGui.QBrush(Qt.black))), ("Skipped", (QtGui.QBrush(Qt.cyan), QtGui.QBrush(Qt.black))), ] ) @@ -369,7 +373,7 @@ def _show_sequence_result(self, text, fill_colour): text_item = self.image_scene.addText( text, QtGui.QFont("Arial", 14, QtGui.QFont.Bold) ) - text_item.setDefaultTextColor(QtGui.QColor("white")) + text_item.setDefaultTextColor(QtGui.QColor("black")) text_bounds = text_item.boundingRect() text_item.setPos( @@ -865,13 +869,13 @@ def _topic_Sequence_Complete( # Emit signal to update the image window: if status == "PASSED": # get the RGBA values for green used in other parts of the GUI, so that the image window uses the same colour - r, g, b, _ = QtGui.QColor(Qt.green).getRgb() + r, g, b, _ = MUTED_GREEN.getRgb() # convert to hex string hex_colour = "#{:02X}{:02X}{:02X}".format(r, g, b) self.sig_image_result.emit("TEST PASS", hex_colour) elif status != "PASSED": # get the RGBA values for red used in other parts of the GUI, so that the image window uses the same colour - r, g, b, _ = QtGui.QColor(Qt.red).getRgb() + r, g, b, _ = MUTED_RED.getRgb() # convert to hex string hex_colour = "#{:02X}{:02X}{:02X}".format(r, g, b) self.sig_image_result.emit("TEST FAIL", hex_colour)