mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#805) Added category legend and mapper
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "RiuSimpleHistogramWidget.h"
|
||||
#include "RiuViewerCommands.h"
|
||||
|
||||
#include "cafCategoryLegend.h"
|
||||
#include "cafCeetronPlusNavigation.h"
|
||||
#include "cafEffectGenerator.h"
|
||||
|
||||
@@ -635,6 +636,13 @@ void RiuViewer::updateLegendTextAndTickMarkColor(cvf::OverlayItem* legend)
|
||||
scalarMapperLegend->setColor(contrastColor);
|
||||
scalarMapperLegend->setLineColor(contrastColor);
|
||||
}
|
||||
|
||||
caf::CategoryLegend* categoryLegend = dynamic_cast<caf::CategoryLegend*>(legend);
|
||||
if (categoryLegend)
|
||||
{
|
||||
categoryLegend->setColor(contrastColor);
|
||||
categoryLegend->setLineColor(contrastColor);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user