Merge pull request #257 from monich/badge-opacity

Apply opacity to picture and badge as a group
This commit is contained in:
Sebastian Wolf 2021-01-01 14:01:19 +01:00 committed by GitHub
commit f1b14f41ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,15 +33,14 @@ ListItem {
height: contentColumn.height height: contentColumn.height
spacing: Theme.paddingMedium spacing: Theme.paddingMedium
Column { ShaderEffectSource {
id: pictureColumn id: pictureItem
width: contentColumn.height - Theme.paddingSmall width: contentColumn.height - Theme.paddingSmall
height: contentColumn.height - Theme.paddingSmall height: contentColumn.height - Theme.paddingSmall
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
sourceItem: Item {
Item { width: pictureItem.width
width: parent.width height: pictureItem.width
height: parent.width
ProfileThumbnail { ProfileThumbnail {
id: pictureThumbnail id: pictureThumbnail
@ -93,7 +92,7 @@ ListItem {
Column { Column {
id: contentColumn id: contentColumn
width: mainColumn.width - pictureColumn.width - mainRow.spacing width: mainColumn.width - pictureItem.width - mainRow.spacing
spacing: Theme.paddingSmall spacing: Theme.paddingSmall
Row { Row {