~lukas-kde/unity8/activateWindows

« back to all changes in this revision

Viewing changes to qml/DisabledScreenNotice.qml

  • Committer: Lukáš Tinkl
  • Date: 2015-10-26 13:50:42 UTC
  • mfrom: (2004.1.15 trunk)
  • Revision ID: lukas.tinkl@canonical.com-20151026135042-njfom5vn3nb8fxhy
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */
 
16
 
 
17
import QtQuick 2.4
 
18
import Ubuntu.Components 1.3
 
19
import "Components"
 
20
 
 
21
Image {
 
22
    id: root
 
23
 
 
24
    WallpaperResolver {
 
25
        width: root.width
 
26
        id: wallpaperResolver
 
27
    }
 
28
 
 
29
    source: wallpaperResolver.background
 
30
 
 
31
    UbuntuShape {
 
32
        anchors.fill: text
 
33
        anchors.margins: -units.gu(2)
 
34
        backgroundColor: "black"
 
35
        opacity: 0.4
 
36
    }
 
37
 
 
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
    }
 
49
}