diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2022-03-12 17:50:33 +0100 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2022-03-16 16:52:51 +0100 |
commit | e7895fbacff945d38f679f504c179a417e3b9af1 (patch) | |
tree | 935b05f0c18cb55bb5e520ff434231049ea3c8f4 /svx/source/dialog | |
parent | b578fa08a25a83abccad2386e12b707586fffb26 (diff) |
tdf#109214 - Highlight the favorites in the grid of special characters
Change-Id: Ie1bb019495d2db4acd92da4bccf44ece2bd1d976
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131446
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/charmap.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx index 23b6cda06ec7..6b618d51f73b 100644 --- a/svx/source/dialog/charmap.cxx +++ b/svx/source/dialog/charmap.cxx @@ -567,6 +567,19 @@ void SvxShowCharSet::DrawChars_Impl(vcl::RenderContext& rRenderContext, int n1, aPointTxTy.AdjustX(nXHDelta - 1 ); } + // tdf#109214 - highlight the favorite characters + if (isFavChar(aCharStr, mxVirDev->GetFont().GetFamilyName())) + { + const Color aLineCol = rRenderContext.GetLineColor(); + rRenderContext.SetLineColor(aHighlightColor); + rRenderContext.SetFillColor(COL_TRANSPARENT); + // Outer border + rRenderContext.DrawRect(tools::Rectangle(Point(x - 1, y - 1), Size(nX + 3, nY + 3))); + // Inner border + rRenderContext.DrawRect(tools::Rectangle(Point(x, y), Size(nX + 1, nY + 1))); + rRenderContext.SetLineColor(aLineCol); + } + Color aTextCol = rRenderContext.GetTextColor(); if (i != nSelectedIndex) { |