From 35211b7475c2ad7089d0e2c472fbb7b419650fc3 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Thu, 28 Jan 2016 21:18:14 -0800 Subject: [PATCH] Add titles to modal dialogs, move z-order debug display to bottom of window --- interface/resources/qml/windows/Frame.qml | 2 +- interface/resources/qml/windows/ModalFrame.qml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/interface/resources/qml/windows/Frame.qml b/interface/resources/qml/windows/Frame.qml index cbcf1a77f6..3cbc31fce6 100644 --- a/interface/resources/qml/windows/Frame.qml +++ b/interface/resources/qml/windows/Frame.qml @@ -25,7 +25,7 @@ Item { id: debugZ visible: DebugQML text: window ? "Z: " + window.z : "" - y: -height + y: window.height + 4 } function deltaSize(dx, dy) { diff --git a/interface/resources/qml/windows/ModalFrame.qml b/interface/resources/qml/windows/ModalFrame.qml index 135a27c647..09dbf04b5c 100644 --- a/interface/resources/qml/windows/ModalFrame.qml +++ b/interface/resources/qml/windows/ModalFrame.qml @@ -13,5 +13,16 @@ Frame { 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" + } + }