summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar David Marcec2020-07-19 01:02:41 +1000
committerGravatar David Marcec2020-07-19 01:02:41 +1000
commit617eeb09e03f9f2727269c0424a05ee5678f32b9 (patch)
tree1727c3213572a9fd93d8f42cbb4d9f09d54e9f6e /src
parentfrontend: Improve wait tree readability for dark themes (diff)
downloadyuzu-617eeb09e03f9f2727269c0424a05ee5678f32b9.tar.gz
yuzu-617eeb09e03f9f2727269c0424a05ee5678f32b9.tar.xz
yuzu-617eeb09e03f9f2727269c0424a05ee5678f32b9.zip
Address issues
Diffstat (limited to '')
-rw-r--r--src/yuzu/debugger/wait_tree.cpp9
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
39bool IsDarkTheme() { 39bool 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
293QColor WaitTreeThread::GetColor() const { 293QColor 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()) {