[PC3] Only show progress bar indicator when the ends won't overlap

Summary:
If the width is smaller than LeftMargin + Right Margin the two ends
overlap and it looks super weird

Test Plan: Progressbar manual unit test looks sane

Reviewers: #plasma

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D25926
This commit is contained in:
David Edmundson 2019-12-12 16:15:59 +00:00
parent 5172b920f9
commit e91ba953ea

View File

@ -38,7 +38,9 @@ T.ProgressBar {
imagePath: "widgets/bar_meter_horizontal"
prefix: "bar-active"
colorGroup: PlasmaCore.ColorScope.colorGroup
visible: width > indicator.fixedMargins.left
}
SequentialAnimation {
id: anim
loops: Animation.Infinite