on ac04789 help sign in
unity8/plugins/Unity/Indicators/qml/RoamingIndication.qml
55 lines 1.5 kB history raw
1/*
2 * Copyright 2014 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authors:
17 * Antti Kaijanmäki <antti.kaijanmaki@canonical.com>
18 */
20import QtQuick 2.0
21import Ubuntu.Components 0.1
23Item {
24 width: (labelRoaming.width > iconRoaming.width) ? labelRoaming.width : iconRoaming.width
26 Icon {
27 id: iconRoaming
28 anchors {
29 top: parent.top
30 horizontalCenter: parent.horizontalCenter
31 }
33 color: Theme.palette.selected.backgroundText
34 keyColor: "#cccccc"
36 width: height
37 height: units.gu(4)
39 name: "network-cellular-roaming"
40 }
42 Label {
43 id: labelRoaming
44 anchors {
45 bottom: parent.bottom
46 horizontalCenter: parent.horizontalCenter
47 }
48 elide: Text.ElideRight
50 fontSize: "x-small"
51 font.bold: true
53 text: i18n.tr("roaming")
54 }