forked from Shinonome/dots-hyprland
add listview add fade anim
This commit is contained in:
@@ -125,6 +125,7 @@ Item {
|
|||||||
ListView { // Message list
|
ListView { // Message list
|
||||||
id: messageListView
|
id: messageListView
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
spacing: 10
|
||||||
|
|
||||||
property int lastResponseLength: 0
|
property int lastResponseLength: 0
|
||||||
|
|
||||||
@@ -147,7 +148,16 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
spacing: 10
|
add: Transition {
|
||||||
|
NumberAnimation {
|
||||||
|
property: "opacity"
|
||||||
|
from: 0; to: 1
|
||||||
|
duration: Appearance.animation.elementMoveEnter.duration
|
||||||
|
easing.type: Appearance.animation.elementMoveEnter.type
|
||||||
|
easing.bezierCurve: Appearance.animation.elementMoveEnter.bezierCurve
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
model: ScriptModel {
|
model: ScriptModel {
|
||||||
values: root.messages
|
values: root.messages
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,6 +151,7 @@ Item {
|
|||||||
ListView { // Booru responses
|
ListView { // Booru responses
|
||||||
id: booruResponseListView
|
id: booruResponseListView
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
spacing: 10
|
||||||
|
|
||||||
property int lastResponseLength: 0
|
property int lastResponseLength: 0
|
||||||
|
|
||||||
@@ -173,7 +174,16 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
spacing: 10
|
add: Transition {
|
||||||
|
NumberAnimation {
|
||||||
|
property: "opacity"
|
||||||
|
from: 0; to: 1
|
||||||
|
duration: Appearance.animation.elementMoveEnter.duration
|
||||||
|
easing.type: Appearance.animation.elementMoveEnter.type
|
||||||
|
easing.bezierCurve: Appearance.animation.elementMoveEnter.bezierCurve
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
model: ScriptModel {
|
model: ScriptModel {
|
||||||
values: {
|
values: {
|
||||||
if(root.responses.length > booruResponseListView.lastResponseLength) {
|
if(root.responses.length > booruResponseListView.lastResponseLength) {
|
||||||
|
|||||||
Reference in New Issue
Block a user