Debian Codegraph @

src/app/qml/components/NoAPIKeyErrorStateComponent.qml

raw
1 /*
2 * Copyright (C) 2015-2016 Canonical Ltd.
3 *
4 * This file is part of Lomiri Weather App
5 *
6 * Lomiri Weather App is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 3 as
8 * published by the Free Software Foundation.
9 *
10 * Lomiri Weather App 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.
14 *
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/>.
17 */
18
19 import QtQuick 2.12
20 import Lomiri.Components 1.3
21 import "../components"
22
23 Rectangle {
24 color: theme.palette.normal.background
25 anchors.fill: parent
26
27 SettingsButton {
28 anchors {
29 right: parent.right
30 top: parent.top
31 }
32 }
33
34 Column {
35 anchors {
36 centerIn: parent
37 }
38 spacing: units.gu(4)
39 width: parent.width - units.gu(4)
40
41 Label {
42 id: networkErrorStateLabel
43 anchors {
44 horizontalCenter: parent.horizontalCenter
45 }
46 fontSize: "x-large"
47 text: i18n.tr("No API Keys Found")
48 width: parent.width
49 wrapMode: Text.WordWrap
50 }
51
52 Label {
53 anchors {
54 horizontalCenter: parent.horizontalCenter
55 }
56 text: i18n.tr("If you are a developer, please see the README file for instructions on how to obtain your own Open Weather Map API key.")
57 width: parent.width
58 wrapMode: Text.WordWrap
59 }
60 }
61 }