summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSumit Chauhan <sumitcn25@gmail.com>2019-05-10 14:08:10 +0530
committerSzymon Kłos <szymon.klos@collabora.com>2019-05-10 12:06:09 +0200
commit96dd1cd36c2f9446d3455a06b5f77a3954950c03 (patch)
tree2c852af8f1e48bf7e4e0994c76d080d35e03f868 /sfx2
parent3ca2a0e5f004c6ff22b5f839f4f9da2f3a02d4f5 (diff)
tdf#116629 added chevron icon for noteboookbar hide button
To test the patch , cherry pick this icon-patch first https://gerrit.libreoffice.org/#/c/72082/ Change-Id: I706aee5695a2e275095832070382a9def4d89611 Reviewed-on: https://gerrit.libreoffice.org/72107 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/bitmaps.hlst1
-rw-r--r--sfx2/source/notebookbar/PriorityMergedHBox.cxx5
2 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/inc/bitmaps.hlst b/sfx2/inc/bitmaps.hlst
index c420ba89bd78..654a41df125c 100644
--- a/sfx2/inc/bitmaps.hlst
+++ b/sfx2/inc/bitmaps.hlst
@@ -32,6 +32,7 @@
#define BMP_HELP_TOOLBOX_L_SEARCHDIALOG "res/lc05961.png"
//start, sfx2/source/sidebar/Theme.cxx
+#define CHEVRON "sfx2/res/chevron.png"
#define CLOSEDOC "sfx2/res/closedoc.png"
#define GRIP "sfx2/res/grip.png"
#define OPEN_MORE "sfx2/res/symphony/open_more.png"
diff --git a/sfx2/source/notebookbar/PriorityMergedHBox.cxx b/sfx2/source/notebookbar/PriorityMergedHBox.cxx
index e52c467b6c23..4e7fa0c16d2a 100644
--- a/sfx2/source/notebookbar/PriorityMergedHBox.cxx
+++ b/sfx2/source/notebookbar/PriorityMergedHBox.cxx
@@ -21,6 +21,7 @@
#include <vcl/layout.hxx>
#include <sfx2/dllapi.h>
#include <sfx2/viewfrm.hxx>
+#include <bitmaps.hlst>
#include "OptionalBox.hxx"
#include "PriorityHBox.hxx"
#include "NotebookbarPopup.hxx"
@@ -43,8 +44,8 @@ public:
{
m_pButton = VclPtr<PushButton>::Create(this, WB_FLATBUTTON);
m_pButton->SetClickHdl(LINK(this, PriorityMergedHBox, PBClickHdl));
- m_pButton->SetSymbol(SymbolType::NEXT);
- m_pButton->set_width_request(15);
+ m_pButton->SetModeImage(Image(StockImage::Yes, CHEVRON));
+ m_pButton->set_width_request(25);
m_pButton->set_pack_type(VclPackType::End);
m_pButton->Show();
}