diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-09-17 23:05:54 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-09-17 23:05:54 (GMT) |
| commit | 567ac557d211bc11e4b344b1aa2850ded661a867 (patch) | |
| tree | 759706056c4c83e0e5602d974498a548989e89c1 | |
| parent | ee4e576c101691e7ccea4c689a390acb1320b6b6 (diff) | |
Colors in the list delegate
| -rw-r--r-- | discover/qml/ApplicationsList.qml | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/discover/qml/ApplicationsList.qml b/discover/qml/ApplicationsList.qml index 5ba73c4..1c12ba7 100644 --- a/discover/qml/ApplicationsList.qml +++ b/discover/qml/ApplicationsList.qml @@ -62,17 +62,6 @@ ScrollView { verticalCenter: parent.verticalCenter left: parent.left } - - QIconItem { - anchors { - right: resourceIcon.right - bottom: resourceIcon.bottom - } - visible: isInstalled && view.model.stateFilter!=2 - icon: "checkmark" - height: 16 - width: 16 - } } Label { @@ -90,7 +79,8 @@ ScrollView { Rating { id: ratingsItem anchors { - right: parent.right + right: indicator.left + rightMargin: 2 verticalCenter: nameLabel.verticalCenter } height: app.isCompact ? contHeight*.6 : contHeight*.4 @@ -104,8 +94,9 @@ ScrollView { bottom: parent.bottom left: resourceIcon.right leftMargin: 5 + rightMargin: 2 top: parent.verticalCenter - right: parent.right + right: indicator.left } Label { @@ -130,6 +121,14 @@ ScrollView { application: model.application } } + Rectangle { + id: indicator + color: canUpgrade ? "blue" : isInstalled && view.model.stateFilter!=2 ? "green" : "yellow" + width: 2 + height: parent.height + anchors.right: parent.right + opacity: 0.3 + } } } } |
