[vlc-commits] [Git][videolan/vlc][master] qml: do not use radius if it is smaller than 4dp
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sun Dec 8 13:51:57 UTC 2024
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
62daad61 by Fatih Uzunoglu at 2024-12-08T13:21:21+00:00
qml: do not use radius if it is smaller than 4dp
- Too small radius is hard to notice, so it is not
worth to have it over regular image.
- When there is no radius, anti-aliasing is not
necessary, so if the source image is opaque,
blending would not be necessary which makes
the batch renderer do better batching.
- - - - -
2 changed files:
- modules/gui/qt/style/VLCStyle.qml
- modules/gui/qt/widgets/qml/DragItem.qml
Changes:
=====================================
modules/gui/qt/style/VLCStyle.qml
=====================================
@@ -89,10 +89,10 @@ QtObject {
readonly property int listAlbumCover_height: MainCtx.dp(32, scale)
readonly property int listAlbumCover_width: listAlbumCover_height * 16.0/9
- readonly property int listAlbumCover_radius: MainCtx.dp(3, scale)
+ readonly property int listAlbumCover_radius: 0
readonly property int trackListAlbumCover_width: MainCtx.dp(32, scale)
readonly property int trackListAlbumCover_heigth: MainCtx.dp(32, scale)
- readonly property int trackListAlbumCover_radius: MainCtx.dp(2, scale)
+ readonly property int trackListAlbumCover_radius: 0
readonly property int tableCoverRow_height: Math.max(listAlbumCover_height, fontHeight_normal) + margin_xsmall * 2
readonly property int tableRow_height: fontHeight_normal + margin_small * 2
=====================================
modules/gui/qt/widgets/qml/DragItem.qml
=====================================
@@ -452,7 +452,7 @@ Item {
Rectangle {
id: bg
- radius: coverRepeater.count > 1 ? dragItem.coverSize : VLCStyle.dp(2, VLCStyle.scale)
+ radius: coverRepeater.count > 1 ? dragItem.coverSize : 0.0
anchors.fill: parent
color: theme.bg.primary
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/62daad61bf8efd687bb1970a16c359733f0b73cf
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/62daad61bf8efd687bb1970a16c359733f0b73cf
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