This commit is contained in:
Thomas Perl 2014-02-07 17:23:56 +01:00
parent 3d7128a421
commit 99cf0780c1
43 changed files with 239 additions and 182 deletions

View file

@ -20,14 +20,18 @@
import QtQuick 2.0
import 'common/constants.js' as Constants
MouseArea {
id: mouseArea
property bool transparent: false
property bool canHighlight: true
Rectangle {
id: background
anchors.fill: parent
color: (mouseArea.pressed && mouseArea.canHighlight)?'#33ffffff':(mouseArea.transparent?'#00000000':'#88000000')
visible: parent.enabled
color: Constants.colors.area
opacity: (mouseArea.pressed && mouseArea.canHighlight) ? 1 : .5
visible: parent.enabled && ((mouseArea.canHighlight && mouseArea.pressed) || !mouseArea.transparent)
}
}