Improve look of timeline
This commit is contained in:
@@ -37,7 +37,7 @@ Image {
|
|||||||
maskSource: Rectangle {
|
maskSource: Rectangle {
|
||||||
width: img.width
|
width: img.width
|
||||||
height: img.height
|
height: img.height
|
||||||
radius: 18
|
radius: 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ Image {
|
|||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
radius: height / 2
|
radius: 2
|
||||||
color: "black"
|
color: "black"
|
||||||
opacity: 0.3
|
opacity: 0.3
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,9 +33,10 @@ RowLayout {
|
|||||||
|
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
spacing: Kirigami.Units.largeSpacing
|
spacing: Kirigami.Units.smallSpacing
|
||||||
Layout.leftMargin: Kirigami.Units.smallSpacing
|
Layout.leftMargin: Kirigami.Units.largeSpacing
|
||||||
Layout.rightMargin: Kirigami.Units.smallSpacing
|
Layout.rightMargin: Kirigami.Units.smallSpacing
|
||||||
|
Layout.topMargin: showAuthor ? Kirigami.Units.smallSpacing : 0
|
||||||
|
|
||||||
Kirigami.Avatar {
|
Kirigami.Avatar {
|
||||||
Layout.minimumWidth: Kirigami.Units.iconSizes.medium
|
Layout.minimumWidth: Kirigami.Units.iconSizes.medium
|
||||||
@@ -65,7 +66,6 @@ RowLayout {
|
|||||||
Item {
|
Item {
|
||||||
Layout.minimumWidth: Kirigami.Units.iconSizes.medium
|
Layout.minimumWidth: Kirigami.Units.iconSizes.medium
|
||||||
Layout.preferredHeight: 1
|
Layout.preferredHeight: 1
|
||||||
|
|
||||||
visible: !showAuthor
|
visible: !showAuthor
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,12 +73,14 @@ RowLayout {
|
|||||||
QQC2.Control {
|
QQC2.Control {
|
||||||
id: controlContainer
|
id: controlContainer
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
topPadding: 0
|
||||||
contentItem: ColumnLayout {
|
contentItem: ColumnLayout {
|
||||||
id: column
|
id: column
|
||||||
spacing: Kirigami.Units.smallSpacing
|
spacing: Kirigami.Units.smallSpacing
|
||||||
|
|
||||||
QQC2.Label {
|
QQC2.Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
topInset: 0
|
||||||
|
|
||||||
visible: showAuthor
|
visible: showAuthor
|
||||||
|
|
||||||
@@ -121,12 +123,9 @@ RowLayout {
|
|||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
QQC2.Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
text: replyVisible ? reply.display : ""
|
text: replyVisible ? reply.display : ""
|
||||||
|
|
||||||
color: Kirigami.Theme.textColor
|
|
||||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user