From 9364e8f59ff7f617e1ced4ed62099f04022061d8 Mon Sep 17 00:00:00 2001 From: Nav Date: Mon, 1 May 2023 13:14:30 +0100 Subject: [PATCH] Darker border on selected memory snapsho items --- .../SnapshotManager/MemorySnapshotItem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/MemorySnapshotItem.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/MemorySnapshotItem.cpp index 0ea62bab..9085b45b 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/MemorySnapshotItem.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/MemorySnapshotItem.cpp @@ -90,7 +90,9 @@ namespace Bloom::Widgets painter->drawText(createdDateTextRect, Qt::AlignLeft, this->createdDateText); static constexpr auto borderColor = QColor(0x41, 0x42, 0x3F); - painter->setPen(borderColor); + static constexpr auto selectedBorderColor = QColor(0x2E, 0x2E, 0x2E); + + painter->setPen(this->selected ? selectedBorderColor : borderColor); painter->drawLine(0, this->size.height() - 1, this->size.width(), this->size.height() - 1); } }