sc/source/ui/view/hdrcont.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 0e01f8e090202679d850c4524fc4c9274e2eb16c Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Tue Aug 19 13:45:39 2025 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Thu Sep 18 10:34:44 2025 +0200 sc: make sheet view have different header colors So we can see when the sheet is using a sheet view. This also mimics the UI of MSO when a sheet view is used. The color was chosen arbitrarily. This has no effect in online os it's mostly for debugging purpuse only. Change-Id: Idb0a7c499ec4d87ea83ac5998d5ee7e17bd724d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189915 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> (cherry picked from commit 3b89969c60e44110a07b12c92c538b310f17ab1b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191086 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx index e5bd4b4a3a7e..bc79dfa97771 100644 --- a/sc/source/ui/view/hdrcont.cxx +++ b/sc/source/ui/view/hdrcont.cxx @@ -323,11 +323,13 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const tools if ( nLineEnd * nLayoutSign >= nInitScrPos * nLayoutSign ) { Color aFaceColor(rStyleSettings.GetFaceColor()); + if (pTabView->GetViewData().GetSheetViewID() >= 0) + aFaceColor.Merge(COL_LIGHTBLUE, 220); if (bDark) aFaceColor.IncreaseLuminance(20); else aFaceColor.DecreaseLuminance(20); - GetOutDev()->SetFillColor( aFaceColor ); + GetOutDev()->SetFillColor(aFaceColor); if ( bVertical ) aFillRect = tools::Rectangle( 0, nInitScrPos, nBarSize-1, nLineEnd ); else @@ -337,7 +339,8 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const tools if ( nLineEnd * nLayoutSign < nPEnd * nLayoutSign ) { - GetOutDev()->SetFillColor( mod->GetColorConfig().GetColorValue(svtools::APPBACKGROUND).nColor ); + Color aAppBackgroundColor = mod->GetColorConfig().GetColorValue(svtools::APPBACKGROUND).nColor; + GetOutDev()->SetFillColor(aAppBackgroundColor); if ( bVertical ) aFillRect = tools::Rectangle( 0, nLineEnd+nLayoutSign, nBarSize-1, nPEnd ); else