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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user