mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 03:28:48 +02:00
Update avatar project rename to have audio and highlighting
This commit is contained in:
parent
c13badcbc8
commit
7953507cb8
2 changed files with 25 additions and 11 deletions
|
@ -11,15 +11,12 @@ import "../../dialogs"
|
||||||
import "../avatarapp" 1.0 as AvatarApp
|
import "../avatarapp" 1.0 as AvatarApp
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
id: windowContent
|
||||||
|
|
||||||
HifiConstants { id: hifi }
|
HifiConstants { id: hifi }
|
||||||
|
|
||||||
property alias desktopObject: avatarPackager.desktopObject
|
property alias desktopObject: avatarPackager.desktopObject
|
||||||
|
|
||||||
id: windowContent
|
|
||||||
// height: pane ? pane.height : parent.width
|
|
||||||
// width: pane ? pane.width : parent.width
|
|
||||||
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ ShadowRectangle {
|
||||||
height: 74
|
height: 74
|
||||||
color: "#252525"
|
color: "#252525"
|
||||||
|
|
||||||
property alias title: title.text
|
property string title: qsTr("Avatar Packager")
|
||||||
property alias docsEnabled: docs.visible
|
property alias docsEnabled: docs.visible
|
||||||
property bool backButtonVisible: true // If false, is not visible and does not take up space
|
property bool backButtonVisible: true // If false, is not visible and does not take up space
|
||||||
property bool backButtonEnabled: true // If false, is not visible but does not affect space
|
property bool backButtonEnabled: true // If false, is not visible but does not affect space
|
||||||
|
@ -43,6 +43,7 @@ ShadowRectangle {
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
id: titleArea
|
id: titleArea
|
||||||
|
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.left: root.backButtonVisible ? back.right : parent.left
|
anchors.left: root.backButtonVisible ? back.right : parent.left
|
||||||
|
@ -57,15 +58,31 @@ ShadowRectangle {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
RalewaySemiBold {
|
Item {
|
||||||
id: title
|
id: title
|
||||||
size: 28
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
text: qsTr("Avatar Packager")
|
|
||||||
color: "white"
|
|
||||||
|
|
||||||
MouseArea {
|
RalewaySemiBold {
|
||||||
|
id: titleNotRenameable
|
||||||
|
|
||||||
|
visible: !root.canRename
|
||||||
|
|
||||||
|
size: 28
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
text: root.title
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
|
|
||||||
|
RalewayButton {
|
||||||
|
id: titleRenameable
|
||||||
|
|
||||||
|
visible: root.canRename
|
||||||
|
enabled: root.canRename
|
||||||
|
|
||||||
|
size: 28
|
||||||
|
anchors.fill: parent
|
||||||
|
text: root.title
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (!root.canRename || AvatarPackagerCore.currentAvatarProject === null) {
|
if (!root.canRename || AvatarPackagerCore.currentAvatarProject === null) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue