overte-thingvellir/interface/resources/qml/AvatarInputsBar.qml
2019-03-22 14:16:27 -07:00

49 lines
1.3 KiB
QML

//
// Created by Bradley Austin Davis on 2015/06/19
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
import Hifi 1.0 as Hifi
import QtQuick 2.4
import QtGraphicalEffects 1.0
import "./hifi/audio" as HifiAudio
Item {
id: root;
objectName: "AvatarInputsBar"
property int modality: Qt.NonModal
readonly property bool ignoreRadiusEnabled: AvatarInputs.ignoreRadiusEnabled
width: audio.width;
height: audio.height;
x: 10; y: 5;
readonly property bool shouldReposition: true;
HifiAudio.MicBarApplication {
id: audio;
visible: AvatarInputs.showAudioTools;
standalone: true;
dragTarget: parent;
}
Image {
id: bubbleIcon
source: "../icons/tablet-icons/bubble-i.svg";
width: 28;
height: 28;
anchors {
left: root.right
top: root.top
topMargin: (root.height - bubbleIcon.height) / 2
}
}
ColorOverlay {
id: bubbleIconOverlay
anchors.fill: bubbleIcon
source: bubbleIcon
color: AvatarInputs.ignoreRadiusEnabled ? "#1FC6A6" : "#FFFFFF";
opacity: 0.3
}
}