- 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

@@ -208,12 +208,20 @@ class PlotCanvas(QtCore.QObject, VisPyCanvas):
self.text_hud.parent = self.view
self.fcapp.defaults['global_hud'] = True
self.fcapp.ui.hud_label.setStyleSheet("""
QLabel
{
color: black;
background-color: lightblue;
}
""")
else:
self.hud_enabled = False
self.rect_hud.parent = None
self.text_hud.parent = None
self.fcapp.defaults['global_hud'] = False
self.fcapp.ui.hud_label.setStyleSheet("")
def draw_workspace(self, workspace_size):
"""