[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:
parent
5172b920f9
commit
e91ba953ea
@ -38,7 +38,9 @@ T.ProgressBar {
|
|||||||
imagePath: "widgets/bar_meter_horizontal"
|
imagePath: "widgets/bar_meter_horizontal"
|
||||||
prefix: "bar-active"
|
prefix: "bar-active"
|
||||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||||
|
visible: width > indicator.fixedMargins.left
|
||||||
}
|
}
|
||||||
|
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
id: anim
|
id: anim
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
|
Loading…
Reference in New Issue
Block a user