diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-10-07 07:29:15 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-10-07 07:29:15 (GMT) |
| commit | 7ba51f3ff70981332928c8a4d6f6a780d7e96629 (patch) | |
| tree | b9cb5dba644f903aaac7da6de69aaf9396380a8d | |
| parent | e92a3863d1ff0b3da89295096f79a330fffdede4 (diff) | |
Use a different color to highlight on grid delegate hover
This way we can have things with such highlight within the delegate.
| -rw-r--r-- | discover/qml/GridItem.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discover/qml/GridItem.qml b/discover/qml/GridItem.qml index 397d3f4..8e24d7e 100644 --- a/discover/qml/GridItem.qml +++ b/discover/qml/GridItem.qml @@ -27,6 +27,7 @@ MouseArea { default property alias content: paddingItem.data property int internalMargin: 5 + readonly property color highlightColor: Qt.lighter(palette.highlight) hoverEnabled: true @@ -35,7 +36,7 @@ MouseArea { } Rectangle { anchors.fill: parent - color: listItem.containsMouse || listItem.pressed ? palette.highlight : palette.button + color: listItem.containsMouse || listItem.pressed ? listItem.highlightColor : palette.button border.color: palette.mid border.width: 2 } |
