mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-03-02 09:03:53 +08:00
@@ -99,7 +99,9 @@ void OffroadHome::refresh() {
|
||||
}
|
||||
|
||||
alert_notification->setVisible(true);
|
||||
alert_notification->setStyleSheet(QString(R"(
|
||||
|
||||
// Red background for alerts, blue for update available
|
||||
QString style = QString(R"(
|
||||
padding: 15px;
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
@@ -108,7 +110,11 @@ void OffroadHome::refresh() {
|
||||
font-size: 40px;
|
||||
font-weight: bold;
|
||||
background-color: red;
|
||||
)"));
|
||||
)");
|
||||
if (alerts_widget->updateAvailable){
|
||||
style.replace("red", "blue");
|
||||
}
|
||||
alert_notification->setStyleSheet(style);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user