mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#51 Add preference option to control legend background
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
|
||||
#include <cmath>
|
||||
#include "RimIntersectionCollection.h"
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimLegendConfig, "Legend");
|
||||
@@ -369,6 +370,10 @@ void RimLegendConfig::updateLegend()
|
||||
}
|
||||
m_scalarMapperLegend->setTickPrecision(cvf::Math::clamp(numDecimalDigits, 0, 20));
|
||||
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
RiaPreferences* preferences = app->preferences();
|
||||
m_scalarMapperLegend->enableBackground(preferences->showLegendBackground());
|
||||
m_categoryLegend->enableBackground(preferences->showLegendBackground());
|
||||
|
||||
if (m_globalAutoMax != cvf::UNDEFINED_DOUBLE )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user