summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2021-11-20 20:29:17 +0200
committerTomaž Vajngerl <quikee@gmail.com>2021-11-22 10:30:37 +0100
commitfbda2f3b7b47021a140cbfd3288aa7de1b42e1fd (patch)
tree0e74691c63589509c1a3ea61f78ab357c4f35202
parent4c577a0ada8c47483fb8a80a97478ffd3e2b37d3 (diff)
tdf#132470 tabbar: revert back to bold font on visible tab
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 <jluth@mail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--svtools/source/control/tabbar.cxx7
1 files 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