[gui] Close slider on switching day/night
This commit is contained in:
parent
a1f010fa5b
commit
c8dd7f48ff
@ -206,6 +206,10 @@ void f1x::openauto::autoapp::ui::MainWindow::switchGuiToNight()
|
|||||||
this->setStyleSheet( this->styleSheet().append("QMainWindow { background: url(wallpaper-night.png) }") );
|
this->setStyleSheet( this->styleSheet().append("QMainWindow { background: url(wallpaper-night.png) }") );
|
||||||
ui_->pushButtonDay->show();
|
ui_->pushButtonDay->show();
|
||||||
ui_->pushButtonNight->hide();
|
ui_->pushButtonNight->hide();
|
||||||
|
if (this->brightnessSliderVisible) {
|
||||||
|
ui_->horizontalSliderBrightness->hide();
|
||||||
|
this->brightnessSliderVisible = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void f1x::openauto::autoapp::ui::MainWindow::switchGuiToDay()
|
void f1x::openauto::autoapp::ui::MainWindow::switchGuiToDay()
|
||||||
@ -213,6 +217,10 @@ void f1x::openauto::autoapp::ui::MainWindow::switchGuiToDay()
|
|||||||
this->setStyleSheet( this->styleSheet().append("QMainWindow { background: url(wallpaper.png) }") );
|
this->setStyleSheet( this->styleSheet().append("QMainWindow { background: url(wallpaper.png) }") );
|
||||||
ui_->pushButtonNight->show();
|
ui_->pushButtonNight->show();
|
||||||
ui_->pushButtonDay->hide();
|
ui_->pushButtonDay->hide();
|
||||||
|
if (this->brightnessSliderVisible) {
|
||||||
|
ui_->horizontalSliderBrightness->hide();
|
||||||
|
this->brightnessSliderVisible = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void f1x::openauto::autoapp::ui::MainWindow::showTime()
|
void f1x::openauto::autoapp::ui::MainWindow::showTime()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user