fix glitching images on buttons

This commit is contained in:
gaelle 2026-03-03 08:40:49 +01:00
parent 270711eff7
commit a7022bc0cc
2 changed files with 2 additions and 1 deletions

View file

@ -137,7 +137,6 @@ Control.TabBar {
}
Text {
id: buttonText
visible: buttonIcon.isImageReady
text: modelData.label
font {
weight: mainItem.currentIndex === index

View file

@ -17,11 +17,13 @@ Item {
property bool useColor: colorizationColor != undefined
property bool shadowEnabled: false
property bool isImageReady: false
property bool retainWhileLoading: true
Image {
id: image
visible: !effect2.effectEnabled
source: mainItem.imageSource
fillMode: mainItem.fillMode
retainWhileLoading: mainItem.retainWhileLoading
sourceSize.width: width
sourceSize.height: height
width: mainItem.imageWidth