HomeWindow: fix background white flash while switching to onroad (#21695)

This commit is contained in:
Dean Lee
2021-07-24 07:05:58 +08:00
committed by GitHub
parent 116bb0b524
commit f67467f321
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -39,6 +39,7 @@ HomeWindow::HomeWindow(QWidget* parent) : QWidget(parent) {
showDriverView(false);
});
slayout->addWidget(driver_view);
setAttribute(Qt::WA_NoSystemBackground);
}
void HomeWindow::showSidebar(bool show) {
@@ -46,12 +47,12 @@ void HomeWindow::showSidebar(bool show) {
}
void HomeWindow::offroadTransition(bool offroad) {
sidebar->setVisible(offroad);
if (offroad) {
slayout->setCurrentWidget(home);
} else {
slayout->setCurrentWidget(onroad);
}
sidebar->setVisible(offroad);
emit offroadTransitionSignal(offroad);
}
+1
View File
@@ -59,6 +59,7 @@ MainWindow::MainWindow(QWidget *parent) : QWidget(parent) {
outline: none;
}
)");
setAttribute(Qt::WA_NoSystemBackground);
}
void MainWindow::openSettings() {