diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2022-01-14 10:44:02 +0100 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2022-01-14 13:43:00 +0100 |
commit | 90df5b09188c66c3a7752934650570246dfc321d (patch) | |
tree | 207a9d2a7e6e727d731992f54a49304b308db01f /svtools | |
parent | 299441fbd995f5d80d253aba638e3dbc3ba875a2 (diff) |
Resolve tdf#124572 - Draw a faint line between tabs
Change-Id: I6cbbefe1cb16599ae81fc6dcb5a51ef1ca2db6f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128407
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index e910473de6e7..a62d0ae6fad9 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -137,10 +137,21 @@ public: mrRenderContext.DrawRect(maLineRect); } + void drawSeparator() + { + const tools::Long cMargin = 5; + const tools::Long aRight( maRect.Right() - 1 ); + mrRenderContext.SetLineColor(mrStyleSettings.GetShadowColor()); + mrRenderContext.DrawLine(Point(aRight, maRect.Top() + cMargin), + Point(aRight, maRect.Bottom() - cMargin)); + } + void drawTab() { drawOuterFrame(); drawColorLine(); + if (!mbSelected && !mbCustomColored) + drawSeparator(); if (mbProtect) { BitmapEx aBitmap(BMP_TAB_LOCK); |