uiux(Communities): fine-tune header button component to align with designs
This commit is contained in:
parent
bf67c941ff
commit
b76468e675
|
@ -47,27 +47,30 @@ Button {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Item {
|
||||||
StyledText {
|
height: childrenRect.height
|
||||||
id: communityName
|
width: childrenRect.width
|
||||||
text: chatsModel.communities.activeCommunity.name
|
|
||||||
anchors.left: communityImage.right
|
anchors.left: communityImage.right
|
||||||
anchors.leftMargin: Style.current.halfPadding
|
anchors.leftMargin: Style.current.halfPadding
|
||||||
anchors.top: parent.top
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
font.pixelSize: 15
|
|
||||||
font.weight: Font.Medium
|
|
||||||
}
|
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: communityNbMember
|
id: communityName
|
||||||
text: chatsModel.communities.activeCommunity.nbMembers === 1 ?
|
text: chatsModel.communities.activeCommunity.name
|
||||||
qsTr("1 member") :
|
font.pixelSize: 15
|
||||||
qsTr("%1 members").arg(chatsModel.communities.activeCommunity.nbMembers)
|
font.weight: Font.Bold
|
||||||
anchors.left: communityName.left
|
}
|
||||||
anchors.top: communityName.bottom
|
|
||||||
font.pixelSize: 12
|
StyledText {
|
||||||
font.weight: Font.Thin
|
id: communityNbMember
|
||||||
color: Style.current.secondaryText
|
text: chatsModel.communities.activeCommunity.nbMembers === 1 ?
|
||||||
|
qsTr("1 member") :
|
||||||
|
qsTr("%1 members").arg(chatsModel.communities.activeCommunity.nbMembers)
|
||||||
|
anchors.left: communityName.left
|
||||||
|
anchors.top: communityName.bottom
|
||||||
|
font.pixelSize: 14
|
||||||
|
color: Style.current.secondaryText
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue