This is an automated email from the ASF dual-hosted git repository. mseidel pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push: new 6636bd8a8f Get colors from system settings 6636bd8a8f is described below commit 6636bd8a8fc95f5e11782565d5f4f24e1af7d664 Author: mseidel <msei...@apache.org> AuthorDate: Wed Dec 13 17:36:51 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 4d7864e2b7..4a03dd000f 100644 --- a/main/sw/source/core/view/pagepreviewlayout.cxx +++ b/main/sw/source/core/view/pagepreviewlayout.cxx @@ -1272,12 +1272,11 @@ void SwPagePreviewLayout::_PaintSelectMarkAtPage( Color aFill( pOutputDev->GetFillColor() ); Color aLine( pOutputDev->GetLineColor() ); - // determine selection mark color - Color aSelPgLineColor(0, 120, 215); - 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 );