diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2017-08-24 20:47:43 +0000 |
---|---|---|
committer | Heiko Tietze <tietze.heiko@googlemail.com> | 2017-08-25 00:00:54 +0200 |
commit | 8d74698f407de0b02826777d5cb3f5aca2fd50f1 (patch) | |
tree | 8a135850e4c0294073ede9008d2f5cf1404bad4e | |
parent | 6e090b4272b8fa12d2032ff0c0ea4bfb24c0d2d2 (diff) |
tdf#111795 - Special character preview control background color
Change-Id: Id5c3448b0cf82e5ed3aa9afabc5bfb093eddf2e9
Reviewed-on: https://gerrit.libreoffice.org/41524
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
-rw-r--r-- | cui/source/dialogs/cuicharmap.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index 0e7f66c93f4b..72d81f410f3f 100644 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -1139,10 +1139,13 @@ void SvxShowText::Paint(vcl::RenderContext& rRenderContext, const ::tools::Recta rRenderContext.SetFont(maFont); Color aTextCol = rRenderContext.GetTextColor(); + Color aFillCol = rRenderContext.GetFillColor(); const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); const Color aWindowTextColor(rStyleSettings.GetDialogTextColor()); + const Color aWindowColor(rStyleSettings.GetWindowColor()); rRenderContext.SetTextColor(aWindowTextColor); + rRenderContext.SetFillColor(aWindowColor); const OUString aText = GetText(); const Size aSize(GetOutputSizePixel()); @@ -1211,8 +1214,10 @@ void SvxShowText::Paint(vcl::RenderContext& rRenderContext, const ::tools::Recta } } + rRenderContext.DrawRect(tools::Rectangle(Point(0, 0), Size(GetOutputSizePixel().Width(), GetOutputSizePixel().Height()))); rRenderContext.DrawText(aPoint, aText); rRenderContext.SetTextColor(aTextCol); + rRenderContext.SetFillColor(aFillCol); if (bShrankFont) rRenderContext.SetFont(aOrigFont); } |