diff --git a/assets/PostItem.qml b/assets/PostItem.qml index 818eb00..12c4de5 100644 --- a/assets/PostItem.qml +++ b/assets/PostItem.qml @@ -40,11 +40,12 @@ Container { orientation: LayoutOrientation.LeftToRight } Container { + background: (theme === VisualStyle.Bright) ? Color.create("#e9e9e9") : Color.create("#282828") WebImageView { id: avatar url: ListItemData.user.content.avatar_image.link - maxWidth: 100.0 - maxHeight: avatar.maxWidth + maxWidth: ui.du(12) + maxHeight: ui.du(12) //imageSource: "asset:///icons/laughing_man.png" } } @@ -60,7 +61,14 @@ Container { Container { Label { id: username - text: ListItemData.user.username + text: "" + ListItemData.user.username + "" + activeTextHandler: ActiveTextHandler { + onTriggered: { + console.log("duh: " + ListItemData.user.username) + postitem.ListItem.view.viewProfile(ListItemData.user) + } + } + textFormat: TextFormat.Html } } }