Added a GUI theme selector in preferences and a new class for handling GUI changes.

Added a new feature for editing style sheets and variable colors and see immediately the result.
Made Qwt plots (and items) stylable.
Added icons, improved styling possibilities of QMinimizePanel, fixed minor bugs in RicThemeColorEditorFeature.
This commit is contained in:
Ruben Manuel Thoms
2020-09-04 17:10:55 +02:00
committed by Gaute Lindkvist
parent 66ec3212c0
commit 87bc6acd65
50 changed files with 3178 additions and 308 deletions

View File

@@ -25,6 +25,8 @@
#include "RiuMainWindow.h"
#include "RiuQwtCurvePointTracker.h"
#include "RiuGuiTheme.h"
#include "cafSelectionManager.h"
#include "cvfAssert.h"
@@ -67,19 +69,19 @@ RiuTofAccumulatedPhaseFractionsPlot::RiuTofAccumulatedPhaseFractionsPlot( RimTof
setTitle( title );
m_watCurve = new QwtPlotCurve;
setCurveColor( m_watCurve, QColor( 62, 122, 167 ) ); // Blue
setCurveColor( m_watCurve, RiuGuiTheme::getColorByVariableName( "waterCurveColor" ) );
m_watCurve->setZ( 0.9 );
m_watCurve->setTitle( "Water" );
m_watCurve->setRenderHint( QwtPlotItem::RenderAntialiased, true );
m_oilCurve = new QwtPlotCurve;
setCurveColor( m_oilCurve, QColor( 123, 167, 0 ) ); // Green
setCurveColor( m_oilCurve, RiuGuiTheme::getColorByVariableName( "oilCurveColor" ) );
m_oilCurve->setZ( 0.8 );
m_oilCurve->setTitle( "Oil" );
m_oilCurve->setRenderHint( QwtPlotItem::RenderAntialiased, true );
m_gasCurve = new QwtPlotCurve;
setCurveColor( m_gasCurve, QColor( 169, 18, 16 ) ); // Red
setCurveColor( m_gasCurve, RiuGuiTheme::getColorByVariableName( "gasCurveColor" ) );
m_gasCurve->setZ( 0.7 );
m_gasCurve->setTitle( "Gas" );
m_gasCurve->setRenderHint( QwtPlotItem::RenderAntialiased, true );