overte-HifiExperiments/interface/resources/qml/hifi/avatarPackager/AvatarPackagerHeader.qml
Thijs Wenker ad2d9bc79a - fst read/write should work
- images are being copied into the correct directory
- scripts are added to fst upon project load
- modal overlay fix
2018-12-21 19:34:54 +01:00

71 lines
1.8 KiB
QML

import QtQuick 2.6
import "../../controlsUit" 1.0 as HifiControls
import "../../stylesUit" 1.0
Rectangle {
id: avatarPackagerHeader
width: parent.width
height: 74
color: "#252525"
property alias title: title.text
property alias faqEnabled: faq.visible
property alias backButtonEnabled: back.visible
signal backButtonClicked
RalewaySemiBold {
id: back
visible: true
size: 28
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.leftMargin: 16
anchors.verticalCenter: back.verticalCenter
text: "◀"
color: "white"
MouseArea {
anchors.fill: parent
onClicked: avatarPackagerHeader.backButtonClicked()
hoverEnabled: true
onEntered: { state = "hovering" }
onExited: { state = "" }
states: [
State {
name: "hovering"
PropertyChanges {
target: back
color: "gray"
}
}
]
}
}
RalewaySemiBold {
id: title
size: 28
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: back.visible ? back.right : parent.left
anchors.leftMargin: back.visible ? 11 : 21
anchors.verticalCenter: title.verticalCenter
text: qsTr("Avatar Packager")
color: "white"
}
RalewaySemiBold {
id: faq
visible: false
size: 28
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
anchors.rightMargin: 16
anchors.verticalCenter: faq.verticalCenter
text: qsTr("Docs")
color: "white"
}
}