| commit | 13c0794e2040e3a29801a56c6eb9835f364f8f27 | [log] |
|---|---|---|
| author | Justin Luth <justin_luth@sil.org> | Sat Nov 20 20:29:17 2021 +0200 |
| committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | Mon Nov 22 14:27:23 2021 +0100 |
| tree | bed8cd14d530b1201d5df1fe9c11709014e452e8 | |
| parent | 5fae86d3f4468cac9af32e44873d57a195a48ff4 [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> (cherry picked from commit fbda2f3b7b47021a140cbfd3288aa7de1b42e1fd) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125462 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 4bca7cc..612686c 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