tdf#153321 use SeparatorColor for FixedLine
so the separators as seen in NotebookBar, etc are drawn the same as the
separators seen in the normal toolbar
Change-Id: I22f4f5e5506e325f78951011f0574653ff5758e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146596
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx
index d6bbd2d..e9000090 100644
--- a/vcl/source/window/decoview.cxx
+++ b/vcl/source/window/decoview.cxx
@@ -996,24 +996,10 @@ void DecorationView::DrawSeparator( const Point& rStart, const Point& rStop, boo
if ( rStyleSettings.GetOptions() & StyleSettingsOptions::Mono )
mpOutDev->SetLineColor( COL_BLACK );
else
mpOutDev->SetLineColor( rStyleSettings.GetShadowColor() );
mpOutDev->SetLineColor( rStyleSettings.GetSeparatorColor() );
mpOutDev->DrawLine( aStart, aStop );
if ( !(rStyleSettings.GetOptions() & StyleSettingsOptions::Mono) )
{
mpOutDev->SetLineColor( rStyleSettings.GetLightColor() );
if( bVertical )
{
aStart.AdjustX( 1 );
aStop.AdjustX( 1 );
}
else
{
aStart.AdjustY( 1 );
aStop.AdjustY( 1 );
}
mpOutDev->DrawLine( aStart, aStop );
}
mpOutDev->Pop();
}