Unity 8
MoreAppsHeader.qml
1 /*
2  * Copyright (C) 2017 Canonical, Ltd.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 3.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 import QtQuick 2.4
18 import Ubuntu.Components 1.3
19 
20 AbstractButton {
21  id: root
22 
23  property bool highlighted: false
24 
25  UbuntuShape {
26  width: parent.width - units.gu(2)
27  anchors.horizontalCenter: parent.horizontalCenter
28  height: parent.height - units.gu(1)
29  color: "#20ffffff"
30  aspect: UbuntuShape.Flat
31 
32  StyledItem {
33  styleName: "FocusShape"
34  anchors.fill: parent
35  activeFocusOnTab: true
36  StyleHints {
37  visible: root.highlighted
38  }
39  }
40 
41  Row {
42  anchors.fill: parent
43  anchors.margins: units.gu(1)
44  spacing: units.gu(1)
45 
46  Icon {
47  height: units.gu(2.2)
48  width: height
49  name: "stock_application"
50  anchors.verticalCenter: parent.verticalCenter
51  color: "white"
52  }
53 
54  Label {
55  text: i18n.tr("More apps in the store")
56  anchors.verticalCenter: parent.verticalCenter
57  fontSize: "small"
58  }
59 
60  Icon {
61  height: units.gu(2.5)
62  width: height
63  anchors.verticalCenter: parent.verticalCenter
64  name: "go-next"
65  color: "white"
66  }
67  }
68  }
69 }