Tweak style for like/share notifications of your own posts

This commit is contained in:
Christian Muehlhaeuser 2019-05-06 20:20:49 +02:00
parent 0b6e71aa8f
commit 6697e27bab
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E

View file

@ -42,7 +42,7 @@ ColumnLayout {
Label {
font.pointSize: 10
text: qsTr("%1 shared").arg(actorname)
opacity: 0.3
opacity: (accountBridge.username == author && (like || forward)) ? 0.8 : 0.3
}
}
RowLayout {
@ -59,7 +59,7 @@ ColumnLayout {
Label {
font.pointSize: 10
text: qsTr("%1 liked").arg(actorname)
opacity: 0.3
opacity: (accountBridge.username == author && (like || forward)) ? 0.8 : 0.3
}
}
@ -99,6 +99,7 @@ ColumnLayout {
Layout.fillWidth: true
Layout.maximumWidth: implicitWidth + 1
elide: Text.ElideRight
opacity: (accountBridge.username == author && (like || forward)) ? 0.4 : 1.0
}
Label {
// anchors.bottom: parent.bottom
@ -141,6 +142,7 @@ ColumnLayout {
font.pointSize: 11
Layout.fillWidth: true
wrapMode: Text.WordWrap
opacity: (accountBridge.username == author && (like || forward)) ? 0.4 : 1.0
MouseArea {
anchors.fill: parent