[Libreoffice-commits] core.git: sfx2/source
Katarina Behrens
Katarina.Behrens at cib.de
Tue Apr 24 09:22:55 UTC 2018
sfx2/source/sidebar/DeckTitleBar.cxx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit da4da7b634c11ef7e80c46c2145b5907cf74223a
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date: Thu Mar 15 10:16:18 2018 +0100
Show grip on sidebar's deck title to be used for drag'n'drop later
Change-Id: I4d76d49742056d278e73a995dcbb8c4a64b374bd
Reviewed-on: https://gerrit.libreoffice.org/53323
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
diff --git a/sfx2/source/sidebar/DeckTitleBar.cxx b/sfx2/source/sidebar/DeckTitleBar.cxx
index d878b0f1bf35..e241b76b079d 100644
--- a/sfx2/source/sidebar/DeckTitleBar.cxx
+++ b/sfx2/source/sidebar/DeckTitleBar.cxx
@@ -33,7 +33,7 @@ namespace sfx2 { namespace sidebar {
namespace
{
static const sal_Int32 gaLeftGripPadding (3);
-static const sal_Int32 gaRightGripPadding (3);
+static const sal_Int32 gaRightGripPadding (6);
}
DeckTitleBar::DeckTitleBar (const OUString& rsTitle,
@@ -81,8 +81,12 @@ tools::Rectangle DeckTitleBar::GetTitleArea (const tools::Rectangle& rTitleBarBo
rTitleBarBox.Bottom());
}
-void DeckTitleBar::PaintDecoration(vcl::RenderContext& /*rRenderContext*/, const tools::Rectangle& /*rTitleBarBox*/)
+void DeckTitleBar::PaintDecoration(vcl::RenderContext& rRenderContext, const tools::Rectangle& /*rTitleBarBox*/)
{
+ Image aImage (Theme::GetImage(Theme::Image_Grip));
+ const Point aTopLeft(gaLeftGripPadding,
+ (GetSizePixel().Height() - aImage.GetSizePixel().Height()) / 2);
+ rRenderContext.DrawImage(aTopLeft, aImage);
}
sidebar::Paint DeckTitleBar::GetBackgroundPaint()
More information about the Libreoffice-commits
mailing list