diff options
author | Efe Gürkan YALAMAN <efeyalaman@gmail.com> | 2014-08-08 20:42:38 +0300 |
---|---|---|
committer | Efe Gürkan YALAMAN <efeyalaman@gmail.com> | 2014-08-08 20:42:38 +0300 |
commit | 70bff9071a52d02183d54f62d6402e7a4f5d89eb (patch) | |
tree | 76b5632f1401e972a565bf3691ba839da1e8ab51 | |
parent | 45b7ec30200ccedde525d3719916074a5de1d559 (diff) |
Fixed the menu button resizingfeature/template_manager_improvements2
Menu button size requests are changed to fit with the other buttons.
Change-Id: Ibe7d850f08b37a971f97d0f28c6bffa8e73b0e21
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 7d97dc0f3d12..078b14075166 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -331,8 +331,9 @@ void BackingWindow::setupButton( PushButton* pButton ) void BackingWindow::setupButton( MenuButton* pButton ) { - Font aFont(pButton->GetControlFont()); - aFont.SetHeight(nButtonsFontSize); + Font aFont(pButton->GetSettings().GetStyleSettings().GetPushButtonFont()); + aFont.SetSize(Size(0, aFont.GetSize().Height() * fMultiplier)); + aFont.SetWeight(WEIGHT_BOLD); pButton->SetControlFont(aFont); pButton->SetControlForeground(aButtonsText); |