EpisodeItem behavior and highlight/style

This commit is contained in:
Thomas Perl 2014-02-07 00:12:22 +01:00
parent 51efb2e089
commit fe4380b8ba
2 changed files with 22 additions and 6 deletions

View file

@ -23,10 +23,11 @@ import QtQuick 2.0
MouseArea {
id: mouseArea
property bool transparent: false
property bool canHighlight: true
Rectangle {
anchors.fill: parent
color: mouseArea.pressed?'#33ffffff':(mouseArea.transparent?'#00000000':'#88000000')
color: (mouseArea.pressed && mouseArea.canHighlight)?'#33ffffff':(mouseArea.transparent?'#00000000':'#88000000')
visible: parent.enabled
}
}