Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
456
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
c2d91aab
Commit
c2d91aab
authored
2 years ago
by
Fatih Uzunoğlu
Committed by
Hugo Beauzée-Luyssen
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
qml: limit Player image source size
parent
dd732081
No related branches found
Branches containing commit
No related tags found
1 merge request
!1869
qml: content image adjustments
Pipeline
#220453
passed with stage
in 20 minutes and 6 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/qt/player/qml/Player.qml
+16
-6
16 additions, 6 deletions
modules/gui/qt/player/qml/Player.qml
with
16 additions
and
6 deletions
modules/gui/qt/player/qml/Player.qml
+
16
−
6
View file @
c2d91aab
...
...
@@ -423,27 +423,37 @@ FocusScope {
visible
:
!
rootPlayer
.
hasEmbededVideo
Item
{
Layout.preferredHeight
:
rootPlayer
.
height
/
2.7182
Layout.preferredWidth
:
height
*
cover
.
sar
Layout.preferredHeight
:
rootPlayer
.
height
/
heightConstant
Layout.preferredWidth
:
cover
.
paintedWidth
Layout.maximumHeight
:
centerContent
.
height
Layout.alignment
:
Qt
.
AlignHCenter
readonly
property
real
heightConstant
:
2.7182
Image
{
id
:
cover
//source aspect ratio
readonly
property
real
sar
:
cover
.
sourceSize
.
width
/
cover
.
sourceSize
.
h
eight
readonly
property
real
sar
:
paintedWidth
/
paintedH
eight
anchors.fill
:
parent
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
anchors.horizontalCenter
:
parent
.
horizontalCenter
source
:
rootPlayer
.
coverSource
fillMode
:
Image
.
PreserveAspectFit
mipmap
:
height
<
sourceSize
.
height
*
.
3
mipmap
:
true
cache
:
false
asynchronous
:
true
sourceSize
:
Qt
.
size
(
maximumWidth
,
maximumHeight
)
readonly
property
real
maximumWidth
:
MainCtx
.
screen
?
(
MainCtx
.
screen
.
availableVirtualSize
.
width
*
MainCtx
.
screen
.
devicePixelRatio
)
:
1024
readonly
property
real
maximumHeight
:
MainCtx
.
screen
?
(
MainCtx
.
screen
.
availableVirtualSize
.
height
*
MainCtx
.
screen
.
devicePixelRatio
/
parent
.
heightConstant
)
:
1024
}
Widgets.CoverShadow
{
anchors.fill
:
cover
anchors.fill
:
parent
source
:
cover
primaryVerticalOffset
:
VLCStyle
.
dp
(
24
)
primaryRadius
:
VLCStyle
.
dp
(
54
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment