fix(@desktop/wallet): adjust InformationTag sizes to design

This commit is contained in:
Dario Gabriel Lipicar 2022-11-29 17:12:07 -03:00 committed by dlipicar
parent bd986a5b6b
commit 6f906ff90a
1 changed files with 9 additions and 9 deletions

View File

@ -21,7 +21,7 @@ Control {
background: Rectangle {
id: controlBackground
implicitWidth: 66
implicitHeight: 32
implicitHeight: 26
color: "transparent"
border.width: 1
border.color: Theme.palette.baseColor2
@ -34,22 +34,22 @@ Control {
Image {
id: image
Layout.alignment: Qt.AlignVCenter
Layout.maximumWidth: visible ? 22 : 0
Layout.maximumHeight: visible ? 22 : 0
Layout.maximumWidth: visible ? 16 : 0
Layout.maximumHeight: visible ? 16 : 0
visible: image.source !== ""
}
StatusIcon {
id: iconAsset
Layout.alignment: Qt.AlignVCenter
Layout.maximumWidth: visible ? 22 : 0
Layout.maximumHeight: visible ? 22 : 0
Layout.maximumWidth: visible ? 16 : 0
Layout.maximumHeight: visible ? 16 : 0
visible: iconAsset.icon !== ""
}
StatusBaseText {
id: tagPrimaryLabel
Layout.alignment: Qt.AlignVCenter
font.pixelSize: Style.current.primaryTextFontSize
font.weight: Font.Medium
font.pixelSize: Style.current.tertiaryTextFontSize
font.weight: Font.Normal
color: Theme.palette.directColor1
visible: text !== ""
}
@ -57,8 +57,8 @@ Control {
id: tagSecondaryLabel
Layout.alignment: Qt.AlignVCenter
Layout.maximumWidth: 100
font.pixelSize: Style.current.primaryTextFontSize
font.weight: Font.Medium
font.pixelSize: Style.current.tertiaryTextFontSize
font.weight: Font.Normal
color: Theme.palette.baseColor1
visible: text !== ""
elide: Text.ElideMiddle