From e91ba953eafbbf626368e1f4960a400cbbfd3cb1 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 12 Dec 2019 16:15:59 +0000 Subject: [PATCH] [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 --- src/declarativeimports/plasmacomponents3/ProgressBar.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/declarativeimports/plasmacomponents3/ProgressBar.qml b/src/declarativeimports/plasmacomponents3/ProgressBar.qml index 1ce0c370b..05e9f364a 100644 --- a/src/declarativeimports/plasmacomponents3/ProgressBar.qml +++ b/src/declarativeimports/plasmacomponents3/ProgressBar.qml @@ -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