tdf#167511 correctly apply Color in HighContrast mode to text
Change-Id: Ie22d8da61284185793e679c57747b7df22138581 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188018 Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com> Tested-by: Jenkins
This commit is contained in:
committed by
Armin Le Grand
parent
5355b3ec39
commit
2ebafbb84f
@@ -102,10 +102,11 @@ buildTextPortionPrimitive(const DrawPortionInfo& rInfo, const OUString& rText,
|
||||
}
|
||||
}
|
||||
|
||||
// create complex text primitive and append
|
||||
const Color aFontColor(rInfo.mrFont.GetColor());
|
||||
// tdf#167511 get FontColor, evtl. adapted for HighContrast
|
||||
const Color aFontColor(Application::GetSettings().GetStyleSettings().GetHighContrastMode()
|
||||
? Application::GetSettings().GetStyleSettings().GetWindowTextColor()
|
||||
: rInfo.mrFont.GetColor());
|
||||
const basegfx::BColor aBFontColor(aFontColor.getBColor());
|
||||
|
||||
const Color aTextFillColor(rInfo.mrFont.GetFillColor());
|
||||
|
||||
// prepare wordLineMode (for underline and strikeout)
|
||||
|
||||
Reference in New Issue
Block a user