diff options
author | Irgaliev Amin <irgaliev01@mail.ru> | 2023-11-22 22:43:18 +0400 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2023-11-22 21:20:09 +0100 |
commit | 847001ffbbcaf6d2657a5cce18f6c58151efbd2c (patch) | |
tree | 69f46eac99c134b2d1ca4d92d7ff8d629417fff8 /slideshow | |
parent | 3709a8e5f03a6498a6f3ac7c6671d4b08fc46ea3 (diff) |
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 <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/slideshowimpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<presentation::XSlideShowListener>& 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; |