#51 Add preference option to control legend background

This commit is contained in:
Jacob Støren
2018-03-08 16:15:45 +01:00
parent b4935a0534
commit 4d7f753d3c
4 changed files with 14 additions and 0 deletions

View File

@@ -35,6 +35,7 @@
#include "cvfqtUtils.h"
#include <cmath>
#include "RiaPreferences.h"
CAF_PDM_SOURCE_INIT(RimTernaryLegendConfig, "RimTernaryLegendConfig");
@@ -201,6 +202,10 @@ void RimTernaryLegendConfig::updateLegend()
if (!m_legend.isNull())
{
m_legend->setRangeText(soilRange, sgasRange, swatRange);
RiaApplication* app = RiaApplication::instance();
RiaPreferences* preferences = app->preferences();
m_legend->enableBackground(preferences->showLegendBackground());
}
}