Add dialog title

This commit is contained in:
David Rowe 2017-03-09 22:38:49 +13:00
parent 4be106cbae
commit 53dcf80cc0

View file

@ -19,6 +19,8 @@ Item {
id: root
objectName: "AttachmentsDialog"
property string title: "Avatar Attachments"
property bool keyboardEnabled: false
property bool keyboardRaised: false
property bool punctuationMode: false
@ -36,11 +38,46 @@ Item {
Tablet.getTablet("com.highfidelity.interface.tablet.system").gotoHomeScreen();
}
anchors.topMargin: 90 // Space for header.
// FIXME: Refactor with other tablet headers.
Rectangle {
id: header
height: 90
anchors {
left: parent.left
right: parent.right
bottom: parent.top
}
z: 100
gradient: Gradient {
GradientStop {
position: 0
color: "#2b2b2b"
}
GradientStop {
position: 1
color: "#1e1e1e"
}
}
RalewayBold {
text: title
size: 26
color: "#34a2c7"
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: hifi.dimensions.contentMargin.x
}
}
AttachmentsContent {
id: attachments
anchors {
top: parent.top
top: header.bottom
left: parent.left
right: parent.right
bottom: keyboard.top