summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2021-11-20 20:29:17 +0200
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2021-11-22 14:27:23 +0100
commit13c0794e2040e3a29801a56c6eb9835f364f8f27 (patch)
treebed8cd14d530b1201d5df1fe9c11709014e452e8
parent5fae86d3f4468cac9af32e44873d57a195a48ff4 (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>
-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 4bca7ccbb99d..612686c50a73 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