diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-03-15 10:16:18 +0100 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-04-24 11:22:29 +0200 |
commit | da4da7b634c11ef7e80c46c2145b5907cf74223a (patch) | |
tree | dfafed6ea177d6baa90a00aa4b09d2552bdeb831 | |
parent | e8b8005279b2f746ff302368a99b016aa272fae5 (diff) |
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@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r-- | sfx2/source/sidebar/DeckTitleBar.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
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() |