summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorandreas kainz <kainz.a@gmail.com>2020-09-17 18:35:57 +0200
committerAndreas Kainz <kainz.a@gmail.com>2020-09-17 22:50:50 +0200
commitb6d2db52ea963615c1323a031694123c9d2a2534 (patch)
treec645cc633efeabc145e37f77edb814818d5856d2 /vcl/source/window
parentb70b1636b0c71dbb6f6f4f07ebdafeba94261dee (diff)
tdf#133690 Hide surrounding border frame at sidebar
Change-Id: I6daff0ae587232b4b31d02aeb2529eff3fba36a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102967 Tested-by: Jenkins Reviewed-by: Andreas Kainz <kainz.a@gmail.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/splitwin.cxx19
1 files changed, 2 insertions, 17 deletions
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 66d64e7fd343..a099ed4b9a03 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -181,10 +181,6 @@ void SplitWindow::ImplDrawBorder(vcl::RenderContext& rRenderContext)
switch (meAlign)
{
case WindowAlign::Bottom:
- rRenderContext.SetLineColor(rStyleSettings.GetShadowColor());
- rRenderContext.DrawLine(Point(0, 0), Point(nDX - 1, 0));
- rRenderContext.DrawLine(Point(0, nDY - 2), Point(nDX - 1, nDY - 2));
-
rRenderContext.SetLineColor(rStyleSettings.GetLightColor());
rRenderContext.DrawLine(Point(0, 1), Point(nDX - 1, 1));
rRenderContext.DrawLine(Point(0, nDY - 1), Point(nDX - 1, nDY - 1));
@@ -211,14 +207,8 @@ void SplitWindow::ImplDrawBorder(vcl::RenderContext& rRenderContext)
break;
default:
rRenderContext.SetLineColor(rStyleSettings.GetShadowColor());
- rRenderContext.DrawLine(Point(0, 0), Point( 0, nDY - 2));
- rRenderContext.DrawLine(Point(0, 0), Point( nDX - 1, 0));
- rRenderContext.DrawLine(Point(0, nDY - 2), Point(nDX - 1, nDY - 2));
-
- rRenderContext.SetLineColor( rStyleSettings.GetLightColor());
- rRenderContext.DrawLine(Point(1, 1), Point(1, nDY - 3));
- rRenderContext.DrawLine(Point(1, 1), Point(nDX - 1, 1));
- rRenderContext.DrawLine(Point(0, nDY - 1), Point(nDX - 1, nDY - 1));
+ rRenderContext.DrawLine(Point(0, 0), Point( 0, nDY));
+ rRenderContext.DrawLine(Point(0, nDY), Point(nDX, nDY));
}
}
@@ -241,11 +231,6 @@ void SplitWindow::ImplDrawBorderLine(vcl::RenderContext& rRenderContext)
rRenderContext.DrawLine( Point( nDX-SPLITWIN_SPLITSIZEEXLN, 1 ), Point( nDX-SPLITWIN_SPLITSIZEEXLN, nDY-3 ) );
break;
case WindowAlign::Right:
- rRenderContext.SetLineColor( rStyleSettings.GetShadowColor() );
- rRenderContext.DrawLine( Point( SPLITWIN_SPLITSIZEEXLN-1, 0 ), Point( SPLITWIN_SPLITSIZEEXLN-1, nDY-2 ) );
-
- rRenderContext.SetLineColor( rStyleSettings.GetLightColor() );
- rRenderContext.DrawLine( Point( SPLITWIN_SPLITSIZEEXLN, 1 ), Point( SPLITWIN_SPLITSIZEEXLN, nDY-3 ) );
break;
case WindowAlign::Top:
rRenderContext.SetLineColor( rStyleSettings.GetShadowColor() );