mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-22 20:05:38 +01:00
Address issues
This commit is contained in:
parent
db4502b7b7
commit
617eeb09e0
@ -37,8 +37,8 @@ constexpr std::array<std::array<Qt::GlobalColor, 2>, 10> WaitTreeColors{{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
bool IsDarkTheme() {
|
bool IsDarkTheme() {
|
||||||
const auto theme = UISettings::values.theme.toStdString();
|
const auto& theme = UISettings::values.theme;
|
||||||
return theme == "qdarkstyle" || theme == "colorful_dark";
|
return theme == QStringLiteral("qdarkstyle") || theme == QStringLiteral("colorful_dark");
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
@ -291,10 +291,7 @@ QString WaitTreeThread::GetText() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QColor WaitTreeThread::GetColor() const {
|
QColor WaitTreeThread::GetColor() const {
|
||||||
std::size_t color_index = 0;
|
const std::size_t color_index = IsDarkTheme() ? 1 : 0;
|
||||||
if (IsDarkTheme()) {
|
|
||||||
color_index = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
const auto& thread = static_cast<const Kernel::Thread&>(object);
|
const auto& thread = static_cast<const Kernel::Thread&>(object);
|
||||||
switch (thread.GetStatus()) {
|
switch (thread.GetStatus()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user