2
* This file is part of unity-2d
4
* Copyright 2010-2011 Canonical Ltd.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 3.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
26
opacity: ( state == "selected" || state == "pressed"
27
|| state == "hovered" ) ? 1.0 : 0.0
28
Behavior on opacity {NumberAnimation {duration: 100}}
34
anchors.bottomMargin: 1
35
anchors.rightMargin: 1
37
color: background.state == "pressed" ? "#ffffffff" : "#00000000"
38
border.color: "#cccccc"
45
source: "artwork/button_background.png"