2
* This file is part of unity-2d
4
* Copyright 2012 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/>.
24
property string icon: ""
26
Accessible.name: completionText
27
Accessible.role: Accessible.Button
32
anchors.top: parent.top
33
anchors.left: parent.left
34
anchors.right: parent.right
37
color: "#21ffffff" // 80% opaque
42
objectName: "container"
44
anchors.top: line.bottom
45
anchors.left: parent.left
46
anchors.right: parent.right
47
anchors.bottom: parent.bottom
50
border.width: (parent.state == "selected" || parent.state == "hovered"
51
|| parent.state == "pressed") ? 2 : 0
53
if (parent.state == "selected" || parent.state == "hovered") return "#21ffffff"
54
else if ( parent.state == "pressed" ) return "white"
55
else return "transparent"
64
anchors.left: parent.left
65
anchors.right: shortcutText.left
66
anchors.leftMargin: 38
67
anchors.rightMargin: 4
68
anchors.verticalCenter: container.verticalCenter
70
color: (delegate.state == "pressed") ? "black" : "white"
72
font.weight: Font.Light
76
textFormat: Text.RichText
82
objectName: "shortcut"
85
anchors.right: parent.right
86
anchors.rightMargin: 16
87
anchors.verticalCenter: container.verticalCenter
89
color: (delegate.state == "pressed") ? "black" : "white"
91
font.weight: Font.Light