mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4341 Make docked plots follow font size preferences (but subtract 1 in point size)
* The docked plots have much less space available than most plots
This commit is contained in:
@@ -2158,6 +2158,11 @@ void RiaApplication::applyPreferences(const RiaPreferences* oldPreferences)
|
||||
wellPathCollection->wellPathLabelColor = oldPreferences->defaultWellLabelColor();
|
||||
uiEditorsToUpdate.insert(wellPathCollection);
|
||||
}
|
||||
|
||||
if (oldPreferences->defaultPlotFontSize() != m_preferences->defaultPlotFontSize())
|
||||
{
|
||||
m_mainWindow->applyFontSizesToDockedPlots();
|
||||
}
|
||||
}
|
||||
|
||||
for (caf::PdmUiItem* uiItem : uiEditorsToUpdate)
|
||||
|
||||
@@ -79,7 +79,7 @@ RiaPreferences::RiaPreferences(void)
|
||||
CAF_PDM_InitFieldNoDefault(&defaultAnnotationFontSize, "defaultAnnotationFontSize", "Annotation Font Size", "", "", "");
|
||||
CAF_PDM_InitFieldNoDefault(&defaultWellLabelFontSize, "wellLabelFontSize", "Well Label Font Size", "", "", "");
|
||||
CAF_PDM_InitFieldNoDefault(&defaultPlotFontSize, "defaultPlotFontSize", "Plot Font Size", "", "", "");
|
||||
defaultPlotFontSize = RiaFontCache::FONT_SIZE_10;
|
||||
defaultPlotFontSize = RiaFontCache::FONT_SIZE_8;
|
||||
|
||||
CAF_PDM_InitField(&showLasCurveWithoutTvdWarning, "showLasCurveWithoutTvdWarning", true, "Show LAS Curve Without TVD Warning", "", "", "");
|
||||
showLasCurveWithoutTvdWarning.uiCapability()->setUiLabelPosition(caf::PdmUiItemInfo::HIDDEN);
|
||||
|
||||
Reference in New Issue
Block a user