[vlc-commits] [Git][videolan/vlc][master] 2 commits: qt: increase interface window minimum size to 320x360 from 320x300
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Jan 26 23:36:35 UTC 2025
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
acac998c by Fatih Uzunoglu at 2025-01-26T23:22:59+00:00
qt: increase interface window minimum size to 320x360 from 320x300
Currently PIP player and the playlist does not fit into the minimum
height and this causes glitches in the interface.
- - - - -
c87e6d2c by Fatih Uzunoglu at 2025-01-26T23:22:59+00:00
qt: relax interface window minimum size with minimal mode
- - - - -
1 changed file:
- modules/gui/qt/maininterface/interface_window_handler.cpp
Changes:
=====================================
modules/gui/qt/maininterface/interface_window_handler.cpp
=====================================
@@ -82,9 +82,15 @@ InterfaceWindowHandler::InterfaceWindowHandler(qt_intf_t *_p_intf, MainCtx* main
const auto updateMinimumSize = [this]()
{
+ if (m_mainCtx->isMinimalView())
+ {
+ m_window->setMinimumSize({128, 16});
+ return;
+ }
+
int margin = m_mainCtx->windowExtendedMargin() * 2;
int width = 320 + margin;
- int height = 300 + margin;
+ int height = 360 + margin;
double intfScaleFactor = m_mainCtx->getIntfScaleFactor();
int scaledWidth = std::ceil( intfScaleFactor * width );
@@ -94,6 +100,7 @@ InterfaceWindowHandler::InterfaceWindowHandler(qt_intf_t *_p_intf, MainCtx* main
};
connect( m_mainCtx, &MainCtx::intfScaleFactorChanged, this, updateMinimumSize );
connect( m_mainCtx, &MainCtx::windowExtendedMarginChanged, this, updateMinimumSize );
+ connect( m_mainCtx, &MainCtx::minimalViewChanged, this, updateMinimumSize );
m_mainCtx->updateIntfScaleFactor();
m_mainCtx->onWindowVisibilityChanged(m_window->visibility());
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/55b9ae56b5e7a8acf7afc3939b333f874c310d87...c87e6d2c90b04c74df2bf59a3b6c8819c9565f1f
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/55b9ae56b5e7a8acf7afc3939b333f874c310d87...c87e6d2c90b04c74df2bf59a3b6c8819c9565f1f
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list