Minor layout changes

This commit is contained in:
Zach Fox 2017-03-30 14:08:03 -07:00
parent 0edbf1fbd9
commit c24b8b47a9
2 changed files with 7 additions and 6 deletions

View file

@ -316,16 +316,16 @@ Item {
visible: thisNameCard.userName !== "";
// Size
width: parent.width
height: pal.activeTab == "nearbyTab" || isMyCard ? usernameTextPixelSize + 4 : displayNameTextPixelSize + 4
height: pal.activeTab == "nearbyTab" || isMyCard ? usernameTextPixelSize + 4 : parent.height;
// Anchors
anchors.top: isMyCard ? myDisplayName.bottom : undefined;
anchors.bottom: !isMyCard ? avatarImage.bottom : undefined;
anchors.top: isMyCard ? myDisplayName.bottom : (pal.activeTab == "nearbyTab" ? displayNameContainer.bottom : parent.top);
anchors.left: avatarImage.right;
anchors.leftMargin: avatarImage.visible ? 5 : 0;
anchors.rightMargin: 5;
// Text Size
size: pal.activeTab == "nearbyTab" || isMyCard ? usernameTextPixelSize : displayNameTextPixelSize;
// Text Positioning
verticalAlignment: Text.AlignBottom
verticalAlignment: Text.AlignVCenter;
// Style
color: hifi.colors.blueAccent;
MouseArea {

View file

@ -850,7 +850,7 @@ Rectangle {
}
// LOCATION data
FiraSansSemiBold {
FiraSansRegular {
id: connectionsLocationData
// Properties
visible: styleData.role === "placeName";
@ -883,7 +883,7 @@ Rectangle {
// "Friends" checkbox
HifiControlsUit.CheckBox {
id: friendsCheckBox;
visible: styleData.role === "friends";
visible: styleData.role === "friends" && model.userName !== myData.userName;
anchors.centerIn: parent;
checked: model ? (model["connection"] === "friend" ? true : false) : false;
boxSize: 24;
@ -892,6 +892,7 @@ Rectangle {
connectionsUserModel.setProperty(model.userIndex, styleData.role, newValue);
connectionsUserModelData[model.userIndex][styleData.role] = newValue; // Defensive programming
// Insert line here about actually taking the friend/unfriend action
//pal.sendToScript({method: 'addFriend', params: model.userName});
// Also insert line here about logging the activity, similar to the commented line below
//UserActivityLogger["palAction"](newValue ? styleData.role : "un-" + styleData.role, model.sessionId);