You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2023/12/13 16:38:02 UTC
(openoffice) branch AOO42X updated: Get colors from system settings
This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO42X by this push:
new 89dcfa4e98 Get colors from system settings
89dcfa4e98 is described below
commit 89dcfa4e98930f90a9e391aa22eb4f90eeaa857f
Author: mseidel <ms...@apache.org>
AuthorDate: Wed Dec 13 17:36:51 2023 +0100
Get colors from system settings
(cherry picked from commit 6636bd8a8fc95f5e11782565d5f4f24e1af7d664)
---
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 );