From 72fb2ff102e10a14f4fe90c9119235b661a8e806 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Mon, 22 Feb 2016 17:05:57 +1300 Subject: [PATCH] Make copies of modal window files --- .../resources/qml/windows-uit/ModalFrame.qml | 41 +++++++++++++++++++ .../resources/qml/windows-uit/ModalWindow.qml | 22 ++++++++++ 2 files changed, 63 insertions(+) create mode 100644 interface/resources/qml/windows-uit/ModalFrame.qml create mode 100644 interface/resources/qml/windows-uit/ModalWindow.qml diff --git a/interface/resources/qml/windows-uit/ModalFrame.qml b/interface/resources/qml/windows-uit/ModalFrame.qml new file mode 100644 index 0000000000..25f89a8baa --- /dev/null +++ b/interface/resources/qml/windows-uit/ModalFrame.qml @@ -0,0 +1,41 @@ +// +// ModalFrame.qml +// +// Created by Bradley Austin Davis on 15 Jan 2016 +// Copyright 2015 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +import QtQuick 2.5 + +import "." +import "../controls" + +Frame { + id: frame + + Item { + anchors.fill: parent + + Rectangle { + id: background + anchors.fill: parent + anchors.margins: -4096 + visible: window.visible + color: "#7f7f7f7f"; + radius: 3; + } + + Text { + y: -implicitHeight - iconSize / 2 + text: window.title + elide: Text.ElideRight + font.bold: true + color: window.focus ? "white" : "gray" + style: Text.Outline; + styleColor: "black" + } + } +} diff --git a/interface/resources/qml/windows-uit/ModalWindow.qml b/interface/resources/qml/windows-uit/ModalWindow.qml new file mode 100644 index 0000000000..47da73281d --- /dev/null +++ b/interface/resources/qml/windows-uit/ModalWindow.qml @@ -0,0 +1,22 @@ +// +// ModalWindow.qml +// +// Created by Bradley Austin Davis on 22 Jan 2016 +// Copyright 2015 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +import QtQuick 2.5 + +import "." + +Window { + id: root + anchors.centerIn: parent + modality: Qt.ApplicationModal + destroyOnCloseButton: true + destroyOnInvisible: true + frame: ModalFrame{} +}