mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6514 Dark Theme : Fix color of rubber band zoom
This commit is contained in:
parent
c53c72b4c3
commit
26ff3e28c8
@ -140,9 +140,7 @@ RiuFlowCharacteristicsPlot::RiuFlowCharacteristicsPlot( RimFlowCharacteristicsPl
|
||||
void RiuFlowCharacteristicsPlot::addWindowZoom( QwtPlot* plot )
|
||||
{
|
||||
auto zoomer = new RiuQwtPlotZoomer( plot->canvas() );
|
||||
// zoomer->setRubberBandPen( QColor( Qt::black ) );
|
||||
zoomer->setTrackerMode( QwtPicker::AlwaysOff );
|
||||
// zoomer->setTrackerPen( QColor( Qt::black ) );
|
||||
zoomer->initMousePattern( 1 );
|
||||
}
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -63,9 +63,7 @@ RiuGridCrossQwtPlot::RiuGridCrossQwtPlot( RimGridCrossPlot* plot, QWidget* paren
|
||||
{
|
||||
// LeftButton for the zooming
|
||||
m_zoomerLeft = new RiuQwtPlotZoomer( canvas() );
|
||||
m_zoomerLeft->setRubberBandPen( QColor( Qt::black ) );
|
||||
m_zoomerLeft->setTrackerMode( QwtPicker::AlwaysOff );
|
||||
m_zoomerLeft->setTrackerPen( QColor( Qt::black ) );
|
||||
m_zoomerLeft->initMousePattern( 1 );
|
||||
|
||||
// Attach a zoomer for the right axis
|
||||
|
@ -17,6 +17,8 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
#pragma once
|
||||
|
||||
#include "RiuGuiTheme.h"
|
||||
|
||||
#include "qwt_plot_zoomer.h"
|
||||
|
||||
#include <QMouseEvent>
|
||||
@ -27,6 +29,10 @@ public:
|
||||
RiuQwtPlotZoomer( QWidget* canvas, bool doReplot = true )
|
||||
: QwtPlotZoomer( canvas, doReplot )
|
||||
{
|
||||
auto color = RiuGuiTheme::getColorByVariableName( "markerColor" );
|
||||
|
||||
setRubberBandPen( color );
|
||||
setTrackerPen( color );
|
||||
}
|
||||
|
||||
bool isActiveAndValid() const
|
||||
|
@ -103,9 +103,7 @@ RiuSummaryQwtPlot::RiuSummaryQwtPlot( RimSummaryPlot* plot, QWidget* parent /*=
|
||||
{
|
||||
// LeftButton for the zooming
|
||||
m_zoomerLeft = new RiuQwtPlotZoomer( canvas() );
|
||||
m_zoomerLeft->setRubberBandPen( QColor( Qt::black ) );
|
||||
m_zoomerLeft->setTrackerMode( QwtPicker::AlwaysOff );
|
||||
m_zoomerLeft->setTrackerPen( QColor( Qt::black ) );
|
||||
m_zoomerLeft->initMousePattern( 1 );
|
||||
|
||||
// Attach a zoomer for the right axis
|
||||
|
Loading…
Reference in New Issue
Block a user