summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-02-06 20:33:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-02-07 09:35:19 +0000
commit545ddfbaa98cfeaa35c95d7db7b16cd241cedc89 (patch)
tree53a40ca5a73f4baa4b846770c40eb47f308f4b12
parent400e4b1866cbf7ab4b703e31f6c0e9b4040a58e0 (diff)
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>
-rw-r--r--vcl/source/window/decoview.cxx18
1 files changed, 2 insertions, 16 deletions
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx
index d6bbd2d61982..e9000090086c 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();
}