mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
only show Audio menu title when appropriate
This commit is contained in:
parent
20c0dac8e8
commit
e7da007acd
2 changed files with 17 additions and 1 deletions
|
@ -31,11 +31,27 @@ Rectangle {
|
|||
|
||||
color: hifi.colors.baseGray;
|
||||
|
||||
// only show the title if loaded through a "loader"
|
||||
function showTitle() {
|
||||
return audio.parent.objectName == "loader";
|
||||
}
|
||||
|
||||
Column {
|
||||
y: 16 // padding does not work
|
||||
spacing: 16
|
||||
width: parent.width
|
||||
|
||||
RalewayRegular {
|
||||
x: 16 // padding does not work
|
||||
size: 16
|
||||
color: "white"
|
||||
text: audio.title
|
||||
|
||||
visible: audio.showTitle()
|
||||
}
|
||||
|
||||
Separator { visible: audio.showTitle() }
|
||||
|
||||
Grid {
|
||||
columns: 2
|
||||
x: 16 // padding does not work
|
||||
|
|
|
@ -46,7 +46,7 @@ function onClicked() {
|
|||
Entities.editEntity(entity, { textures: JSON.stringify({ "tex.close": HOME_BUTTON_TEXTURE }) });
|
||||
shouldActivateButton = true;
|
||||
shouldActivateButton = true;
|
||||
tablet.loadQMLSource("../dialogs/Audio.qml");
|
||||
tablet.loadQMLSource("../audio/Audio.qml");
|
||||
onAudioScreen = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue