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
450
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
d962a908
Commit
d962a908
authored
1 month ago
by
Fatih Uzunoğlu
Committed by
Steve Lhomme
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
qml: get rid of the second rectangle and use gradient instead in `VideoProgressBar`
parent
ca8a1dd2
No related branches found
Branches containing commit
No related tags found
1 merge request
!6860
qml: optimize `VideoProgressBar` by getting rid of the second rectangle
Pipeline
#567781
passed with stage
in 11 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/qt/widgets/qml/VideoProgressBar.qml
+5
-19
5 additions, 19 deletions
modules/gui/qt/widgets/qml/VideoProgressBar.qml
with
5 additions
and
19 deletions
modules/gui/qt/widgets/qml/VideoProgressBar.qml
+
5
−
19
View file @
d962a908
...
...
@@ -37,6 +37,7 @@ Item {
}
Rectangle
{
id
:
rectangle
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
...
...
@@ -49,25 +50,10 @@ Item {
color
:
"
white
"
radius
:
progressBar
.
radius
//use clipping again to delimit the viewed part as we want the accent section to follow the given as well
Item
{
clip
:
true
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
width
:
progressBar
.
value
*
parent
.
width
Rectangle
{
width
:
progressBar
.
width
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
color
:
theme
.
fg
.
primary
radius
:
progressBar
.
radius
}
gradient
:
Gradient
{
orientation
:
Gradient
.
Horizontal
GradientStop
{
position
:
progressBar
.
value
;
color
:
theme
.
fg
.
primary
}
GradientStop
{
position
:
progressBar
.
value
+
(
1
.
/
rectangle
.
width
);
color
:
rectangle
.
color
}
}
}
}
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