Resolves tdf#159486 - Larger hitbox for close button on infobar

Change-Id: I83582c0c1ec7dd5e8f82bdf327e68ce88122ad03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164450
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
This commit is contained in:
Heiko Tietze 2024-03-06 10:35:53 +01:00 committed by Heiko Tietze
parent 3aeaee800f
commit 06d8c1e9d8

View file

@ -103,9 +103,12 @@ void SfxInfoBarWindow::SetCloseButtonImage()
aSize = Size(aSize.Width() * 1.5, aSize.Height() * 1.5); aSize = Size(aSize.Width() * 1.5, aSize.Height() * 1.5);
ScopedVclPtr<VirtualDevice> xDevice(m_xCloseBtn->create_virtual_device()); ScopedVclPtr<VirtualDevice> xDevice(m_xCloseBtn->create_virtual_device());
xDevice->SetOutputSizePixel(aSize); xDevice->SetOutputSizePixel(Size(24, 24));
xDevice->SetBackground(Color(m_aBackgroundColor));
xDevice->Erase();
Point aBtnPos(0, 0); const int nPos = (24 - aSize.getWidth()) / 2;
Point aBtnPos(nPos, nPos);
const ViewInformation2D aNewViewInfos; const ViewInformation2D aNewViewInfos;
const std::unique_ptr<BaseProcessor2D> pProcessor( const std::unique_ptr<BaseProcessor2D> pProcessor(