diff --git a/src/gui/Base/HAvatar.qml b/src/gui/Base/HAvatar.qml index 818a95f6..fa32426e 100644 --- a/src/gui/Base/HAvatar.qml +++ b/src/gui/Base/HAvatar.qml @@ -38,8 +38,6 @@ Rectangle { theme.controls.avatar.background.opacity ) - Behavior on color { HColorAnimation {} } - HLabel { z: 1 anchors.centerIn: parent @@ -54,8 +52,6 @@ Rectangle { theme.controls.avatar.letter.lightness, theme.controls.avatar.letter.opacity ) - - Behavior on color { HColorAnimation {} } } HMxcImage { diff --git a/src/gui/Base/HBottomFocusLine.qml b/src/gui/Base/HBottomFocusLine.qml index b4381637..aba68404 100644 --- a/src/gui/Base/HBottomFocusLine.qml +++ b/src/gui/Base/HBottomFocusLine.qml @@ -12,9 +12,5 @@ HRectangleBottomBorder { origin.x: line.width / 2 origin.y: line.height / 2 xScale: line.show ? 1 : 0 - - Behavior on xScale { HNumberAnimation {} } } - - Behavior on color { HColorAnimation {} } } diff --git a/src/gui/Base/HBox.qml b/src/gui/Base/HBox.qml index 54872af1..03ce6538 100644 --- a/src/gui/Base/HBox.qml +++ b/src/gui/Base/HBox.qml @@ -19,7 +19,4 @@ HColumnPage { to: 1 overshoot: 2 } - - Behavior on implicitWidth { HNumberAnimation {} } - Behavior on implicitHeight { HNumberAnimation {} } } diff --git a/src/gui/Base/HButtonBackground.qml b/src/gui/Base/HButtonBackground.qml index 65b2b0cb..39e69a23 100644 --- a/src/gui/Base/HButtonBackground.qml +++ b/src/gui/Base/HButtonBackground.qml @@ -15,8 +15,6 @@ Rectangle { enabled ? 1 : theme.disabledElementsOpacity - Behavior on opacity { HNumberAnimation {} } - Rectangle { anchors.fill: parent radius: parent.radius @@ -31,8 +29,6 @@ Rectangle { button.enabled && button.hovered ? buttonTheme.hoveredOverlay : "transparent" - - Behavior on color { HColorAnimation { factor: 0.5 } } } HBottomFocusLine { diff --git a/src/gui/Base/HButtonContent.qml b/src/gui/Base/HButtonContent.qml index 2101db9f..d39f80d9 100644 --- a/src/gui/Base/HButtonContent.qml +++ b/src/gui/Base/HButtonContent.qml @@ -18,8 +18,6 @@ HRowLayout { opacity: button.loading ? theme.loadingElementsOpacity : enabled ? 1 : theme.disabledElementsOpacity - Behavior on opacity { HNumberAnimation {} } - Item { visible: Boolean(button.icon.name || button.loading) @@ -42,8 +40,6 @@ HRowLayout { svgName: button.icon.name // cache: button.icon.cache // TODO: need Qt 5.13+ - - Behavior on opacity { HNumberAnimation {} } } HLoader { @@ -55,8 +51,6 @@ HRowLayout { active: opacity > 0 sourceComponent: HBusyIndicator {} - - Behavior on opacity { HNumberAnimation {} } } } diff --git a/src/gui/Base/HCheckBox.qml b/src/gui/Base/HCheckBox.qml index d7abc008..864bf466 100644 --- a/src/gui/Base/HCheckBox.qml +++ b/src/gui/Base/HCheckBox.qml @@ -39,8 +39,6 @@ CheckBox { theme.controls.checkBox.boxBorder - Behavior on border.color { HColorAnimation { factor: 0.5 } } - // FIXME: workaround for sizing bug in Security.qml ListView sections Component.onCompleted: implicitWidth = Qt.binding(() => theme.controls.checkBox.boxSize) @@ -107,6 +105,4 @@ CheckBox { // Break binding Component.onCompleted: previousDefaultChecked = previousDefaultChecked - - Behavior on opacity { HNumberAnimation { factor: 2 } } } diff --git a/src/gui/Base/HCircleProgressBar.qml b/src/gui/Base/HCircleProgressBar.qml index 9f538a77..eaeaae18 100644 --- a/src/gui/Base/HCircleProgressBar.qml +++ b/src/gui/Base/HCircleProgressBar.qml @@ -26,8 +26,6 @@ Item { anchors.centerIn: parent text: progressNumber + "%" font.pixelSize: theme ? theme.fontSize.big : 22 - - Behavior on progressNumber { HNumberAnimation { factor: 2 } } } Shape { @@ -66,9 +64,6 @@ Item { radiusY: shape.height / 2 - progressCircle.strokeWidth startAngle: 270 sweepAngle: progress * 360 - - Behavior on startAngle { HNumberAnimation {} } - Behavior on sweepAngle { HNumberAnimation {} } } } } diff --git a/src/gui/Base/HDrawer.qml b/src/gui/Base/HDrawer.qml index 2428c7fb..8a673049 100644 --- a/src/gui/Base/HDrawer.qml +++ b/src/gui/Base/HDrawer.qml @@ -106,8 +106,6 @@ Drawer { NumberAnimation { duration: 100 } } - Behavior on calculatedMinimumSize { HNumberAnimation { factor: 0.75 } } - Item { id: resizeArea x: vertical || drawer.edge === Qt.RightEdge ? 0 : drawer.width-width diff --git a/src/gui/Base/HIcon.qml b/src/gui/Base/HIcon.qml index 98869b12..012611fb 100644 --- a/src/gui/Base/HIcon.qml +++ b/src/gui/Base/HIcon.qml @@ -31,7 +31,5 @@ Image { layer.effect: ColorOverlay { color: icon.colorize cached: icon.cache - - Behavior on color { HColorAnimation {} } } } diff --git a/src/gui/Base/HLabeledItem.qml b/src/gui/Base/HLabeledItem.qml index d028e076..9ee6b1e4 100644 --- a/src/gui/Base/HLabeledItem.qml +++ b/src/gui/Base/HLabeledItem.qml @@ -34,8 +34,6 @@ HColumnLayout { Layout.preferredWidth: height Layout.preferredHeight: active ? label.height : 0 - - Behavior on Layout.preferredHeight { HNumberAnimation {} } } } @@ -56,7 +54,5 @@ HColumnLayout { Layout.maximumHeight: text ? implicitHeight : 0 Layout.fillWidth: true - - Behavior on Layout.maximumHeight { HNumberAnimation {} } } } diff --git a/src/gui/Base/HListView.qml b/src/gui/Base/HListView.qml index bb16f7ec..96dc88cd 100644 --- a/src/gui/Base/HListView.qml +++ b/src/gui/Base/HListView.qml @@ -119,32 +119,6 @@ ListView { // #handling-interrupted-animations populate: add - add: Transition { - // ScriptAction { script: if (listView.debug) print("add") } - HNumberAnimation { property: "opacity"; from: 0; to: 1 } - HNumberAnimation { property: "scale"; from: 0; to: 1 } - } - - move: Transition { - // ScriptAction { script: if (listView.debug) print("move") } - HNumberAnimation { property: "opacity"; to: 1 } - HNumberAnimation { property: "scale"; to: 1 } - HNumberAnimation { properties: "x,y" } - } - - remove: Transition { - // ScriptAction { script: if (listView.debug) print("remove") } - HNumberAnimation { property: "opacity"; to: 0 } - HNumberAnimation { property: "scale"; to: 0 } - } - - displaced: Transition { - // ScriptAction { script: if (listView.debug) print("displaced") } - HNumberAnimation { property: "opacity"; to: 1 } - HNumberAnimation { property: "scale"; to: 1 } - HNumberAnimation { properties: "x,y" } - } - onSelectedCountChanged: if (! selectedCount) lastCheckedDelegateIndex = 0 onModelChanged: { currentIndex = defaultCurrentIndex diff --git a/src/gui/Base/HMenuItem.qml b/src/gui/Base/HMenuItem.qml index 3dd7049e..453f0b6c 100644 --- a/src/gui/Base/HMenuItem.qml +++ b/src/gui/Base/HMenuItem.qml @@ -37,8 +37,6 @@ MenuItem { visible: menuItem.checkable opacity: menuItem.checked ? 1 : 0 svgName: "menu-item-check-mark" - - Behavior on opacity { HNumberAnimation {} } } HIcon { diff --git a/src/gui/Base/HPage.qml b/src/gui/Base/HPage.qml index 41e95bbe..9157e00d 100644 --- a/src/gui/Base/HPage.qml +++ b/src/gui/Base/HPage.qml @@ -25,6 +25,4 @@ Page { Keys.onReturnPressed: keyboardAccept() Keys.onEnterPressed: keyboardAccept() Keys.onEscapePressed: keyboardCancel() - - Behavior on padding { HNumberAnimation {} } } diff --git a/src/gui/Base/HProgressBar.qml b/src/gui/Base/HProgressBar.qml index 55b36644..1c697787 100644 --- a/src/gui/Base/HProgressBar.qml +++ b/src/gui/Base/HProgressBar.qml @@ -27,8 +27,6 @@ ProgressBar { height: parent.height color: foregroundColor - Behavior on color { HColorAnimation {} } - HNumberAnimation on x { running: bar.visible && bar.indeterminate duration: 800 diff --git a/src/gui/Base/HRadioButton.qml b/src/gui/Base/HRadioButton.qml index e503fdb1..b743ddfd 100644 --- a/src/gui/Base/HRadioButton.qml +++ b/src/gui/Base/HRadioButton.qml @@ -37,8 +37,6 @@ RadioButton { theme.controls.checkBox.boxBorder - Behavior on border.color { HColorAnimation { factor: 0.5 } } - Rectangle { anchors.centerIn: parent width: parent.width * 0.5 // XXX theme @@ -88,6 +86,4 @@ RadioButton { Layout.fillWidth: true } } - - Behavior on opacity { HNumberAnimation { factor: 2 } } } diff --git a/src/gui/Base/HScrollBar.qml b/src/gui/Base/HScrollBar.qml index 2b5e96c6..1b563715 100644 --- a/src/gui/Base/HScrollBar.qml +++ b/src/gui/Base/HScrollBar.qml @@ -31,17 +31,12 @@ ScrollBar { sliderHover.hovered ? theme.controls.scrollBar.hoveredSlider : theme.controls.scrollBar.slider - Behavior on color { HColorAnimation {} } - HoverHandler { id: sliderHover } } } // onFlickableMovingChanged: if (flickableMoving) activeOverride.when = false - // Behavior on opacity { HNumberAnimation { factor: 2 } } - Behavior on opacity { HNumberAnimation {} } - // Binding on active { // id: activeOverride // value: initialVisibilityTimer.running diff --git a/src/gui/Base/HSlider.qml b/src/gui/Base/HSlider.qml index 67216b75..6b1f66ed 100644 --- a/src/gui/Base/HSlider.qml +++ b/src/gui/Base/HSlider.qml @@ -55,9 +55,6 @@ Slider { border.color: slider.pressed ? theme.controls.slider.handle.pressedBorder : theme.controls.slider.handle.border - - Behavior on color { HColorAnimation {} } - Behavior on border.color { HColorAnimation {} } } HToolTip { diff --git a/src/gui/Base/HSpinBox.qml b/src/gui/Base/HSpinBox.qml index a78ea63f..df1c78bd 100644 --- a/src/gui/Base/HSpinBox.qml +++ b/src/gui/Base/HSpinBox.qml @@ -30,8 +30,6 @@ SpinBox { opacity: box.value > box.from ? 1 : theme.disabledElementsOpacity onPressed: if (box.value > box.from) box.decrease() Layout.fillHeight: true - - Behavior on opacity { HNumberAnimation {} } } HTextField { @@ -62,8 +60,6 @@ SpinBox { opacity: box.value < box.to ? 1 : theme.disabledElementsOpacity onPressed: if (box.value < box.to) box.increase() Layout.fillHeight: true - - Behavior on opacity { HNumberAnimation {} } } } diff --git a/src/gui/Base/HTabbedBox.qml b/src/gui/Base/HTabbedBox.qml index 7ad7b163..59674858 100644 --- a/src/gui/Base/HTabbedBox.qml +++ b/src/gui/Base/HTabbedBox.qml @@ -22,8 +22,6 @@ HPage { id: backButton visible: Layout.preferredWidth > 0 Layout.preferredWidth: showBackButton ? implicitWidth : 0 - - Behavior on Layout.preferredWidth { HNumberAnimation {} } } HLoader { @@ -48,9 +46,6 @@ HPage { overshoot: 2 } - Behavior on implicitWidth { HNumberAnimation {} } - Behavior on implicitHeight { HNumberAnimation {} } - Binding { target: tabBarLoader.item property: "currentIndex" diff --git a/src/gui/Base/HTextArea.qml b/src/gui/Base/HTextArea.qml index 4126474c..09cf9425 100644 --- a/src/gui/Base/HTextArea.qml +++ b/src/gui/Base/HTextArea.qml @@ -160,10 +160,6 @@ TextArea { when: disabledText !== null && ! textArea.enabled } - Behavior on opacity { HNumberAnimation {} } - Behavior on color { HColorAnimation {} } - Behavior on placeholderTextColor { HColorAnimation {} } - HLabel { id: disabledTextLabel anchors.fill: parent @@ -184,8 +180,6 @@ TextArea { font.family: parent.font.family font.pixelSize: parent.font.pixelSize - - Behavior on opacity { HNumberAnimation {} } } HTextContextMenu { diff --git a/src/gui/Base/HTextField.qml b/src/gui/Base/HTextField.qml index 5b770691..22711ce6 100644 --- a/src/gui/Base/HTextField.qml +++ b/src/gui/Base/HTextField.qml @@ -131,10 +131,6 @@ TextField { when: disabledText !== null && ! field.enabled } - Behavior on opacity { HNumberAnimation {} } - Behavior on color { HColorAnimation {} } - Behavior on placeholderTextColor { HColorAnimation {} } - HLabel { id: disabledTextLabel anchors.fill: parent @@ -155,8 +151,6 @@ TextField { font.family: parent.font.family font.pixelSize: parent.font.pixelSize - - Behavior on opacity { HNumberAnimation {} } } HTextContextMenu { id: contextMenu } diff --git a/src/gui/Base/HTile/HTile.qml b/src/gui/Base/HTile/HTile.qml index c009e4a0..1fea13df 100644 --- a/src/gui/Base/HTile/HTile.qml +++ b/src/gui/Base/HTile/HTile.qml @@ -46,9 +46,6 @@ HButton { Keys.onSpacePressed: leftClicked() Keys.onMenuPressed: doRightClick(false) - Behavior on topPadding { HNumberAnimation {} } - Behavior on bottomPadding { HNumberAnimation {} } - TapHandler { acceptedButtons: Qt.LeftButton onTapped: leftClicked() diff --git a/src/gui/Base/HTile/SubtitleLabel.qml b/src/gui/Base/HTile/SubtitleLabel.qml index e8ce2877..43abf6bc 100644 --- a/src/gui/Base/HTile/SubtitleLabel.qml +++ b/src/gui/Base/HTile/SubtitleLabel.qml @@ -19,8 +19,6 @@ HLabel { Layout.fillWidth: true Layout.fillHeight: true - Behavior on Layout.maximumHeight { HNumberAnimation {} } - MouseArea { anchors.fill: parent acceptedButtons: Qt.NoButton diff --git a/src/gui/Base/HTile/TitleRightInfoLabel.qml b/src/gui/Base/HTile/TitleRightInfoLabel.qml index 70bf2913..bb6fb97e 100644 --- a/src/gui/Base/HTile/TitleRightInfoLabel.qml +++ b/src/gui/Base/HTile/TitleRightInfoLabel.qml @@ -19,6 +19,4 @@ HLabel { Layout.maximumWidth: text && tile.width >= hideUnderWidth * theme.uiScale ? implicitWidth : 0 - - Behavior on Layout.maximumWidth { HNumberAnimation {} } } diff --git a/src/gui/Base/HUserAvatar.qml b/src/gui/Base/HUserAvatar.qml index 174cd243..dae9b62a 100644 --- a/src/gui/Base/HUserAvatar.qml +++ b/src/gui/Base/HUserAvatar.qml @@ -27,8 +27,6 @@ HAvatar { anchors.leftMargin: anchors.topMargin z: 100 - Behavior on anchors.topMargin { HNumberAnimation {} } - sourceComponent: HIcon { small: true svgName: diff --git a/src/gui/Base/MediaPlayer/OSD.qml b/src/gui/Base/MediaPlayer/OSD.qml index fb0677f0..d872b27c 100644 --- a/src/gui/Base/MediaPlayer/OSD.qml +++ b/src/gui/Base/MediaPlayer/OSD.qml @@ -42,8 +42,6 @@ HColumnLayout { osd.showup ? 1 : 0 origin.y: osd.height - - Behavior on yScale { HNumberAnimation {} } } onShowupChanged: if (showup) osdHideTimer.restart() @@ -190,8 +188,6 @@ HColumnLayout { (hovered || pressed || volumeButton.hovered) ? theme.mediaPlayer.controls.volumeSliderWidth : 0 Layout.fillHeight: true - - Behavior on Layout.preferredWidth { HNumberAnimation {} } } OSDButton { @@ -217,8 +213,6 @@ HColumnLayout { (hovered || pressed || speedButton.hovered) ? theme.mediaPlayer.controls.speedSliderWidth : 0 Layout.fillHeight: true - - Behavior on Layout.preferredWidth { HNumberAnimation {} } } OSDLabel { diff --git a/src/gui/Base/PresenceOrb.qml b/src/gui/Base/PresenceOrb.qml index e964e070..96990191 100644 --- a/src/gui/Base/PresenceOrb.qml +++ b/src/gui/Base/PresenceOrb.qml @@ -27,9 +27,6 @@ Rectangle { border.color: theme.controls.presence.border border.width: theme.controls.presence.borderWidth - Behavior on color { HColorAnimation {} } - Behavior on opacity { HNumberAnimation {} } - HoverHandler { id: presenceHover } HToolTip { diff --git a/src/gui/MainPane/AccountBar.qml b/src/gui/MainPane/AccountBar.qml index ae5227bb..c512e8f0 100644 --- a/src/gui/MainPane/AccountBar.qml +++ b/src/gui/MainPane/AccountBar.qml @@ -18,8 +18,6 @@ Rectangle { accountList.topMargin + accountList.bottomMargin : 0 - Behavior on implicitHeight { HNumberAnimation {} } - HGridView { id: accountList anchors.centerIn: parent diff --git a/src/gui/MainPane/AccountDelegate.qml b/src/gui/MainPane/AccountDelegate.qml index 1db72efa..ae906dda 100644 --- a/src/gui/MainPane/AccountDelegate.qml +++ b/src/gui/MainPane/AccountDelegate.qml @@ -53,8 +53,6 @@ HTile { theme.mainPane.listView.offlineOpacity : 1 - Behavior on opacity { HNumberAnimation {} } - HUserAvatar { id: avatar clientUserId: model.id @@ -83,8 +81,6 @@ HTile { height: width } } - - Behavior on opacity { HNumberAnimation {} } } MessageIndicator { @@ -114,8 +110,6 @@ HTile { ) : theme.mainPane.listView.account.name - Behavior on color { HColorAnimation {} } - Layout.leftMargin: theme.spacing } @@ -194,10 +188,8 @@ HTile { origin.y: expand.iconItem.height / 2 angle: expand.loading ? 0 : collapsed ? 180 : 90 - Behavior on angle { HNumberAnimation {} } } - Behavior on Layout.maximumWidth { HNumberAnimation {} } } } diff --git a/src/gui/MainPane/BottomBar.qml b/src/gui/MainPane/BottomBar.qml index cb280023..232cc944 100644 --- a/src/gui/MainPane/BottomBar.qml +++ b/src/gui/MainPane/BottomBar.qml @@ -67,8 +67,6 @@ Rectangle { if (window.settings.RoomList.escape_clears_filter) text = "" } - Behavior on opacity { HNumberAnimation {} } - HShortcut { sequences: window.settings.Keys.Rooms.clear_filter onActivated: filterField.text = "" diff --git a/src/gui/MainPane/MainPane.qml b/src/gui/MainPane/MainPane.qml index ebb3e146..7b915da4 100644 --- a/src/gui/MainPane/MainPane.qml +++ b/src/gui/MainPane/MainPane.qml @@ -28,8 +28,6 @@ HDrawer { minimumSize: window.settings.RoomList.min_width * window.settings.General.zoom - Behavior on opacity { HNumberAnimation {} } - Binding on visible { value: false when: ! mainUI.accountsPresent diff --git a/src/gui/MainPane/MessageIndicator.qml b/src/gui/MainPane/MessageIndicator.qml index fe38cb7a..b7a9f8ad 100644 --- a/src/gui/MainPane/MessageIndicator.qml +++ b/src/gui/MainPane/MessageIndicator.qml @@ -59,11 +59,6 @@ HLabel { indicatorTheme.highlightBorder : indicatorTheme.border - Behavior on radius { HColorAnimation {} } - Behavior on color { HColorAnimation {} } - Behavior on border.color { HColorAnimation {} } } - Behavior on scale { HNumberAnimation {} } - Behavior on color { HColorAnimation {} } } diff --git a/src/gui/MainPane/RoomDelegate.qml b/src/gui/MainPane/RoomDelegate.qml index 9be6ce94..50a7e3ce 100644 --- a/src/gui/MainPane/RoomDelegate.qml +++ b/src/gui/MainPane/RoomDelegate.qml @@ -43,8 +43,6 @@ HTile { theme.mainPane.listView.room.leftRoomOpacity : 1 - Behavior on opacity { HNumberAnimation {} } - HRoomAvatar { id: avatar clientUserId: model.for_account @@ -53,8 +51,6 @@ HTile { mxc: model.avatar_url compact: room.compact radius: theme.mainPane.listView.room.avatarRadius - - Behavior on radius { HNumberAnimation {} } } HColumnLayout { @@ -144,8 +140,6 @@ HTile { visible: invited Layout.maximumWidth: invited ? implicitWidth : 0 - - Behavior on Layout.maximumWidth { HNumberAnimation {} } } } diff --git a/src/gui/MainPane/TopBar.qml b/src/gui/MainPane/TopBar.qml index 04385456..8e8fbb23 100644 --- a/src/gui/MainPane/TopBar.qml +++ b/src/gui/MainPane/TopBar.qml @@ -154,8 +154,6 @@ Rectangle { Layout.preferredWidth: mainPane.collapse ? implicitWidth : 0 Layout.fillHeight: true - - Behavior on Layout.preferredWidth { HNumberAnimation {} } } } } diff --git a/src/gui/PageLoader.qml b/src/gui/PageLoader.qml index d66df79a..e756919d 100644 --- a/src/gui/PageLoader.qml +++ b/src/gui/PageLoader.qml @@ -17,8 +17,6 @@ HLoader { property int historyLength: 20 property int historyPosition: 0 - readonly property alias appearAnimation: appearAnimation - signal aboutToRecycle() signal recycled() signal previousShown(string componentUrl, var properties) @@ -98,10 +96,10 @@ HLoader { if (mainPane.collapse) mainPane.close() } - clip: appearAnimation.running + clip: false - onLoaded: { takeFocus(); appearAnimation.restart() } - onRecycled: { takeFocus(); appearAnimation.restart() } + onLoaded: { takeFocus(); } + onRecycled: { takeFocus(); } Component.onCompleted: { if (! py.startupAnyAccountsSaved) { @@ -112,16 +110,6 @@ HLoader { pageLoader.show(window.uiState.page, window.uiState.pageProperties) } - HNumberAnimation { - id: appearAnimation - target: pageLoader.item - property: "x" - from: -pageLoader.width - to: 0 - easing.type: Easing.OutCirc - factor: 2 - } - HShortcut { sequences: window.settings.Keys.last_page onActivated: showPrevious() diff --git a/src/gui/Pages/Chat/AutoCompletion/CompletableUserDelegate.qml b/src/gui/Pages/Chat/AutoCompletion/CompletableUserDelegate.qml index d6272a48..245486a3 100644 --- a/src/gui/Pages/Chat/AutoCompletion/CompletableUserDelegate.qml +++ b/src/gui/Pages/Chat/AutoCompletion/CompletableUserDelegate.qml @@ -45,8 +45,6 @@ HTile { root.colorName ? utils.nameColor(model.display_name || model.id.substring(1)) : theme.chat.userAutoCompletion.displayNames - - Behavior on color { HColorAnimation {} } } } diff --git a/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml b/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml index b2a96439..af3c9243 100644 --- a/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml +++ b/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml @@ -133,9 +133,6 @@ HListView { replacementEnd = textArea.cursorPosition } - Behavior on opacity { HNumberAnimation {} } - Behavior on implicitHeight { HNumberAnimation {} } - Rectangle { anchors.fill: parent z: -1 diff --git a/src/gui/Pages/Chat/Chat.qml b/src/gui/Pages/Chat/Chat.qml index 5226187e..78a9a9bb 100644 --- a/src/gui/Pages/Chat/Chat.qml +++ b/src/gui/Pages/Chat/Chat.qml @@ -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() - } } } } diff --git a/src/gui/Pages/Chat/ChatPage.qml b/src/gui/Pages/Chat/ChatPage.qml index b63d03d5..abbe89d7 100644 --- a/src/gui/Pages/Chat/ChatPage.qml +++ b/src/gui/Pages/Chat/ChatPage.qml @@ -102,8 +102,6 @@ HColumnPage { Layout.minimumHeight: implicitHeight Layout.preferredHeight: implicitHeight * transferCount Layout.maximumHeight: chatPage.height / 6 - - Behavior on Layout.preferredHeight { HNumberAnimation {} } } UserAutoCompletion { diff --git a/src/gui/Pages/Chat/Composer/Composer.qml b/src/gui/Pages/Chat/Composer/Composer.qml index 6ddbda51..a4890815 100644 --- a/src/gui/Pages/Chat/Composer/Composer.qml +++ b/src/gui/Pages/Chat/Composer/Composer.qml @@ -125,8 +125,6 @@ Rectangle { Layout.fillWidth: false Layout.fillHeight: true - - Behavior on implicitWidth { HNumberAnimation {} } } CancelButton { diff --git a/src/gui/Pages/Chat/FileTransfer/Transfer.qml b/src/gui/Pages/Chat/FileTransfer/Transfer.qml index d3de5980..5cc4ade9 100644 --- a/src/gui/Pages/Chat/FileTransfer/Transfer.qml +++ b/src/gui/Pages/Chat/FileTransfer/Transfer.qml @@ -30,8 +30,6 @@ HColumnLayout { ) } - Behavior on height { HNumberAnimation {} } - DelegateTransitionFixer {} HRowLayout { diff --git a/src/gui/Pages/Chat/FileTransfer/TransferList.qml b/src/gui/Pages/Chat/FileTransfer/TransferList.qml index 1bd655de..c3a09400 100644 --- a/src/gui/Pages/Chat/FileTransfer/TransferList.qml +++ b/src/gui/Pages/Chat/FileTransfer/TransferList.qml @@ -19,8 +19,6 @@ Rectangle { opacity: implicitHeight ? 1 : 0 clip: true - Behavior on implicitHeight { HNumberAnimation {} } - HListView { id: transferList anchors.fill: parent diff --git a/src/gui/Pages/Chat/InfoBar.qml b/src/gui/Pages/Chat/InfoBar.qml index 8aeff234..eb0162e5 100644 --- a/src/gui/Pages/Chat/InfoBar.qml +++ b/src/gui/Pages/Chat/InfoBar.qml @@ -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 diff --git a/src/gui/Pages/Chat/RoomHeaderButton.qml b/src/gui/Pages/Chat/RoomHeaderButton.qml index 11dce3b6..0f2a2b36 100644 --- a/src/gui/Pages/Chat/RoomHeaderButton.qml +++ b/src/gui/Pages/Chat/RoomHeaderButton.qml @@ -12,6 +12,4 @@ HButton { Layout.preferredWidth: show ? implicitWidth : 0 Layout.fillHeight: true - - Behavior on Layout.preferredWidth { HNumberAnimation {} } } diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberDelegate.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberDelegate.qml index b0db0381..17c2c670 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberDelegate.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberDelegate.qml @@ -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 diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml index 075b5af6..e2872315 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberProfile.qml @@ -237,8 +237,6 @@ HListView { Layout.preferredHeight: implicitHeight * scale Layout.topMargin: -theme.spacing - Behavior on scale { HNumberAnimation {} } - HSpacer {} ApplyButton { diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml index d47ac71b..8b8dec8f 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml @@ -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 {} } } } } diff --git a/src/gui/Pages/Chat/Timeline/EventContent.qml b/src/gui/Pages/Chat/Timeline/EventContent.qml index 7b879919..6a0e2d3a 100644 --- a/src/gui/Pages/Chat/Timeline/EventContent.qml +++ b/src/gui/Pages/Chat/Timeline/EventContent.qml @@ -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 diff --git a/src/gui/Pages/Chat/Timeline/EventFile.qml b/src/gui/Pages/Chat/Timeline/EventFile.qml index 808534dc..f313b716 100644 --- a/src/gui/Pages/Chat/Timeline/EventFile.qml +++ b/src/gui/Pages/Chat/Timeline/EventFile.qml @@ -63,6 +63,4 @@ HTile { value: theme.chat.message.checkedBackground when: eventDelegate.checked } - - Behavior on backgroundColor { HColorAnimation {} } } diff --git a/src/gui/Pages/Chat/Timeline/EventImage.qml b/src/gui/Pages/Chat/Timeline/EventImage.qml index ea4c4983..aecb92d3 100644 --- a/src/gui/Pages/Chat/Timeline/EventImage.qml +++ b/src/gui/Pages/Chat/Timeline/EventImage.qml @@ -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 {} } } } diff --git a/src/gui/Pages/Chat/Timeline/EventList.qml b/src/gui/Pages/Chat/Timeline/EventList.qml index 185d9d92..99743b69 100644 --- a/src/gui/Pages/Chat/Timeline/EventList.qml +++ b/src/gui/Pages/Chat/Timeline/EventList.qml @@ -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 diff --git a/src/gui/Popups/ImageViewerPopup/ImageViewerPopup.qml b/src/gui/Popups/ImageViewerPopup/ImageViewerPopup.qml index 851795d1..2dfde4d4 100644 --- a/src/gui/Popups/ImageViewerPopup/ImageViewerPopup.qml +++ b/src/gui/Popups/ImageViewerPopup/ImageViewerPopup.qml @@ -141,8 +141,6 @@ HPopup { maxTitleWidth: y <= 0 ? -1 : buttons.x - buttons.width / 2 - Behavior on y { HNumberAnimation {} } - HoverHandler { id: infoHover } } @@ -153,8 +151,6 @@ HPopup { y: parent.height - (popup.autoHide ? 0 : height) viewer: popup - Behavior on y { HNumberAnimation {} } - HoverHandler { id: buttonsHover } } } diff --git a/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml b/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml index 86008dca..ebb6ee61 100644 --- a/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml +++ b/src/gui/Popups/ImageViewerPopup/ViewerCanvas.qml @@ -165,8 +165,6 @@ HFlickable { cryptDict: viewer.fullCryptDict // Image never loads at 0 opacity or with visible: false opacity: status === HMxcImage.Ready ? 1 : 0.01 - - Behavior on opacity { HNumberAnimation {} } } Item { diff --git a/src/gui/Popups/ImageViewerPopup/ViewerInfo.qml b/src/gui/Popups/ImageViewerPopup/ViewerInfo.qml index 62b845d6..de9fd1d4 100644 --- a/src/gui/Popups/ImageViewerPopup/ViewerInfo.qml +++ b/src/gui/Popups/ImageViewerPopup/ViewerInfo.qml @@ -18,8 +18,6 @@ Rectangle { implicitHeight: Math.max(theme.baseElementsHeight, childrenRect.height) color: utils.hsluv(0, 0, 0, 0.8) - Behavior on implicitHeight { HNumberAnimation {} } - AutoDirectionLayout { id: layout width: parent.width - theme.spacing * 2 @@ -90,8 +88,6 @@ Rectangle { Layout.alignment: Qt.AlignCenter Layout.preferredWidth: active ? height : 0 Layout.preferredHeight: theme.baseElementsHeight - theme.spacing - - Behavior on Layout.preferredWidth { HNumberAnimation {} } } Item { diff --git a/src/gui/Popups/PushRuleSettingsPopup/CustomLabel.qml b/src/gui/Popups/PushRuleSettingsPopup/CustomLabel.qml index 70bc515d..fc356946 100644 --- a/src/gui/Popups/PushRuleSettingsPopup/CustomLabel.qml +++ b/src/gui/Popups/PushRuleSettingsPopup/CustomLabel.qml @@ -9,6 +9,4 @@ HLabel { opacity: enabled ? 1 : theme.disabledElementsOpacity wrapMode: HLabel.Wrap Layout.fillWidth: true - - Behavior on opacity { HNumberAnimation {} } } diff --git a/src/gui/Popups/PushRuleSettingsPopup/GeneralRule.qml b/src/gui/Popups/PushRuleSettingsPopup/GeneralRule.qml index 32e7bfd3..d85b2fa8 100644 --- a/src/gui/Popups/PushRuleSettingsPopup/GeneralRule.qml +++ b/src/gui/Popups/PushRuleSettingsPopup/GeneralRule.qml @@ -97,8 +97,6 @@ HColumnLayout { color: theme.colors.dimText visible: Layout.preferredHeight > 0 Layout.preferredHeight: conditionRepeater.count ? 0 : implicitHeight - - Behavior on Layout.preferredHeight { HNumberAnimation {} } } Repeater { diff --git a/src/gui/Popups/PushRuleSettingsPopup/PushRuleSettingsPopup.qml b/src/gui/Popups/PushRuleSettingsPopup/PushRuleSettingsPopup.qml index bf8c2232..d78e913e 100644 --- a/src/gui/Popups/PushRuleSettingsPopup/PushRuleSettingsPopup.qml +++ b/src/gui/Popups/PushRuleSettingsPopup/PushRuleSettingsPopup.qml @@ -180,8 +180,6 @@ HFlickableColumnPopup { Layout.fillWidth: true - Behavior on implicitHeight { HNumberAnimation {} } - GeneralRule { enabled: SwipeView.isCurrentItem } ContentRule { enabled: SwipeView.isCurrentItem } RoomRule { enabled: SwipeView.isCurrentItem } diff --git a/src/gui/Window.qml b/src/gui/Window.qml index 3cb48ec3..364713db 100644 --- a/src/gui/Window.qml +++ b/src/gui/Window.qml @@ -128,8 +128,6 @@ ApplicationWindow { py.ready ? (loadQml || "UI.qml") : "" - - Behavior on scale { HNumberAnimation { overshoot: 3; factor: 1.2 } } } TrayIcon {