Apply press effect to profile thumbnail in chat list
This commit is contained in:
parent
1523d62362
commit
b70a4427e0
2 changed files with 5 additions and 1 deletions
|
@ -9,6 +9,7 @@ PhotoTextsListItem {
|
||||||
id: listItem
|
id: listItem
|
||||||
pictureThumbnail {
|
pictureThumbnail {
|
||||||
photoData: photo_small || ({})
|
photoData: photo_small || ({})
|
||||||
|
highlighted: listItem.highlighted && !listItem.menuOpen
|
||||||
}
|
}
|
||||||
property int ownUserId
|
property int ownUserId
|
||||||
property bool showDraft: !!draft_message_text && draft_message_date > last_message_date
|
property bool showDraft: !!draft_message_text && draft_message_date > last_message_date
|
||||||
|
|
|
@ -22,7 +22,6 @@ import Sailfish.Silica 1.0
|
||||||
import WerkWolf.Fernschreiber 1.0
|
import WerkWolf.Fernschreiber 1.0
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
||||||
id: profileThumbnail
|
id: profileThumbnail
|
||||||
|
|
||||||
property alias photoData: file.fileInformation
|
property alias photoData: file.fileInformation
|
||||||
|
@ -30,6 +29,10 @@ Item {
|
||||||
property int radius: width / 2
|
property int radius: width / 2
|
||||||
property int imageStatus: -1
|
property int imageStatus: -1
|
||||||
property bool optimizeImageSize: true
|
property bool optimizeImageSize: true
|
||||||
|
property bool highlighted
|
||||||
|
|
||||||
|
layer.enabled: highlighted
|
||||||
|
layer.effect: PressEffect { source: profileThumbnail }
|
||||||
|
|
||||||
function getReplacementString() {
|
function getReplacementString() {
|
||||||
if (replacementStringHint.length > 2) {
|
if (replacementStringHint.length > 2) {
|
||||||
|
|
Loading…
Reference in a new issue