summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-08-01 20:47:17 +0200
committerAdmiral H. Curtiss <pikachu025@gmail.com>2023-08-12 19:43:12 +0200
commit24012cfc7f396177732e9a8b7d849045a65a5512 (patch)
tree7e8958b888a10785a44cff2972b27e7fc5e62622 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
parentc2e29153e9e1e831f4b29bbc7e19ebf39d18bc79 (diff)
DolphinQt: Adjust panel-specific colors and syntax highlighting for dark theme.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
index 65ddd69692..5507875997 100644
--- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
@@ -307,7 +307,7 @@ void CodeViewWidget::Update(const Core::CPUThreadGuard* guard)
const std::optional<u32> pc =
guard ? std::make_optional(power_pc.GetPPCState().pc) : std::nullopt;
- const bool dark_theme = qApp->palette().color(QPalette::Base).valueF() < 0.5;
+ const bool dark_theme = Settings::Instance().IsThemeDark();
m_branches.clear();
@@ -350,7 +350,7 @@ void CodeViewWidget::Update(const Core::CPUThreadGuard* guard)
}
else if (color != 0xFFFFFF)
{
- item->setBackground(dark_theme ? QColor(color).darker(240) : QColor(color));
+ item->setBackground(dark_theme ? QColor(color).darker(400) : QColor(color));
}
}
@@ -372,7 +372,7 @@ void CodeViewWidget::Update(const Core::CPUThreadGuard* guard)
description_item->setText(
tr("--> %1").arg(QString::fromStdString(debug_interface.GetDescription(branch_addr))));
- param_item->setForeground(Qt::magenta);
+ param_item->setForeground(dark_theme ? QColor(255, 135, 255) : Qt::magenta);
}
if (ins == "blr")