summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSahil <me.sahilgautam@gmail.com>2023-11-21 16:54:57 +0530
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2023-11-27 12:56:31 +0100
commitb6f274f3d0a415e84cda45f5929d89130974ee2d (patch)
treee692a8e69b423c56ba7d5505f5c41f837b83dc65 /sc
parent6ea42a11669e2b3d3a10dd5eb199f45d6050c86b (diff)
tdf#33201 Change default HighlightOverlay color
Change-Id: I734b780808da35cdc58c55ede914f87e96fbdd99 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159778 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 67568e2ce21a..3f4f6b219c67 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -6719,11 +6719,13 @@ void ScGridWindow::UpdateHighlightOverlay()
}
}
- const Color aHighlight = SC_MOD()->GetColorConfig().GetColorValue(svtools::APPBACKGROUND ).nColor;
+ const Color aBackgroundColor = SC_MOD()->GetColorConfig().GetColorValue(svtools::DOCCOLOR).nColor;
+ Color aHighlightColor = Application::GetSettings().GetStyleSettings().GetAccentColor();
+ aHighlightColor.Merge(aBackgroundColor, 100);
std::unique_ptr<sdr::overlay::OverlayObject> pOverlay(new sdr::overlay::OverlaySelection(
sdr::overlay::OverlayType::Transparent,
- aHighlight,
+ aHighlightColor,
std::move(aRanges),
false));