diff --git a/interface/resources/qml/hifi/audio/Audio.qml b/interface/resources/qml/hifi/audio/Audio.qml index 47022b5a0c..5b1cda308d 100644 --- a/interface/resources/qml/hifi/audio/Audio.qml +++ b/interface/resources/qml/hifi/audio/Audio.qml @@ -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 diff --git a/scripts/system/audio.js b/scripts/system/audio.js index af85b56f41..cb9589ae9e 100644 --- a/scripts/system/audio.js +++ b/scripts/system/audio.js @@ -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; } }