From 7aa8ef085870960b7d5083e46ccfbe4d81953f8c Mon Sep 17 00:00:00 2001 From: Nav Date: Tue, 25 Apr 2023 20:28:03 +0100 Subject: [PATCH] Consistent selection background color --- .../UserInterfaces/InsightWindow/Stylesheets/Global.qss | 8 ++++---- .../Stylesheets/MemoryRegionManagerWindow.qss | 2 +- .../SnapshotManager/MemorySnapshotItem.cpp | 2 +- .../Stylesheets/TargetRegisterInspectorWindow.qss | 2 +- .../Widgets/TargetRegistersPane/RegisterGroupItem.cpp | 2 +- .../Widgets/TargetRegistersPane/RegisterItem.cpp | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Stylesheets/Global.qss b/src/Insight/UserInterfaces/InsightWindow/Stylesheets/Global.qss index f90f4c2b..5827473f 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Stylesheets/Global.qss +++ b/src/Insight/UserInterfaces/InsightWindow/Stylesheets/Global.qss @@ -27,7 +27,7 @@ QMenuBar::item { } QMenuBar::item:pressed { - background-color: #355A80; + background-color: #3c595c; } QMenuBar { @@ -57,7 +57,7 @@ QMenu::item { } QMenu::item:selected { - background-color: #355A80; + background-color: #3c595c; } QMenu::item:disabled { @@ -125,7 +125,7 @@ QLineEdit, QPlainTextEdit { background-color: #2F2F2D; border: 1px solid #41423f; - selection-background-color: #355A80; + selection-background-color: #3c595c; selection-color: #afb1b3; } @@ -164,7 +164,7 @@ QComboBox QAbstractItemView:item { } QComboBox QAbstractItemView::item:selected { - background-color: #355A80; + background-color: #3c595c; padding: 0; border: 0; margin: 0; diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/Stylesheets/MemoryRegionManagerWindow.qss b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/Stylesheets/MemoryRegionManagerWindow.qss index f86f8f20..b175f46d 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/Stylesheets/MemoryRegionManagerWindow.qss +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemoryRegionManager/Stylesheets/MemoryRegionManagerWindow.qss @@ -72,7 +72,7 @@ } #region-selector #region-item[selected=true] { - background-color: #355A80; + background-color: #3c595c; } #region-selector #region-item #name-label { diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/MemorySnapshotItem.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/MemorySnapshotItem.cpp index 31fc01b1..0ea62bab 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/MemorySnapshotItem.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/MemorySnapshotItem.cpp @@ -30,7 +30,7 @@ namespace Bloom::Widgets static constexpr auto secondaryFontColor = QColor(0x8A, 0x8A, 0x8D); if (this->selected) { - static constexpr auto selectedBackgroundColor = QColor(0x35, 0x5A, 0x80); + static constexpr auto selectedBackgroundColor = QColor(0x3C, 0x59, 0x5C); painter->setBrush(selectedBackgroundColor); painter->setPen(Qt::PenStyle::NoPen); diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/Stylesheets/TargetRegisterInspectorWindow.qss b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/Stylesheets/TargetRegisterInspectorWindow.qss index 9cdb42af..547f4ce1 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/Stylesheets/TargetRegisterInspectorWindow.qss +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/Stylesheets/TargetRegisterInspectorWindow.qss @@ -74,7 +74,7 @@ #target-register-history-widget #current-item[selected=true], #target-register-history-widget #register-history-item[selected=true] { - background-color: #355A80; + background-color: #3c595c; } #target-register-history-widget #separator-widget { diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterGroupItem.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterGroupItem.cpp index fd06d7b1..c5a133f6 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterGroupItem.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterGroupItem.cpp @@ -70,7 +70,7 @@ namespace Bloom::Widgets } void RegisterGroupItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) { - static constexpr auto selectedBackgroundColor = QColor(0x35, 0x5A, 0x80); + static constexpr auto selectedBackgroundColor = QColor(0x3C, 0x59, 0x5C); static constexpr auto itemLeftPadding = 3; static constexpr auto itemTopPadding = 4; diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterItem.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterItem.cpp index 6b707dc8..2ebfa3cf 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterItem.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegistersPane/RegisterItem.cpp @@ -45,7 +45,7 @@ namespace Bloom::Widgets return; } - static constexpr auto selectedBackgroundColor = QColor(0x35, 0x5A, 0x80); + static constexpr auto selectedBackgroundColor = QColor(0x3C, 0x59, 0x5C); static constexpr auto itemLeftPadding = 41; static constexpr auto itemTopPadding = 4;