mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 22:16:39 +02:00
Merge branch 'PAL_v2' of https://github.com/highfidelity/hifi into dk/newMessageStuff
This commit is contained in:
commit
9daa94ce73
2 changed files with 13 additions and 14 deletions
|
@ -91,7 +91,7 @@ Item {
|
||||||
enabled: selected || isMyCard;
|
enabled: selected || isMyCard;
|
||||||
hoverEnabled: enabled
|
hoverEnabled: enabled
|
||||||
onClicked: {
|
onClicked: {
|
||||||
userInfoViewer.url = "http://highfidelity.com/users/" + (pal.activeTab == "nearbyTab" ? userName : displayName); // Connections tab puts username in "displayname" field
|
userInfoViewer.url = "http://highfidelity.com/users/" + userName;
|
||||||
userInfoViewer.visible = true;
|
userInfoViewer.visible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -202,13 +202,12 @@ Item {
|
||||||
// DisplayName container for others' cards
|
// DisplayName container for others' cards
|
||||||
Item {
|
Item {
|
||||||
id: displayNameContainer
|
id: displayNameContainer
|
||||||
visible: !isMyCard
|
visible: !isMyCard && pal.activeTab !== "connectionsTab"
|
||||||
// Size
|
// Size
|
||||||
width: parent.width - anchors.leftMargin - avatarImage.width - anchors.leftMargin;
|
width: parent.width - anchors.leftMargin - avatarImage.width - anchors.leftMargin;
|
||||||
height: displayNameTextPixelSize + 4
|
height: displayNameTextPixelSize + 4
|
||||||
// Anchors
|
// Anchors
|
||||||
anchors.top: pal.activeTab == "connectionsTab" ? undefined : avatarImage.top;
|
anchors.top: avatarImage.top;
|
||||||
anchors.bottom: pal.activeTab == "connectionsTab" ? avatarImage.bottom : undefined;
|
|
||||||
anchors.left: avatarImage.right
|
anchors.left: avatarImage.right
|
||||||
anchors.leftMargin: avatarImage.visible ? 5 : 0;
|
anchors.leftMargin: avatarImage.visible ? 5 : 0;
|
||||||
// DisplayName Text for others' cards
|
// DisplayName Text for others' cards
|
||||||
|
@ -227,8 +226,7 @@ Item {
|
||||||
// Text Positioning
|
// Text Positioning
|
||||||
verticalAlignment: Text.AlignTop
|
verticalAlignment: Text.AlignTop
|
||||||
// Style
|
// Style
|
||||||
color: (pal.activeTab == "nearbyTab" && (displayNameTextMouseArea.containsMouse || userNameTextMouseArea.containsMouse))
|
color: (displayNameTextMouseArea.containsMouse || userNameTextMouseArea.containsMouse) ? hifi.colors.blueHighlight : hifi.colors.darkGray;
|
||||||
? hifi.colors.blueHighlight : (pal.activeTab == "nearbyTab" ? hifi.colors.darkGray : hifi.colors.greenShadow);
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: displayNameTextMouseArea;
|
id: displayNameTextMouseArea;
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -297,21 +295,22 @@ Item {
|
||||||
// Properties
|
// Properties
|
||||||
text: thisNameCard.userName
|
text: thisNameCard.userName
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
visible: thisNameCard.displayName
|
visible: thisNameCard.userName !== "";
|
||||||
// Size
|
// Size
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: usernameTextPixelSize + 4
|
height: pal.activeTab == "nearbyTab" || isMyCard ? usernameTextPixelSize + 4 : displayNameTextPixelSize + 4
|
||||||
// Anchors
|
// Anchors
|
||||||
anchors.top: isMyCard ? myDisplayName.bottom : undefined;
|
anchors.top: isMyCard ? myDisplayName.bottom : undefined;
|
||||||
anchors.bottom: isMyCard ? undefined : avatarImage.bottom
|
anchors.bottom: !isMyCard ? avatarImage.bottom : undefined;
|
||||||
anchors.left: avatarImage.right;
|
anchors.left: avatarImage.right;
|
||||||
anchors.leftMargin: avatarImage.visible ? 5 : 0;
|
anchors.leftMargin: avatarImage.visible ? 5 : 0;
|
||||||
// Text Size
|
// Text Size
|
||||||
size: usernameTextPixelSize;
|
size: pal.activeTab == "nearbyTab" || isMyCard ? usernameTextPixelSize : displayNameTextPixelSize;
|
||||||
// Text Positioning
|
// Text Positioning
|
||||||
verticalAlignment: Text.AlignBottom
|
verticalAlignment: Text.AlignBottom
|
||||||
// Style
|
// Style
|
||||||
color: (pal.activeTab == "nearbyTab" && (displayNameTextMouseArea.containsMouse || userNameTextMouseArea.containsMouse)) ? hifi.colors.blueHighlight : hifi.colors.greenShadow;
|
color: (pal.activeTab == "nearbyTab" && (displayNameTextMouseArea.containsMouse || userNameTextMouseArea.containsMouse))
|
||||||
|
? hifi.colors.blueHighlight : hifi.colors.greenShadow;
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: userNameTextMouseArea;
|
id: userNameTextMouseArea;
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
@ -860,8 +860,8 @@ Rectangle {
|
||||||
visible: styleData.role === "userName";
|
visible: styleData.role === "userName";
|
||||||
profileUrl: (model && model.profileUrl) || "";
|
profileUrl: (model && model.profileUrl) || "";
|
||||||
imageMaskColor: rowColor(styleData.selected, styleData.row % 2);
|
imageMaskColor: rowColor(styleData.selected, styleData.row % 2);
|
||||||
displayName: model ? model.userName : "";
|
displayName: "";
|
||||||
userName: "";
|
userName: model ? model.userName : "";
|
||||||
connectionStatus : model ? model.connection : "";
|
connectionStatus : model ? model.connection : "";
|
||||||
selected: styleData.selected;
|
selected: styleData.selected;
|
||||||
// Size
|
// Size
|
||||||
|
@ -1001,7 +1001,7 @@ Rectangle {
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter;
|
horizontalAlignment: Text.AlignHCenter;
|
||||||
// Style
|
// Style
|
||||||
color: closeButtonMouseArea.containsMouse ? hifi.colors.lightGray : hifi.colors.darkGray;
|
color: closeButtonMouseArea.containsMouse ? hifi.colors.redAccent : hifi.colors.redHighlight;
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: closeButtonMouseArea;
|
id: closeButtonMouseArea;
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
Loading…
Reference in a new issue