on 157e33e help sign in
unity8/qml/DisabledScreenNotice.qml
49 lines 1.3 kB history raw
1/*
2 * Copyright (C) 2015 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 */
17import QtQuick 2.4
18import Ubuntu.Components 1.3
19import "Components"
21Image {
22 id: root
24 WallpaperResolver {
25 width: root.width
26 id: wallpaperResolver
27 }
29 source: wallpaperResolver.background
31 UbuntuShape {
32 anchors.fill: text
33 anchors.margins: -units.gu(2)
34 backgroundColor: "black"
35 opacity: 0.4
36 }
38 Label {
39 id: text
40 anchors.centerIn: parent
41 width: parent.width / 2
42 text: i18n.tr("Your device is now connected to an external display.")
43 color: "white"
44 horizontalAlignment: Text.AlignHCenter
45 verticalAlignment: Text.AlignVCenter
46 fontSize: "x-large"
47 wrapMode: Text.Wrap
48 }