mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
#6514 Dark Theme : Refactor use of black
This commit is contained in:
parent
9bbbfc5088
commit
0b44f6ab18
@ -214,7 +214,10 @@ void RiuGridCrossQwtPlot::onPlotItemSelected( QwtPlotItem* plotItem, bool toggle
|
||||
QwtText curveLabel( labelString, QwtText::RichText );
|
||||
curveLabel.setBackgroundBrush( QBrush( QColor( 250, 250, 250, 220 ) ) );
|
||||
curveLabel.setPaintAttribute( QwtText::PaintBackground );
|
||||
curveLabel.setBorderPen( QPen( Qt::black, 1.0 ) );
|
||||
|
||||
auto color = RiuGuiTheme::getColorByVariableName( "markerColor" );
|
||||
curveLabel.setBorderPen( QPen( color, 1.0 ) );
|
||||
|
||||
curveLabel.setBorderRadius( 2.0 );
|
||||
m_selectedPointMarker->setLabel( curveLabel );
|
||||
}
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "RimPlot.h"
|
||||
|
||||
#include "RiuDraggableOverlayFrame.h"
|
||||
#include "RiuGuiTheme.h"
|
||||
#include "RiuPlotMainWindowTools.h"
|
||||
#include "RiuQwtCurvePointTracker.h"
|
||||
#include "RiuQwtLinearScaleEngine.h"
|
||||
@ -1095,7 +1096,10 @@ void RiuQwtPlotWidget::resetPlotItemHighlighting()
|
||||
else if ( plotShapeItem )
|
||||
{
|
||||
QPen pen = plotShapeItem->pen();
|
||||
pen.setColor( QColor( Qt::black ) );
|
||||
|
||||
auto color = RiuGuiTheme::getColorByVariableName( "markerColor" );
|
||||
|
||||
pen.setColor( color );
|
||||
pen.setWidth( 1 );
|
||||
plotShapeItem->setPen( pen );
|
||||
plotShapeItem->setZ( plotShapeItem->z() - 100.0 );
|
||||
|
@ -393,12 +393,11 @@ void RiuRelativePermeabilityPlotPanel::plotCurvesInQwt( RiaEclipseUnitTools::Uni
|
||||
break;
|
||||
}
|
||||
|
||||
const QPen curvePen( Qt::black, 1, penStyle );
|
||||
const QPen curvePen( QBrush(), 1, penStyle );
|
||||
qwtCurve->setPen( curvePen );
|
||||
|
||||
QwtSymbol* curveSymbol = new QwtSymbol( QwtSymbol::Ellipse );
|
||||
curveSymbol->setSize( 6, 6 );
|
||||
curveSymbol->setPen( Qt::black );
|
||||
curveSymbol->setBrush( Qt::NoBrush );
|
||||
qwtCurve->setSymbol( curveSymbol );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user