#6616 Make contour map and 2d intersection view follow the theme. (#6635)

* #6616 Make contour map and 2d intersection view follow the theme.
This commit is contained in:
Gaute Lindkvist
2020-09-30 08:32:20 +02:00
committed by GitHub
parent 0f92ad13ad
commit 2d268b9e54
3 changed files with 38 additions and 6 deletions

View File

@@ -39,6 +39,7 @@
#include "RiuCadNavigation.h"
#include "RiuComparisonViewMover.h"
#include "RiuGeoQuestNavigation.h"
#include "RiuGuiTheme.h"
#include "RiuRmsNavigation.h"
#include "RiuSimpleHistogramWidget.h"
#include "RiuViewerCommands.h"
@@ -201,6 +202,11 @@ RiuViewer::RiuViewer( const QGLFormat& format, QWidget* parent )
m_windowEdgeAxisOverlay = new RivWindowEdgeAxesOverlayItem( standardFont );
m_showWindowEdgeAxes = false;
auto backgroundColor = RiuGuiTheme::getColorByVariableName( "backgroundColor2" );
auto textColor = RiuGuiTheme::getColorByVariableName( "textColor" );
m_windowEdgeAxisOverlay->setFrameColor( cvf::Color4f( RiaColorTools::fromQColorTo3f( backgroundColor ) ) );
m_windowEdgeAxisOverlay->setTextColor( RiaColorTools::fromQColorTo3f( textColor ) );
m_selectionVisualizerManager = new caf::PdmUiSelection3dEditorVisualizer( this );
m_scaleLegend = new caf::OverlayScaleLegend( standardFont );