#3706 Annotations. Text annotation border color

This commit is contained in:
Bjørn Erik Jensen 2018-11-26 12:49:22 +01:00
parent 6286a8729b
commit 5531504e8e

View File

@ -23,6 +23,7 @@
#include "RivTextAnnotationPartMgr.h"
#include "RiaApplication.h"
#include "RiaColorTools.h"
#include "RiaPreferences.h"
#include "RimTextAnnotation.h"
@ -104,6 +105,7 @@ void RivTextAnnotationPartMgr::buildParts(const caf::DisplayCoordTransform * dis
drawableText->setDrawBackground(true);
drawableText->setVerticalAlignment(cvf::TextDrawer::BASELINE);
drawableText->setBackgroundColor(prefs->defaultViewerBackgroundColor);
drawableText->setBorderColor(RiaColorTools::computeOffsetColor(prefs->defaultViewerBackgroundColor, 0.3f));
drawableText->setTextColor(cvf::Color3f::BLACK);
cvf::String cvfString = cvfqt::Utils::toString(text);