mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4256 Update fonts in Project and views when changing preferences
This commit is contained in:
@@ -110,7 +110,7 @@ RimScaleLegendConfig::RimScaleLegendConfig()
|
||||
CAF_PDM_InitField(&resultVariableName, "ResultVariableUsage", QString(""), "", "", "", "");
|
||||
resultVariableName.uiCapability()->setUiHidden(true);
|
||||
|
||||
cvf::Font* standardFont = RiaApplication::instance()->standardFont();
|
||||
cvf::Font* standardFont = RiaApplication::instance()->defaultSceneFont();
|
||||
m_scaleLegend = new caf::OverlayScaleLegend(standardFont);
|
||||
|
||||
updateFieldVisibility();
|
||||
@@ -343,7 +343,7 @@ void RimScaleLegendConfig::recreateLegend()
|
||||
// has been removed, (and thus the opengl resources has been deleted) The text in
|
||||
// the legend disappeared because of this, so workaround: recreate the legend when needed:
|
||||
|
||||
cvf::Font* standardFont = RiaApplication::instance()->standardFont();
|
||||
cvf::Font* standardFont = RiaApplication::instance()->defaultSceneFont();
|
||||
m_scaleLegend = new caf::OverlayScaleLegend(standardFont);
|
||||
|
||||
updateLegend();
|
||||
|
||||
Reference in New Issue
Block a user