Merge branch 'remove-animation' into 'main'
Remove animation See merge request mx-moment/moment!17
This commit is contained in:
@@ -45,8 +45,6 @@ HTile {
|
||||
root.colorName ?
|
||||
utils.nameColor(model.display_name || model.id.substring(1)) :
|
||||
theme.chat.userAutoCompletion.displayNames
|
||||
|
||||
Behavior on color { HColorAnimation {} }
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -133,9 +133,6 @@ HListView {
|
||||
replacementEnd = textArea.cursorPosition
|
||||
}
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
Behavior on implicitHeight { HNumberAnimation {} }
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
z: -1
|
||||
|
@@ -98,8 +98,6 @@ Item {
|
||||
|
||||
source: ready ? "ChatPage.qml" : ""
|
||||
|
||||
Behavior on anchors.rightMargin { HNumberAnimation {} }
|
||||
|
||||
HLoader {
|
||||
anchors.centerIn: parent
|
||||
width: 96 * theme.uiScale
|
||||
@@ -108,8 +106,6 @@ Item {
|
||||
source: "../../Base/HBusyIndicator.qml"
|
||||
active: ready ? 0 : longLoading ? 1 : 0
|
||||
opacity: active ? 1 : 0
|
||||
|
||||
Behavior on opacity { HNumberAnimation { factor: 2 } }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,26 +116,8 @@ Item {
|
||||
sourceComponent: RoomPane {
|
||||
id: roomPane
|
||||
|
||||
readonly property alias appearAnimation: appearAnimation
|
||||
|
||||
referenceSizeParent: chat
|
||||
maximumSize: chat.width - theme.minimumSupportedWidth * 1.5
|
||||
|
||||
HNumberAnimation {
|
||||
id: appearAnimation
|
||||
target: roomPane.contentTranslation
|
||||
property: "x"
|
||||
from: -chat.width + roomPane.width
|
||||
to: 0
|
||||
easing.type: Easing.OutCirc
|
||||
factor: 2
|
||||
running: true
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: pageLoader
|
||||
onRecycled: roomPane.appearAnimation.restart()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -102,8 +102,6 @@ HColumnPage {
|
||||
Layout.minimumHeight: implicitHeight
|
||||
Layout.preferredHeight: implicitHeight * transferCount
|
||||
Layout.maximumHeight: chatPage.height / 6
|
||||
|
||||
Behavior on Layout.preferredHeight { HNumberAnimation {} }
|
||||
}
|
||||
|
||||
UserAutoCompletion {
|
||||
|
@@ -125,8 +125,6 @@ Rectangle {
|
||||
|
||||
Layout.fillWidth: false
|
||||
Layout.fillHeight: true
|
||||
|
||||
Behavior on implicitWidth { HNumberAnimation {} }
|
||||
}
|
||||
|
||||
CancelButton {
|
||||
|
@@ -30,8 +30,6 @@ HColumnLayout {
|
||||
)
|
||||
}
|
||||
|
||||
Behavior on height { HNumberAnimation {} }
|
||||
|
||||
DelegateTransitionFixer {}
|
||||
|
||||
HRowLayout {
|
||||
|
@@ -19,8 +19,6 @@ Rectangle {
|
||||
opacity: implicitHeight ? 1 : 0
|
||||
clip: true
|
||||
|
||||
Behavior on implicitHeight { HNumberAnimation {} }
|
||||
|
||||
HListView {
|
||||
id: transferList
|
||||
anchors.fill: parent
|
||||
|
@@ -14,8 +14,6 @@ Rectangle {
|
||||
implicitHeight: label.text ? rowLayout.height : 0
|
||||
opacity: implicitHeight ? 1 : 0
|
||||
|
||||
Behavior on implicitHeight { HNumberAnimation {} }
|
||||
|
||||
HRowLayout {
|
||||
id: rowLayout
|
||||
width: parent.width
|
||||
|
@@ -12,6 +12,4 @@ HButton {
|
||||
|
||||
Layout.preferredWidth: show ? implicitWidth : 0
|
||||
Layout.fillHeight: true
|
||||
|
||||
Behavior on Layout.preferredWidth { HNumberAnimation {} }
|
||||
}
|
||||
|
@@ -55,8 +55,6 @@ HTile {
|
||||
(model.display_name || model.id.substring(1))
|
||||
) :
|
||||
theme.chat.roomPane.listView.member.name
|
||||
|
||||
Behavior on color { HColorAnimation {} }
|
||||
}
|
||||
|
||||
TitleRightInfoLabel {
|
||||
@@ -197,9 +195,6 @@ HTile {
|
||||
Component.onDestruction:
|
||||
if (getPresenceFutureId) py.cancelCoro(getPresenceFutureId)
|
||||
|
||||
Behavior on contentOpacity { HNumberAnimation {} }
|
||||
Behavior on spacing { HNumberAnimation {} }
|
||||
|
||||
Binding on spacing {
|
||||
value: (roomPane.minimumSize - avatar.width) / 2
|
||||
when: avatar && roomPane.width < avatar.width + theme.spacing * 2
|
||||
|
@@ -237,8 +237,6 @@ HListView {
|
||||
Layout.preferredHeight: implicitHeight * scale
|
||||
Layout.topMargin: -theme.spacing
|
||||
|
||||
Behavior on scale { HNumberAnimation {} }
|
||||
|
||||
HSpacer {}
|
||||
|
||||
ApplyButton {
|
||||
|
@@ -141,8 +141,6 @@ HColumnLayout {
|
||||
if (window.settings.RoomList.escape_clears_filter)
|
||||
text = ""
|
||||
}
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
}
|
||||
|
||||
HColumnLayout {
|
||||
@@ -192,8 +190,6 @@ HColumnLayout {
|
||||
filterField.width < 32 * theme.uiScale ?
|
||||
filterField.implicitHeight :
|
||||
0
|
||||
|
||||
Behavior on Layout.preferredHeight { HNumberAnimation {} }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -313,8 +313,6 @@ HRowLayout {
|
||||
|
||||
theme.chat.message.background
|
||||
|
||||
Behavior on color { HColorAnimation {} }
|
||||
|
||||
Rectangle {
|
||||
visible: model.event_type === "RoomMessageNotice"
|
||||
// y: parent.height / 2 - height / 2
|
||||
|
@@ -63,6 +63,4 @@ HTile {
|
||||
value: theme.chat.message.checkedBackground
|
||||
when: eventDelegate.checked
|
||||
}
|
||||
|
||||
Behavior on backgroundColor { HColorAnimation {} }
|
||||
}
|
||||
|
@@ -133,8 +133,6 @@ HMxcImage {
|
||||
textFormat: Text.StyledText
|
||||
opacity: hover.hovered || eventDelegate.isFocused ? 0 : 1
|
||||
visible: opacity > 0
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
}
|
||||
|
||||
EventImageTextBubble {
|
||||
@@ -145,8 +143,6 @@ HMxcImage {
|
||||
textFormat: Text.RichText
|
||||
opacity: hover.hovered || eventDelegate.isFocused ? 0 : 1
|
||||
visible: opacity > 0
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
@@ -157,7 +153,5 @@ HMxcImage {
|
||||
eventDelegate.checked ?
|
||||
theme.chat.message.thumbnailCheckedOverlayOpacity :
|
||||
0
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
}
|
||||
}
|
||||
|
@@ -11,8 +11,6 @@ import "../../../PythonBridge"
|
||||
import "../../../ShortcutBundles"
|
||||
|
||||
Rectangle {
|
||||
readonly property var modelSyncId:
|
||||
[chat.userRoomId[0], chat.userRoomId[1], "events"]
|
||||
|
||||
readonly property alias eventList: eventList
|
||||
readonly property alias contextMenu: contextMenu
|
||||
@@ -508,6 +506,7 @@ Rectangle {
|
||||
bottomMargin: theme.spacing
|
||||
verticalLayoutDirection: ListView.BottomToTop
|
||||
|
||||
model: ModelStore.get(chat.userRoomId[0], chat.userRoomId[1], "events")
|
||||
delegate: EventDelegate {}
|
||||
|
||||
highlight: Rectangle {
|
||||
@@ -522,8 +521,6 @@ Rectangle {
|
||||
opacity: eventList.loadPastEventsFutureId ? 1 : 0
|
||||
visible: opacity > 0
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
|
||||
HButton {
|
||||
readonly property bool offline:
|
||||
chat.userInfo.presence === "offline"
|
||||
@@ -550,25 +547,6 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: pageLoader
|
||||
onRecycled: {
|
||||
eventList.model = null
|
||||
eventList.cacheBuffer = 0
|
||||
updateModelTimer.restart()
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: updateModelTimer
|
||||
interval: pageLoader.appearAnimation.duration / 2
|
||||
running: true
|
||||
onTriggered: {
|
||||
eventList.model = ModelStore.get(modelSyncId)
|
||||
increaseBufferTimer.restart()
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: increaseBufferTimer
|
||||
interval: 1000
|
||||
|
Reference in New Issue
Block a user