@ -35,18 +35,16 @@ This file is part of the QGROUNDCONTROL project
@@ -35,18 +35,16 @@ This file is part of the QGROUNDCONTROL project
# include <QGraphicsScene>
# include <QHBoxLayout>
# include <QDoubleSpinBox>
# include <QDebug>
# include "UASManager.h"
# include "HSIDisplay.h"
# include "QGC.h"
# include "Waypoint.h"
# include "UASWaypointManager.h"
# include <qmath.h>
//#include "Waypoint2DIcon.h"
# include "MAV2DIcon.h"
# include "MainWindow.h"
# include <QDebug>
# include "QGCApplication.h"
HSIDisplay : : HSIDisplay ( QWidget * parent ) :
HDDisplay ( QStringList ( ) , " HSI " , parent ) ,
@ -279,26 +277,26 @@ void HSIDisplay::renderOverlay()
@@ -279,26 +277,26 @@ void HSIDisplay::renderOverlay()
QColor statusColor ;
QColor waypointLineColor ;
QColor attitudeColor ;
if ( MainWindow : : instance ( ) - > getStyle ( ) = = MainWindow : : QGC_MAINWINDOW_STYLE_LIGHT )
if ( qgcApp ( ) - > styleIsDark ( ) )
{
ringColor = QGC : : colorBlack ;
ringColor = QColor ( 255 , 255 , 255 ) ;
positionColor = QColor ( 20 , 20 , 200 ) ;
setpointColor = QColor ( 150 , 250 , 150 ) ;
labelColor = QColor ( 26 , 75 , 95 ) ;
valueColor = QColor ( 40 , 40 , 40 ) ;
labelColor = QGC : : colorCyan ;
valueColor = QColor ( 255 , 255 , 255 ) ;
statusColor = QGC : : colorOrange ;
waypointLineColor = QGC : : colorDark Yellow ;
waypointLineColor = QGC : : colorYellow ;
attitudeColor = QColor ( 200 , 20 , 20 ) ;
}
else
{
ringColor = QColor ( 255 , 255 , 255 ) ;
ringColor = QGC : : colorBlack ;
positionColor = QColor ( 20 , 20 , 200 ) ;
setpointColor = QColor ( 150 , 250 , 150 ) ;
labelColor = QGC : : colorCyan ;
valueColor = QColor ( 255 , 255 , 255 ) ;
labelColor = QColor ( 26 , 75 , 95 ) ;
valueColor = QColor ( 40 , 40 , 40 ) ;
statusColor = QGC : : colorOrange ;
waypointLineColor = QGC : : colorYellow ;
waypointLineColor = QGC : : colorDark Yellow ;
attitudeColor = QColor ( 200 , 20 , 20 ) ;
}
@ -475,15 +473,15 @@ void HSIDisplay::drawStatusFlag(float x, float y, QString label, bool status, bo
@@ -475,15 +473,15 @@ void HSIDisplay::drawStatusFlag(float x, float y, QString label, bool status, bo
{
QColor statusColor ;
QColor labelColor ;
if ( MainWindow : : instance ( ) - > getStyle ( ) = = MainWindow : : QGC_MAINWINDOW_STYLE_LIGHT )
if ( qgcApp ( ) - > styleIsDark ( ) )
{
statusColor = QColor ( 40 , 40 , 4 0) ;
labelColor = QColor ( 26 , 75 , 95 ) ;
statusColor = QColor ( 250 , 250 , 25 0) ;
labelColor = QGC : : colorCyan ;
}
else
{
statusColor = QColor ( 250 , 250 , 25 0) ;
labelColor = QGC : : colorCyan ;
statusColor = QColor ( 40 , 40 , 4 0) ;
labelColor = QColor ( 26 , 75 , 95 ) ;
}
// Draw the label.
@ -537,15 +535,15 @@ void HSIDisplay::drawPositionLock(float x, float y, QString label, int status, b
@@ -537,15 +535,15 @@ void HSIDisplay::drawPositionLock(float x, float y, QString label, int status, b
QColor intermediateStatusColor ( Qt : : yellow ) ;
QColor posStatusColor ( 20 , 200 , 20 ) ;
QColor statusColor ;
if ( MainWindow : : instance ( ) - > getStyle ( ) = = MainWindow : : QGC_MAINWINDOW_STYLE_LIGHT )
if ( qgcApp ( ) - > styleIsDark ( ) )
{
statusColor = QColor ( 40 , 40 , 4 0) ;
labelColor = QColor ( 26 , 75 , 95 ) ;
statusColor = QColor ( 250 , 250 , 25 0) ;
labelColor = QGC : : colorCyan ;
}
else
{
statusColor = QColor ( 250 , 250 , 25 0) ;
labelColor = QGC : : colorCyan ;
statusColor = QColor ( 40 , 40 , 4 0) ;
labelColor = QColor ( 26 , 75 , 95 ) ;
}
// Draw the label.