[SailfishDevel] Align 2 labels with different font.pointSize
Oleg Linkin
maledictusdemagog at gmail.com
Thu Feb 13 13:09:41 UTC 2014
I have 2 labels:
Label {
id: venueNameLabel
anchors.top: parent.top
anchors.left: parent.left
anchors.leftMargin: 10
textFormat: Text.RichText
font.bold: true
text: "<style
type='text/css'>a:link{color:"+Theme.primaryColor+"; text-decoration:
none;} a:visited{color:"+Theme.primaryColor+"}</style> <a href=\"venue\">"
+ venueName + "</a>"
color: delegate.highlighted ? Theme.highlightColor :
Theme.primaryColor
onLinkActivated: {
if (link == "venue") {
console.log ("open venue")
}
}
}
and
Label {
id: venueAddressLabel
anchors.left: venueNameLabel.right
anchors.right: parent.right
anchors.leftMargin: 10
anchors.rightMargin: 10
anchors.baseline: venueNameLabel.baseline
color: delegate.highlighted ? Theme.secondaryHighlightColor
: Theme.secondaryColor
font.pixelSize: Theme.fontSizeTiny
elide: Text.ElideRight
text: venueAddress
}
and result: http://wstaw.org/m/2014/02/13/plasma-desktopmj2631.png
Is it possible to align them more better?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140213/ffc0c180/attachment.html>
More information about the Devel
mailing list