summaryrefslogtreecommitdiff
path: root/prototype_2016/third_party/fluid/core/PlatformExtensions.qml
diff options
context:
space:
mode:
Diffstat (limited to 'prototype_2016/third_party/fluid/core/PlatformExtensions.qml')
-rw-r--r--prototype_2016/third_party/fluid/core/PlatformExtensions.qml51
1 files changed, 0 insertions, 51 deletions
diff --git a/prototype_2016/third_party/fluid/core/PlatformExtensions.qml b/prototype_2016/third_party/fluid/core/PlatformExtensions.qml
deleted file mode 100644
index ba9dcdb..0000000
--- a/prototype_2016/third_party/fluid/core/PlatformExtensions.qml
+++ /dev/null
@@ -1,51 +0,0 @@
1/*
2 * This file is part of Fluid.
3 *
4 * Copyright (C) 2015-2016 Michael Spencer <sonrisesoftware@gmail.com>
5 *
6 * $BEGIN_LICENSE:MPL2$
7 *
8 * This Source Code Form is subject to the terms of the Mozilla Public
9 * License, v. 2.0. If a copy of the MPL was not distributed with this
10 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 *
12 * $END_LICENSE$
13 */
14
15import QtQuick 2.0
16import Fluid.Core 1.0
17
18Object {
19 id: platform
20
21 property var platformExtensions
22
23 property color decorationColor
24 property var window: null
25
26 onDecorationColorChanged: {
27 if (platformExtensions && color != "#000000") {
28 platformExtensions.decorationColor = decorationColor
29 }
30 }
31
32 onWindowChanged: {
33 if (platformExtensions) {
34 platformExtensions.window = window
35 }
36 }
37
38 Component.onCompleted: {
39 try {
40 var code = 'import Liri.Platform 1.0; PlatformExtensions {}'
41 platformExtensions = Qt.createQmlObject(code, platform, "LiriExtensions");
42
43 platformExtensions.window = window
44 if (decorationColor != "#000000")
45 platformExtensions.decorationColor = decorationColor
46 } catch (error) {
47 // Ignore the error; it only means that the Papyros
48 // platform extensions are not available
49 }
50 }
51}