From ab56765ebd4cc297c6af21f0b0f457626126d1fc Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Thu, 28 Jan 2016 17:52:22 -0800 Subject: [PATCH] Add titles to windows --- .../resources/qml/windows/DefaultFrame.qml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/interface/resources/qml/windows/DefaultFrame.qml b/interface/resources/qml/windows/DefaultFrame.qml index fc54a1b1a2..505e653940 100644 --- a/interface/resources/qml/windows/DefaultFrame.qml +++ b/interface/resources/qml/windows/DefaultFrame.qml @@ -20,12 +20,8 @@ Frame { Row { id: controlsRow - anchors.right: parent.right - anchors.top: parent.top - anchors.rightMargin: iconSize - anchors.topMargin: iconSize / 2 + anchors { right: parent.right; top: parent.top; rightMargin: iconSize; topMargin: iconSize / 2; } spacing: iconSize / 4 - FontAwesome { visible: false text: "\uf08d" @@ -54,6 +50,18 @@ Frame { } } } + + Text { + id: titleText + anchors { left: parent.left; leftMargin: iconSize; right: controlsRow.left; rightMargin: iconSize; top: parent.top; topMargin: iconSize / 2; } + text: window.title + elide: Text.ElideRight + font.bold: true + color: window.focus ? "white" : "gray" + style: Text.Outline; + styleColor: "black" + } } + }