Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jean-Baptiste Kempf
VLC
Commits
be357dd8
Commit
be357dd8
authored
3 years ago
by
Benjamin Arnaud
Committed by
Jean-Baptiste Kempf
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
qml/VideoDisplayRecentVideos: Update dimensions, margin and spacing
fix #26138
parent
a33d7eec
No related branches found
Branches containing commit
Tags
0.9.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/qt/medialibrary/qml/VideoDisplayRecentVideos.qml
+32
-14
32 additions, 14 deletions
modules/gui/qt/medialibrary/qml/VideoDisplayRecentVideos.qml
with
32 additions
and
14 deletions
modules/gui/qt/medialibrary/qml/VideoDisplayRecentVideos.qml
+
32
−
14
View file @
be357dd8
...
...
@@ -32,15 +32,16 @@ FocusScope {
// Properties
property
int
leftPadding
:
VLCStyle
.
margin_xlarge
property
int
rightPadding
:
VLCStyle
.
margin_xlarge
property
Item
focusItem
:
recentVideosListView
property
int
currentIndex
:
-
1
property
var
model
:
undefined
;
// Properties
property
int
displayMargins
:
0
// Settings
implicitHeight
:
recentVideosColumn
.
height
...
...
@@ -83,8 +84,13 @@ FocusScope {
Widgets.SubtitleLabel
{
id
:
continueWatchingLabel
leftPadding
:
VLCStyle
.
margin_xlarge
width
:
parent
.
width
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
// NOTE: We want this to be properly aligned with the grid items.
anchors.leftMargin
:
VLCStyle
.
margin_normal
text
:
i18n
.
qtr
(
"
Continue Watching
"
)
}
...
...
@@ -92,18 +98,30 @@ FocusScope {
id
:
recentVideosListView
width
:
parent
.
width
implicitHeight
:
VLCStyle
.
gridItem_video_height_large
+
VLCStyle
.
gridItemSelectedBorder
+
VLCStyle
.
margin_xlarge
implicitHeight
:
VLCStyle
.
gridItem_video_height
+
VLCStyle
.
gridItemSelectedBorder
+
VLCStyle
.
margin_xlarge
spacing
:
VLCStyle
.
column_margin_width
// NOTE: Sometimes, we want items to be visible on the sides.
displayMarginBeginning
:
root
.
displayMargins
displayMarginEnd
:
root
.
displayMargins
// NOTE: We want navigation buttons to be centered on the item cover.
buttonMargin
:
VLCStyle
.
margin_xsmall
+
VLCStyle
.
gridCover_video_height
/
2
-
buttonLeft
.
height
/
2
orientation
:
ListView
.
Horizontal
focus
:
true
Navigation.parentItem
:
root
model
:
root
.
model
Navigation.parentItem
:
root
header
:
Item
{
width
:
VLCStyle
.
margin_
xlarge
width
:
VLCStyle
.
margin_
normal
}
delegate
:
VideoGridItem
{
...
...
@@ -111,8 +129,8 @@ FocusScope {
x
:
selectedBorderWidth
y
:
selectedBorderWidth
pictureWidth
:
VLCStyle
.
gridCover_video_width
_large
pictureHeight
:
VLCStyle
.
gridCover_video_height
_large
pictureWidth
:
VLCStyle
.
gridCover_video_width
pictureHeight
:
VLCStyle
.
gridCover_video_height
focus
:
true
...
...
@@ -148,7 +166,7 @@ FocusScope {
}
footer
:
Item
{
width
:
VLCStyle
.
margin_
xlarge
width
:
VLCStyle
.
margin_
normal
}
onSelectionUpdated
:
recentVideoSelection
.
updateSelection
(
keyModifiers
,
oldIndex
,
newIndex
)
...
...
@@ -160,8 +178,8 @@ FocusScope {
Widgets.GridShadows
{
id
:
shadows
coverWidth
:
VLCStyle
.
gridCover_video_width
_large
coverHeight
:
VLCStyle
.
gridCover_video_height
_large
coverWidth
:
VLCStyle
.
gridCover_video_width
coverHeight
:
VLCStyle
.
gridCover_video_height
}
}
}
...
...
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