Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/release-notes.rst
Original file line number Diff line number Diff line change
@@ -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
*************
Expand Down
22 changes: 17 additions & 5 deletions src/fixate/ui_gui_qt/ui_gui_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))),
]
)
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -864,9 +868,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, _ = 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":
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, _ = 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)

def _print_test_start(self, data, test_index):
if self.closing:
Expand Down
Loading