mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:57:13 +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;
|
color: hifi.colors.baseGray;
|
||||||
|
|
||||||
|
// only show the title if loaded through a "loader"
|
||||||
|
function showTitle() {
|
||||||
|
return audio.parent.objectName == "loader";
|
||||||
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
y: 16 // padding does not work
|
y: 16 // padding does not work
|
||||||
spacing: 16
|
spacing: 16
|
||||||
width: parent.width
|
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 {
|
Grid {
|
||||||
columns: 2
|
columns: 2
|
||||||
x: 16 // padding does not work
|
x: 16 // padding does not work
|
||||||
|
|
|
@ -46,7 +46,7 @@ function onClicked() {
|
||||||
Entities.editEntity(entity, { textures: JSON.stringify({ "tex.close": HOME_BUTTON_TEXTURE }) });
|
Entities.editEntity(entity, { textures: JSON.stringify({ "tex.close": HOME_BUTTON_TEXTURE }) });
|
||||||
shouldActivateButton = true;
|
shouldActivateButton = true;
|
||||||
shouldActivateButton = true;
|
shouldActivateButton = true;
|
||||||
tablet.loadQMLSource("../dialogs/Audio.qml");
|
tablet.loadQMLSource("../audio/Audio.qml");
|
||||||
onAudioScreen = true;
|
onAudioScreen = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue