diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/debugger/wait_tree.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/yuzu/debugger/wait_tree.cpp b/src/yuzu/debugger/wait_tree.cpp index 5a974d2a0..f391a41a9 100644 --- a/src/yuzu/debugger/wait_tree.cpp +++ b/src/yuzu/debugger/wait_tree.cpp | |||
| @@ -37,8 +37,8 @@ constexpr std::array<std::array<Qt::GlobalColor, 2>, 10> WaitTreeColors{{ | |||
| 37 | }}; | 37 | }}; |
| 38 | 38 | ||
| 39 | bool IsDarkTheme() { | 39 | bool IsDarkTheme() { |
| 40 | const auto theme = UISettings::values.theme.toStdString(); | 40 | const auto& theme = UISettings::values.theme; |
| 41 | return theme == "qdarkstyle" || theme == "colorful_dark"; | 41 | return theme == QStringLiteral("qdarkstyle") || theme == QStringLiteral("colorful_dark"); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | } // namespace | 44 | } // namespace |
| @@ -291,10 +291,7 @@ QString WaitTreeThread::GetText() const { | |||
| 291 | } | 291 | } |
| 292 | 292 | ||
| 293 | QColor WaitTreeThread::GetColor() const { | 293 | QColor WaitTreeThread::GetColor() const { |
| 294 | std::size_t color_index = 0; | 294 | const std::size_t color_index = IsDarkTheme() ? 1 : 0; |
| 295 | if (IsDarkTheme()) { | ||
| 296 | color_index = 1; | ||
| 297 | } | ||
| 298 | 295 | ||
| 299 | const auto& thread = static_cast<const Kernel::Thread&>(object); | 296 | const auto& thread = static_cast<const Kernel::Thread&>(object); |
| 300 | switch (thread.GetStatus()) { | 297 | switch (thread.GetStatus()) { |