mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
committed by
Gaute Lindkvist
parent
66ec3212c0
commit
87bc6acd65
@@ -44,8 +44,11 @@ RiuQwtCurvePointTracker::RiuQwtCurvePointTracker( QwtPlot* pl
|
||||
this->setTrackerMode( QwtPicker::AlwaysOn );
|
||||
m_plotMarker = new QwtPlotMarker;
|
||||
|
||||
// Get text color from palette
|
||||
QColor color = plot->palette().color( QPalette::Text );
|
||||
|
||||
// QwtPlotMarker takes ownership of the symbol, it is deleted in destructor of QwtPlotMarker
|
||||
QwtSymbol* mySymbol = new QwtSymbol( QwtSymbol::Ellipse, Qt::NoBrush, QPen( Qt::black, 2.0 ), QSize( 12, 12 ) );
|
||||
QwtSymbol* mySymbol = new QwtSymbol( QwtSymbol::Ellipse, Qt::NoBrush, QPen( color, 2.0 ), QSize( 12, 12 ) );
|
||||
m_plotMarker->setSymbol( mySymbol );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user