diff --git a/interface/resources/qml/hifi/NameCard.qml b/interface/resources/qml/hifi/NameCard.qml index b5bd0a88f8..10afee2e6a 100644 --- a/interface/resources/qml/hifi/NameCard.qml +++ b/interface/resources/qml/hifi/NameCard.qml @@ -34,6 +34,7 @@ Row { property int usernameTextHeight: 12 property real audioLevel: 0.0 property bool isMyCard: false + property bool selected: false /* User image commented out for now - will probably be re-introduced later. Column { @@ -143,12 +144,12 @@ Row { Item { width: parent.width height: 3 - visible: !isMyCard + visible: !isMyCard && selected } // Per-Avatar Gain Slider Slider { id: gainSlider - visible: !isMyCard + visible: !isMyCard && selected width: parent.width height: 18 value: pal.gainSliderValueDB[uuid] ? pal.gainSliderValueDB[uuid] : 0.0 diff --git a/interface/resources/qml/hifi/Pal.qml b/interface/resources/qml/hifi/Pal.qml index 0b093ed430..052c953316 100644 --- a/interface/resources/qml/hifi/Pal.qml +++ b/interface/resources/qml/hifi/Pal.qml @@ -25,7 +25,7 @@ Rectangle { color: "#E3E3E3" // Properties property int myCardHeight: 90 - property int rowHeight: 80 + property int rowHeight: 70 property int actionButtonWidth: 75 property int nameCardWidth: palContainer.width - actionButtonWidth*(iAmAdmin ? 4 : 2) - 4 - hifi.dimensions.scrollbarBackgroundWidth property var myData: ({displayName: "", userName: "", audioLevel: 0.0}) // valid dummy until set @@ -190,7 +190,7 @@ Rectangle { // This Rectangle refers to each Row in the table. rowDelegate: Rectangle { // The only way I know to specify a row height. // Size - height: rowHeight + height: rowHeight + (styleData.selected ? 20 : 0) color: styleData.selected ? hifi.colors.orangeHighlight : styleData.alternate ? hifi.colors.tableRowLightEven : hifi.colors.tableRowLightOdd @@ -211,6 +211,7 @@ Rectangle { audioLevel: model && model.audioLevel visible: !isCheckBox && !isButton uuid: model && model.sessionId + selected: styleData.selected // Size width: nameCardWidth height: parent.height