ensure active is proper color
For some reason the right value isn't being loaded on dataChanged, so this makes sure to reset the value correctly for now.
This commit is contained in:
parent
0a9c17cdde
commit
bd2002ada2
1 changed files with 3 additions and 1 deletions
|
@ -74,9 +74,11 @@ Item {
|
||||||
target: SlideMod
|
target: SlideMod
|
||||||
function onDataChanged() {
|
function onDataChanged() {
|
||||||
if (active) {
|
if (active) {
|
||||||
|
previewHighlight.color = Kirigami.Theme.highlightColor;
|
||||||
previewSlidesList.currentIndex = index;
|
previewSlidesList.currentIndex = index;
|
||||||
previewSlidesList.positionViewAtIndex(index, ListView.Center);
|
previewSlidesList.positionViewAtIndex(index, ListView.Center);
|
||||||
}
|
} else
|
||||||
|
previewHighlight.color = Kirigami.Theme.backgroundColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue