This is an automated email from the ASF dual-hosted git repository. mseidel pushed a commit to branch AOO41X in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit ee61a26ecdca5696e20b9031762a53d1d8092422 Author: mseidel <msei...@apache.org> AuthorDate: Mon Dec 25 02:39:40 2023 +0100 Get colors from system settings --- main/sw/source/core/view/pagepreviewlayout.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/main/sw/source/core/view/pagepreviewlayout.cxx b/main/sw/source/core/view/pagepreviewlayout.cxx index c8d8dfe040..137803308c 100644 --- a/main/sw/source/core/view/pagepreviewlayout.cxx +++ b/main/sw/source/core/view/pagepreviewlayout.cxx @@ -1277,12 +1277,11 @@ void SwPagePreviewLayout::_PaintSelectMarkAtPage( Color aFill( pOutputDev->GetFillColor() ); Color aLine( pOutputDev->GetLineColor() ); - // determine selection mark color - Color aSelPgLineColor(COL_LIGHTBLUE); - const StyleSettings& rSettings = - mrParentViewShell.GetWin()->GetSettings().GetStyleSettings(); - if ( rSettings.GetHighContrastMode() ) - aSelPgLineColor = rSettings.GetHighlightTextColor(); + // determine selection mark color + const StyleSettings& rSettings = mrParentViewShell.GetWin()->GetSettings().GetStyleSettings(); + Color aSelPgLineColor( rSettings.GetHighlightColor() ); + if ( rSettings.GetHighContrastMode() ) + aSelPgLineColor = rSettings.GetActiveBorderColor(); // set needed mapping mode at output device aMapMode.SetOrigin( _aSelectedPrevwPage->aMapOffset );