- added icon in status bar for HUD; clicking on it will toggle the HUD (heads up display)

This commit is contained in:
Marius Stanciu
2020-05-18 23:35:33 +03:00
committed by Marius
parent 49eb883cb1
commit da81fb89b8
4 changed files with 23 additions and 0 deletions

View File

@@ -324,11 +324,19 @@ class PlotCanvasLegacy(QtCore.QObject):
self.text_hud.add_artist()
self.app.defaults['global_hud'] = True
self.fcapp.ui.hud_label.setStyleSheet("""
QLabel
{
color: black;
background-color: lightblue;
}
""")
else:
self.hud_enabled = False
self.text_hud.remove_artist()
self.app.defaults['global_hud'] = False
self.fcapp.ui.hud_label.setStyleSheet("")
self.canvas.draw()