~gerboland/unity-2d/button_distinguish_mouseOver_selected_states

« back to all changes in this revision

Viewing changes to places/Button.qml

  • Committer: Gerry Boland
  • Date: 2011-08-09 16:18:45 UTC
  • Revision ID: gerboland@gmail.com-20110809161845-a9jqbtsnmplqkwoo
Renaming "mouseOver" to "hovered" as recommended, for consistency with Qt's widgets

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        anchors.bottomMargin: 1
25
25
        anchors.rightMargin: 1
26
26
        opacity: ( parent.state == "selected" || parent.state == "pressed"
27
 
                  || parent.state == "mouseOver" ) ? 1.0 : 0.0
 
27
                  || parent.state == "hovered" ) ? 1.0 : 0.0
28
28
 
29
29
        color: parent.state == "pressed" ? "#ffffffff" : "#00000000"
30
30
        border.color: "#cccccc"