Merge branch 'remove-animation' into 'main'

Remove animation

See merge request mx-moment/moment!17
This commit is contained in:
Maze
2023-01-10 08:50:05 +00:00
58 changed files with 4 additions and 264 deletions

View File

@@ -45,8 +45,6 @@ HTile {
root.colorName ?
utils.nameColor(model.display_name || model.id.substring(1)) :
theme.chat.userAutoCompletion.displayNames
Behavior on color { HColorAnimation {} }
}
}

View File

@@ -133,9 +133,6 @@ HListView {
replacementEnd = textArea.cursorPosition
}
Behavior on opacity { HNumberAnimation {} }
Behavior on implicitHeight { HNumberAnimation {} }
Rectangle {
anchors.fill: parent
z: -1

View File

@@ -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()
}
}
}
}

View File

@@ -102,8 +102,6 @@ HColumnPage {
Layout.minimumHeight: implicitHeight
Layout.preferredHeight: implicitHeight * transferCount
Layout.maximumHeight: chatPage.height / 6
Behavior on Layout.preferredHeight { HNumberAnimation {} }
}
UserAutoCompletion {

View File

@@ -125,8 +125,6 @@ Rectangle {
Layout.fillWidth: false
Layout.fillHeight: true
Behavior on implicitWidth { HNumberAnimation {} }
}
CancelButton {

View File

@@ -30,8 +30,6 @@ HColumnLayout {
)
}
Behavior on height { HNumberAnimation {} }
DelegateTransitionFixer {}
HRowLayout {

View File

@@ -19,8 +19,6 @@ Rectangle {
opacity: implicitHeight ? 1 : 0
clip: true
Behavior on implicitHeight { HNumberAnimation {} }
HListView {
id: transferList
anchors.fill: parent

View File

@@ -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

View File

@@ -12,6 +12,4 @@ HButton {
Layout.preferredWidth: show ? implicitWidth : 0
Layout.fillHeight: true
Behavior on Layout.preferredWidth { HNumberAnimation {} }
}

View File

@@ -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

View File

@@ -237,8 +237,6 @@ HListView {
Layout.preferredHeight: implicitHeight * scale
Layout.topMargin: -theme.spacing
Behavior on scale { HNumberAnimation {} }
HSpacer {}
ApplyButton {

View File

@@ -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 {} }
}
}
}

View File

@@ -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

View File

@@ -63,6 +63,4 @@ HTile {
value: theme.chat.message.checkedBackground
when: eventDelegate.checked
}
Behavior on backgroundColor { HColorAnimation {} }
}

View File

@@ -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 {} }
}
}

View File

@@ -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