diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-03-01 11:06:49 +0100 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-03-01 11:18:27 +0000 |
commit | b466c1ad267e821dbda0a879ab31a2ea00e54b5c (patch) | |
tree | 15c5a4e41064c50c04546e215e1bf91397e15d4c /svx/source | |
parent | 7aea297d371de4f8384f819e570bd3280a50b7bf (diff) |
tdf#109214 - Highlight the favorites in the grid of special characters
Remove visual artifacts around the corners by using horizontal and
vertical round.
Change-Id: I9821103c43dfbd93e6f295034b05da8b74e802e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148040
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/dialog/charmap.cxx | 4 | ||||
-rw-r--r-- | svx/source/dialog/searchcharmap.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx index bc3950ad2ca6..7dd37c43e106 100644 --- a/svx/source/dialog/charmap.cxx +++ b/svx/source/dialog/charmap.cxx @@ -581,9 +581,9 @@ void SvxShowCharSet::DrawChars_Impl(vcl::RenderContext& rRenderContext, int n1, rRenderContext.SetLineColor(aHighlightColor); rRenderContext.SetFillColor(COL_TRANSPARENT); // Outer border - rRenderContext.DrawRect(tools::Rectangle(Point(x - 1, y - 1), Size(nX + 3, nY + 3))); + rRenderContext.DrawRect(tools::Rectangle(Point(x - 1, y - 1), Size(nX + 3, nY + 3)), 1, 1); // Inner border - rRenderContext.DrawRect(tools::Rectangle(Point(x, y), Size(nX + 1, nY + 1))); + rRenderContext.DrawRect(tools::Rectangle(Point(x, y), Size(nX + 1, nY + 1)), 1, 1); rRenderContext.SetLineColor(aLineCol); } diff --git a/svx/source/dialog/searchcharmap.cxx b/svx/source/dialog/searchcharmap.cxx index 637fbbe0d834..76a3a1a5f767 100644 --- a/svx/source/dialog/searchcharmap.cxx +++ b/svx/source/dialog/searchcharmap.cxx @@ -237,9 +237,9 @@ void SvxSearchCharSet::DrawChars_Impl(vcl::RenderContext& rRenderContext, int n1 rRenderContext.SetLineColor(aHighlightColor); rRenderContext.SetFillColor(COL_TRANSPARENT); // Outer border - rRenderContext.DrawRect(tools::Rectangle(Point(x - 1, y - 1), Size(nX + 3, nY + 3))); + rRenderContext.DrawRect(tools::Rectangle(Point(x - 1, y - 1), Size(nX + 3, nY + 3)), 1, 1); // Inner border - rRenderContext.DrawRect(tools::Rectangle(Point(x, y), Size(nX + 1, nY + 1))); + rRenderContext.DrawRect(tools::Rectangle(Point(x, y), Size(nX + 1, nY + 1)), 1, 1); rRenderContext.SetLineColor(aLineCol); } |