Use rock type colors when "Facies" is imported

This commit is contained in:
Magne Sjaastad authored and GitHub committed 2023-05-26 11:26:22 +02:00
1 parent f17c02ce86
commit b7420ebc70
7 files changed
+120 -79

No files matched your search

@@ -84,12 +84,12 @@ void RimColorLegendCollection::deleteCustomColorLegends()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimColorLegend* RimColorLegendCollection::createColorLegend( const QString& name, const std::vector<std::pair<int, QString>>& valuesAndNames )
RimColorLegend* RimColorLegendCollection::createColorLegend( const QString& colorLegendName, const std::map<int, QString>& valuesAndNames )
{
auto colors = RiaColorTables::categoryPaletteColors().color3ubArray();
auto colorLegend = new RimColorLegend();
colorLegend->setColorLegendName( name );
colorLegend->setColorLegendName( colorLegendName );
int colorIndex = 0;
for ( const auto& [value, name] : valuesAndNames )
{