From fbda2f3b7b47021a140cbfd3288aa7de1b42e1fd Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Sat, 20 Nov 2021 20:29:17 +0200 Subject: tdf#132470 tabbar: revert back to bold font on visible tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a partial regression to LO 6.3's commit fad98c8641342a77241124dd98e0cb781daef4ad. The current sheet is always selected, which is fairly distinctive. However, it is possible to select multiple sheets, and the current one should be distinctly marked to differentiate it from the other selected sheets. Change-Id: Ib160535cccebcfcabee94d17e5941cc3cd23bb15 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125601 Tested-by: Jenkins Reviewed-by: Justin Luth Reviewed-by: Tomaž Vajngerl --- svtools/source/control/tabbar.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 65c1d27074b3..e910473de6e7 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -1162,8 +1162,11 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& r aDrawer.mbProtect = pItem->mbProtect; aDrawer.drawTab(); - // actual page is drawn using a bold font - rRenderContext.SetFont(aLightFont); + // currently visible sheet is drawn using a bold font + if (bCurrent) + rRenderContext.SetFont(aFont); + else + rRenderContext.SetFont(aLightFont); // Set the correct FillInBrush depending on status -- cgit v1.2.3