added overlay to system view

This commit is contained in:
Bernd Herzog 2023-04-23 16:21:33 +02:00
parent 0acf7ec2c2
commit 812f0f8211
6 changed files with 143 additions and 1 deletions

View file

@ -748,6 +748,24 @@ Context& SystemView::context() const {
return context_;
}
void SystemView::toggle_overlay() {
if (overlay_active){
this->remove_child(&this->overlay);
this->set_dirty();
}
else{
this->add_child(&this->overlay);
this->set_dirty();
}
overlay_active = !overlay_active;
}
void SystemView::paint_overlay() {
if (overlay_active){
this->overlay.set_dirty();
}
}
/* ***********************************************************************/
void BMPView::focus() {