mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-24 09:25:33 +02:00
theme: reload cached image on theme change
Change-Id: Idf683c3c68c22889fb3e605112167930f2729cd8
This commit is contained in:
parent
03efee4c14
commit
37065cb7d6
1 changed files with 8 additions and 0 deletions
|
@ -35,6 +35,14 @@ Item {
|
|||
property int imageFillMode: 0
|
||||
property alias image: image
|
||||
|
||||
// On darkTheme changed, reload the image
|
||||
Connections {
|
||||
target: JamiTheme
|
||||
function onDarkThemeChanged() {
|
||||
updateImageSource(downloadUrl, localPath, defaultImage);
|
||||
}
|
||||
}
|
||||
|
||||
AnimatedImage {
|
||||
id: image
|
||||
objectName: "image"
|
||||
|
|
Loading…
Add table
Reference in a new issue