Dark mode on satellites

This commit is contained in:
2021-10-22 10:48:13 -04:00
parent b28817c0c6
commit a0157664cc
3 changed files with 29 additions and 2 deletions

View File

@ -112,6 +112,7 @@ class QtGPSWindow(MainWindow):
self.yellow = QColor(255,211,0)
self.green = QColor(0,255,0)
self.blue = QColor(0,0,255)
self.white = QColor(255,255,255)
self.scene = QtWidgets.QGraphicsScene()
self.viewSatellites.setScene(self.scene)
@ -155,7 +156,8 @@ class QtGPSWindow(MainWindow):
satellites = getattr(report, 'satellites')
txt = "%4s %4s %4s %3s %1s" % ('PRN', 'Azim', 'Elev', 'SNR', 'Used')
self.txtSatellites.setTextColor(self.black)
self.txtSatellites.setStyleSheet("background-color: rgb(0, 0, 0)")
self.txtSatellites.setTextColor(self.white)
self.txtSatellites.setFontWeight(QFont.Bold)
self.txtSatellites.setText(txt)
@ -226,6 +228,7 @@ class QtGPSWindow(MainWindow):
polar.set_theta_zero_location('N', offset=0)
canvas = FigureCanvas(figure)
self.scene.clear()
self.scene.addWidget(canvas)
h = float(self.scene.height()) / 2.0
w = float(self.scene.width()) / 2.0