mirror of
https://github.com/azahar-emu/azahar.git
synced 2025-04-28 13:47:59 +03:00
Fix artic traffic label being white on light theme
This commit is contained in:
parent
8cb3dde72f
commit
66d8e58dcd
1 changed files with 6 additions and 3 deletions
|
@ -3115,7 +3115,7 @@ void GMainWindow::UpdateStatusBar() {
|
|||
}
|
||||
}
|
||||
|
||||
static const std::array label_color = {QStringLiteral("#ffffff"), QStringLiteral("#eed202"),
|
||||
static const std::array label_color = {QStringLiteral(""), QStringLiteral("#eed202"),
|
||||
QStringLiteral("#ff3333")};
|
||||
|
||||
int style_index;
|
||||
|
@ -3127,8 +3127,11 @@ void GMainWindow::UpdateStatusBar() {
|
|||
} else {
|
||||
style_index = 0;
|
||||
}
|
||||
const QString style_sheet =
|
||||
QStringLiteral("QLabel { color: %0; }").arg(label_color[style_index]);
|
||||
|
||||
QString style_sheet;
|
||||
if (!label_color[style_index].isEmpty()) {
|
||||
style_sheet = QStringLiteral("QLabel { color: %0; }").arg(label_color[style_index]);
|
||||
}
|
||||
|
||||
artic_traffic_label->setText(
|
||||
tr("Artic Traffic: %1 %2%3").arg(value, 0, 'f', 0).arg(unit).arg(event));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue