[vlc-commits] [Git][videolan/vlc][master] qml: use more reasonable source size for artist banner background image
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Oct 14 05:08:41 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
0c279ed8 by Fatih Uzunoglu at 2025-10-14T04:43:22+00:00
qml: use more reasonable source size for artist banner background image
As long as the interface window is a fraction of the screen width,
the displayed image is smaller than the source size, making it hard
to justify having such big source size. And when the interface window
is big, the details are gone due to blurring, which again makes it
hard to justify having big source (hence image, hence texture) size.
Granted, this is going to make the background more blurry when the
interface window width is bigger than half of the screen size. But,
the increase in blurriness in that case is substantially less than
what the blur effect already achieves. Though with `1/4` it was
rather obvious, so `1/2` should be safer.
This change reduces video and system memory consumption considerably.
- - - - -
1 changed file:
- modules/gui/qt/medialibrary/qml/ArtistTopBanner.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/ArtistTopBanner.qml
=====================================
@@ -59,7 +59,7 @@ FocusScope {
asynchronous: true
source: root.artist.id ? (root.artist.cover || VLCStyle.noArtArtist) : "" // do not load the fallback image during initialization
- sourceSize: artist.cover ? Qt.size(Helpers.alignUp(Screen.desktopAvailableWidth, 32), 0)
+ sourceSize: artist.cover ? Qt.size(Helpers.alignUp(Screen.desktopAvailableWidth / 2, 32), 0)
: undefined
mipmap: !!artist.cover
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0c279ed8c1b4c234fd0cd6a0d80343f82d8dabdd
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0c279ed8c1b4c234fd0cd6a0d80343f82d8dabdd
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