summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/backingwindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/backingwindow.cxx')
-rw-r--r--sfx2/source/dialog/backingwindow.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index e67eeee27c6b..63c3a0f54f27 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -66,8 +66,11 @@ class BrandImage final : public weld::CustomWidgetController
private:
BitmapEx maBrandImage;
bool mbIsDark = false;
+ Size m_BmpSize;
public:
+ Size getSize() { return m_BmpSize; }
+
virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override
{
weld::CustomWidgetController::SetDrawingArea(pDrawingArea);
@@ -94,8 +97,8 @@ public:
if (maBrandImage.GetSizePixel().Width() == nWidth)
return;
LoadImageForWidth(nWidth);
- const Size aBmpSize(maBrandImage.GetSizePixel());
- set_size_request(aBmpSize.Width(), aBmpSize.Height());
+ m_BmpSize = maBrandImage.GetSizePixel();
+ set_size_request(m_BmpSize.Width(), m_BmpSize.Height());
}
virtual void StyleUpdated() override
@@ -135,7 +138,7 @@ public:
};
// increase size of the text in the buttons on the left fMultiplier-times
-float const g_fMultiplier = 1.4f;
+float const g_fMultiplier = 1.2f;
BackingWindow::BackingWindow(vcl::Window* i_pParent)
: InterimItemWindow(i_pParent, "sfx/ui/startcenter.ui", "StartCenter", false)
@@ -371,7 +374,7 @@ void BackingWindow::ApplyStyleSettings()
// Refetch because the brand image height to match this width is now set
aPrefSize = mxAllButtonsBox->get_preferred_size();
- set_height_request(nMenuHeight + aPrefSize.Height());
+ set_height_request(nMenuHeight + aPrefSize.Height() + mxBrandImage->getSize().getHeight());
}
void BackingWindow::initializeLocalView()