Resolve tdf#124572 - Draw a faint line between tabs

Change-Id: I6cbbefe1cb16599ae81fc6dcb5a51ef1ca2db6f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128407
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
This commit is contained in:
Heiko Tietze
2022-01-14 13:43:00 +01:00
committed by Heiko Tietze
parent 299441fbd9
commit 90df5b0918
+11
View File
@@ -137,10 +137,21 @@ public:
mrRenderContext.DrawRect(maLineRect);
}
void drawSeparator()
{
const tools::Long cMargin = 5;
const tools::Long aRight( maRect.Right() - 1 );
mrRenderContext.SetLineColor(mrStyleSettings.GetShadowColor());
mrRenderContext.DrawLine(Point(aRight, maRect.Top() + cMargin),
Point(aRight, maRect.Bottom() - cMargin));
}
void drawTab()
{
drawOuterFrame();
drawColorLine();
if (!mbSelected && !mbCustomColored)
drawSeparator();
if (mbProtect)
{
BitmapEx aBitmap(BMP_TAB_LOCK);