From 847001ffbbcaf6d2657a5cce18f6c58151efbd2c Mon Sep 17 00:00:00 2001 From: Irgaliev Amin Date: Wed, 22 Nov 2023 22:43:18 +0400 Subject: tdf#158126 UI: Scalable buttons for Impress navigation bar On some panels, small icons of navigation bar are not convenient to use. Currently there are 4 sizes available for other icons: automatic, small, large and extra large. It is useful to implement support for scalable buttons in the Impress navigation bar. This setting can be located in Slide show -> Slide Show Settings (Display section) Change-Id: Ief8cc0cbf4eac98ee90bf3e993e4fc44cea0165e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159294 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- slideshow/source/engine/slideshowimpl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slideshow') diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index 34cb4418db9d..5e0dbbb8074e 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -1828,7 +1828,7 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty ) return false; mpNavigationMenu = SlideOverlayButton::create( - xBitmap, { 80, 10 }, + xBitmap, { xBitmap->getSize().Width + 48, 10 }, [this](basegfx::B2DPoint pos) { maListenerContainer.forEach( [pos](const uno::Reference& xListener) { @@ -1852,7 +1852,7 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty ) return false; mpNavigationNext = SlideOverlayButton::create( - xBitmap, { 140, 10 }, [this](basegfx::B2DPoint) { notifySlideEnded(false); }, + xBitmap, { 2 * xBitmap->getSize().Width + 76, 10 }, [this](basegfx::B2DPoint) { notifySlideEnded(false); }, maScreenUpdater, maEventMultiplexer, maViewContainer); return true; -- cgit