Remove many animations

This commit is contained in:
Maze 2022-08-10 11:59:09 +02:00
parent 2a1a96e762
commit 9088506f62
58 changed files with 3 additions and 225 deletions

View File

@ -38,8 +38,6 @@ Rectangle {
theme.controls.avatar.background.opacity theme.controls.avatar.background.opacity
) )
Behavior on color { HColorAnimation {} }
HLabel { HLabel {
z: 1 z: 1
anchors.centerIn: parent anchors.centerIn: parent
@ -54,8 +52,6 @@ Rectangle {
theme.controls.avatar.letter.lightness, theme.controls.avatar.letter.lightness,
theme.controls.avatar.letter.opacity theme.controls.avatar.letter.opacity
) )
Behavior on color { HColorAnimation {} }
} }
HMxcImage { HMxcImage {

View File

@ -12,9 +12,5 @@ HRectangleBottomBorder {
origin.x: line.width / 2 origin.x: line.width / 2
origin.y: line.height / 2 origin.y: line.height / 2
xScale: line.show ? 1 : 0 xScale: line.show ? 1 : 0
Behavior on xScale { HNumberAnimation {} }
} }
Behavior on color { HColorAnimation {} }
} }

View File

@ -19,7 +19,4 @@ HColumnPage {
to: 1 to: 1
overshoot: 2 overshoot: 2
} }
Behavior on implicitWidth { HNumberAnimation {} }
Behavior on implicitHeight { HNumberAnimation {} }
} }

View File

@ -15,8 +15,6 @@ Rectangle {
enabled ? 1 : enabled ? 1 :
theme.disabledElementsOpacity theme.disabledElementsOpacity
Behavior on opacity { HNumberAnimation {} }
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
radius: parent.radius radius: parent.radius
@ -31,8 +29,6 @@ Rectangle {
button.enabled && button.hovered ? buttonTheme.hoveredOverlay : button.enabled && button.hovered ? buttonTheme.hoveredOverlay :
"transparent" "transparent"
Behavior on color { HColorAnimation { factor: 0.5 } }
} }
HBottomFocusLine { HBottomFocusLine {

View File

@ -18,8 +18,6 @@ HRowLayout {
opacity: button.loading ? theme.loadingElementsOpacity : opacity: button.loading ? theme.loadingElementsOpacity :
enabled ? 1 : theme.disabledElementsOpacity enabled ? 1 : theme.disabledElementsOpacity
Behavior on opacity { HNumberAnimation {} }
Item { Item {
visible: Boolean(button.icon.name || button.loading) visible: Boolean(button.icon.name || button.loading)
@ -42,8 +40,6 @@ HRowLayout {
svgName: button.icon.name svgName: button.icon.name
// cache: button.icon.cache // TODO: need Qt 5.13+ // cache: button.icon.cache // TODO: need Qt 5.13+
Behavior on opacity { HNumberAnimation {} }
} }
HLoader { HLoader {
@ -55,8 +51,6 @@ HRowLayout {
active: opacity > 0 active: opacity > 0
sourceComponent: HBusyIndicator {} sourceComponent: HBusyIndicator {}
Behavior on opacity { HNumberAnimation {} }
} }
} }

View File

@ -39,8 +39,6 @@ CheckBox {
theme.controls.checkBox.boxBorder theme.controls.checkBox.boxBorder
Behavior on border.color { HColorAnimation { factor: 0.5 } }
// FIXME: workaround for sizing bug in Security.qml ListView sections // FIXME: workaround for sizing bug in Security.qml ListView sections
Component.onCompleted: Component.onCompleted:
implicitWidth = Qt.binding(() => theme.controls.checkBox.boxSize) implicitWidth = Qt.binding(() => theme.controls.checkBox.boxSize)
@ -107,6 +105,4 @@ CheckBox {
// Break binding // Break binding
Component.onCompleted: previousDefaultChecked = previousDefaultChecked Component.onCompleted: previousDefaultChecked = previousDefaultChecked
Behavior on opacity { HNumberAnimation { factor: 2 } }
} }

View File

@ -26,8 +26,6 @@ Item {
anchors.centerIn: parent anchors.centerIn: parent
text: progressNumber + "%" text: progressNumber + "%"
font.pixelSize: theme ? theme.fontSize.big : 22 font.pixelSize: theme ? theme.fontSize.big : 22
Behavior on progressNumber { HNumberAnimation { factor: 2 } }
} }
Shape { Shape {
@ -66,9 +64,6 @@ Item {
radiusY: shape.height / 2 - progressCircle.strokeWidth radiusY: shape.height / 2 - progressCircle.strokeWidth
startAngle: 270 startAngle: 270
sweepAngle: progress * 360 sweepAngle: progress * 360
Behavior on startAngle { HNumberAnimation {} }
Behavior on sweepAngle { HNumberAnimation {} }
} }
} }
} }

View File

@ -106,8 +106,6 @@ Drawer {
NumberAnimation { duration: 100 } NumberAnimation { duration: 100 }
} }
Behavior on calculatedMinimumSize { HNumberAnimation { factor: 0.75 } }
Item { Item {
id: resizeArea id: resizeArea
x: vertical || drawer.edge === Qt.RightEdge ? 0 : drawer.width-width x: vertical || drawer.edge === Qt.RightEdge ? 0 : drawer.width-width

View File

@ -31,7 +31,5 @@ Image {
layer.effect: ColorOverlay { layer.effect: ColorOverlay {
color: icon.colorize color: icon.colorize
cached: icon.cache cached: icon.cache
Behavior on color { HColorAnimation {} }
} }
} }

View File

@ -34,8 +34,6 @@ HColumnLayout {
Layout.preferredWidth: height Layout.preferredWidth: height
Layout.preferredHeight: active ? label.height : 0 Layout.preferredHeight: active ? label.height : 0
Behavior on Layout.preferredHeight { HNumberAnimation {} }
} }
} }
@ -56,7 +54,5 @@ HColumnLayout {
Layout.maximumHeight: text ? implicitHeight : 0 Layout.maximumHeight: text ? implicitHeight : 0
Layout.fillWidth: true Layout.fillWidth: true
Behavior on Layout.maximumHeight { HNumberAnimation {} }
} }
} }

View File

@ -119,32 +119,6 @@ ListView {
// #handling-interrupted-animations // #handling-interrupted-animations
populate: add 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 onSelectedCountChanged: if (! selectedCount) lastCheckedDelegateIndex = 0
onModelChanged: { onModelChanged: {
currentIndex = defaultCurrentIndex currentIndex = defaultCurrentIndex

View File

@ -37,8 +37,6 @@ MenuItem {
visible: menuItem.checkable visible: menuItem.checkable
opacity: menuItem.checked ? 1 : 0 opacity: menuItem.checked ? 1 : 0
svgName: "menu-item-check-mark" svgName: "menu-item-check-mark"
Behavior on opacity { HNumberAnimation {} }
} }
HIcon { HIcon {

View File

@ -25,6 +25,4 @@ Page {
Keys.onReturnPressed: keyboardAccept() Keys.onReturnPressed: keyboardAccept()
Keys.onEnterPressed: keyboardAccept() Keys.onEnterPressed: keyboardAccept()
Keys.onEscapePressed: keyboardCancel() Keys.onEscapePressed: keyboardCancel()
Behavior on padding { HNumberAnimation {} }
} }

View File

@ -27,8 +27,6 @@ ProgressBar {
height: parent.height height: parent.height
color: foregroundColor color: foregroundColor
Behavior on color { HColorAnimation {} }
HNumberAnimation on x { HNumberAnimation on x {
running: bar.visible && bar.indeterminate running: bar.visible && bar.indeterminate
duration: 800 duration: 800

View File

@ -37,8 +37,6 @@ RadioButton {
theme.controls.checkBox.boxBorder theme.controls.checkBox.boxBorder
Behavior on border.color { HColorAnimation { factor: 0.5 } }
Rectangle { Rectangle {
anchors.centerIn: parent anchors.centerIn: parent
width: parent.width * 0.5 // XXX theme width: parent.width * 0.5 // XXX theme
@ -88,6 +86,4 @@ RadioButton {
Layout.fillWidth: true Layout.fillWidth: true
} }
} }
Behavior on opacity { HNumberAnimation { factor: 2 } }
} }

View File

@ -31,17 +31,12 @@ ScrollBar {
sliderHover.hovered ? theme.controls.scrollBar.hoveredSlider : sliderHover.hovered ? theme.controls.scrollBar.hoveredSlider :
theme.controls.scrollBar.slider theme.controls.scrollBar.slider
Behavior on color { HColorAnimation {} }
HoverHandler { id: sliderHover } HoverHandler { id: sliderHover }
} }
} }
// onFlickableMovingChanged: if (flickableMoving) activeOverride.when = false // onFlickableMovingChanged: if (flickableMoving) activeOverride.when = false
// Behavior on opacity { HNumberAnimation { factor: 2 } }
Behavior on opacity { HNumberAnimation {} }
// Binding on active { // Binding on active {
// id: activeOverride // id: activeOverride
// value: initialVisibilityTimer.running // value: initialVisibilityTimer.running

View File

@ -55,9 +55,6 @@ Slider {
border.color: slider.pressed ? border.color: slider.pressed ?
theme.controls.slider.handle.pressedBorder : theme.controls.slider.handle.pressedBorder :
theme.controls.slider.handle.border theme.controls.slider.handle.border
Behavior on color { HColorAnimation {} }
Behavior on border.color { HColorAnimation {} }
} }
HToolTip { HToolTip {

View File

@ -30,8 +30,6 @@ SpinBox {
opacity: box.value > box.from ? 1 : theme.disabledElementsOpacity opacity: box.value > box.from ? 1 : theme.disabledElementsOpacity
onPressed: if (box.value > box.from) box.decrease() onPressed: if (box.value > box.from) box.decrease()
Layout.fillHeight: true Layout.fillHeight: true
Behavior on opacity { HNumberAnimation {} }
} }
HTextField { HTextField {
@ -62,8 +60,6 @@ SpinBox {
opacity: box.value < box.to ? 1 : theme.disabledElementsOpacity opacity: box.value < box.to ? 1 : theme.disabledElementsOpacity
onPressed: if (box.value < box.to) box.increase() onPressed: if (box.value < box.to) box.increase()
Layout.fillHeight: true Layout.fillHeight: true
Behavior on opacity { HNumberAnimation {} }
} }
} }

View File

@ -22,8 +22,6 @@ HPage {
id: backButton id: backButton
visible: Layout.preferredWidth > 0 visible: Layout.preferredWidth > 0
Layout.preferredWidth: showBackButton ? implicitWidth : 0 Layout.preferredWidth: showBackButton ? implicitWidth : 0
Behavior on Layout.preferredWidth { HNumberAnimation {} }
} }
HLoader { HLoader {
@ -48,9 +46,6 @@ HPage {
overshoot: 2 overshoot: 2
} }
Behavior on implicitWidth { HNumberAnimation {} }
Behavior on implicitHeight { HNumberAnimation {} }
Binding { Binding {
target: tabBarLoader.item target: tabBarLoader.item
property: "currentIndex" property: "currentIndex"

View File

@ -160,10 +160,6 @@ TextArea {
when: disabledText !== null && ! textArea.enabled when: disabledText !== null && ! textArea.enabled
} }
Behavior on opacity { HNumberAnimation {} }
Behavior on color { HColorAnimation {} }
Behavior on placeholderTextColor { HColorAnimation {} }
HLabel { HLabel {
id: disabledTextLabel id: disabledTextLabel
anchors.fill: parent anchors.fill: parent
@ -184,8 +180,6 @@ TextArea {
font.family: parent.font.family font.family: parent.font.family
font.pixelSize: parent.font.pixelSize font.pixelSize: parent.font.pixelSize
Behavior on opacity { HNumberAnimation {} }
} }
HTextContextMenu { HTextContextMenu {

View File

@ -131,10 +131,6 @@ TextField {
when: disabledText !== null && ! field.enabled when: disabledText !== null && ! field.enabled
} }
Behavior on opacity { HNumberAnimation {} }
Behavior on color { HColorAnimation {} }
Behavior on placeholderTextColor { HColorAnimation {} }
HLabel { HLabel {
id: disabledTextLabel id: disabledTextLabel
anchors.fill: parent anchors.fill: parent
@ -155,8 +151,6 @@ TextField {
font.family: parent.font.family font.family: parent.font.family
font.pixelSize: parent.font.pixelSize font.pixelSize: parent.font.pixelSize
Behavior on opacity { HNumberAnimation {} }
} }
HTextContextMenu { id: contextMenu } HTextContextMenu { id: contextMenu }

View File

@ -46,9 +46,6 @@ HButton {
Keys.onSpacePressed: leftClicked() Keys.onSpacePressed: leftClicked()
Keys.onMenuPressed: doRightClick(false) Keys.onMenuPressed: doRightClick(false)
Behavior on topPadding { HNumberAnimation {} }
Behavior on bottomPadding { HNumberAnimation {} }
TapHandler { TapHandler {
acceptedButtons: Qt.LeftButton acceptedButtons: Qt.LeftButton
onTapped: leftClicked() onTapped: leftClicked()

View File

@ -19,8 +19,6 @@ HLabel {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
Behavior on Layout.maximumHeight { HNumberAnimation {} }
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.NoButton acceptedButtons: Qt.NoButton

View File

@ -19,6 +19,4 @@ HLabel {
Layout.maximumWidth: Layout.maximumWidth:
text && tile.width >= hideUnderWidth * theme.uiScale ? text && tile.width >= hideUnderWidth * theme.uiScale ?
implicitWidth : 0 implicitWidth : 0
Behavior on Layout.maximumWidth { HNumberAnimation {} }
} }

View File

@ -27,8 +27,6 @@ HAvatar {
anchors.leftMargin: anchors.topMargin anchors.leftMargin: anchors.topMargin
z: 100 z: 100
Behavior on anchors.topMargin { HNumberAnimation {} }
sourceComponent: HIcon { sourceComponent: HIcon {
small: true small: true
svgName: svgName:

View File

@ -42,8 +42,6 @@ HColumnLayout {
osd.showup ? osd.showup ?
1 : 0 1 : 0
origin.y: osd.height origin.y: osd.height
Behavior on yScale { HNumberAnimation {} }
} }
onShowupChanged: if (showup) osdHideTimer.restart() onShowupChanged: if (showup) osdHideTimer.restart()
@ -190,8 +188,6 @@ HColumnLayout {
(hovered || pressed || volumeButton.hovered) ? (hovered || pressed || volumeButton.hovered) ?
theme.mediaPlayer.controls.volumeSliderWidth : 0 theme.mediaPlayer.controls.volumeSliderWidth : 0
Layout.fillHeight: true Layout.fillHeight: true
Behavior on Layout.preferredWidth { HNumberAnimation {} }
} }
OSDButton { OSDButton {
@ -217,8 +213,6 @@ HColumnLayout {
(hovered || pressed || speedButton.hovered) ? (hovered || pressed || speedButton.hovered) ?
theme.mediaPlayer.controls.speedSliderWidth : 0 theme.mediaPlayer.controls.speedSliderWidth : 0
Layout.fillHeight: true Layout.fillHeight: true
Behavior on Layout.preferredWidth { HNumberAnimation {} }
} }
OSDLabel { OSDLabel {

View File

@ -27,9 +27,6 @@ Rectangle {
border.color: theme.controls.presence.border border.color: theme.controls.presence.border
border.width: theme.controls.presence.borderWidth border.width: theme.controls.presence.borderWidth
Behavior on color { HColorAnimation {} }
Behavior on opacity { HNumberAnimation {} }
HoverHandler { id: presenceHover } HoverHandler { id: presenceHover }
HToolTip { HToolTip {

View File

@ -18,8 +18,6 @@ Rectangle {
accountList.topMargin + accountList.bottomMargin : accountList.topMargin + accountList.bottomMargin :
0 0
Behavior on implicitHeight { HNumberAnimation {} }
HGridView { HGridView {
id: accountList id: accountList
anchors.centerIn: parent anchors.centerIn: parent

View File

@ -53,8 +53,6 @@ HTile {
theme.mainPane.listView.offlineOpacity : theme.mainPane.listView.offlineOpacity :
1 1
Behavior on opacity { HNumberAnimation {} }
HUserAvatar { HUserAvatar {
id: avatar id: avatar
clientUserId: model.id clientUserId: model.id
@ -83,8 +81,6 @@ HTile {
height: width height: width
} }
} }
Behavior on opacity { HNumberAnimation {} }
} }
MessageIndicator { MessageIndicator {
@ -114,8 +110,6 @@ HTile {
) : ) :
theme.mainPane.listView.account.name theme.mainPane.listView.account.name
Behavior on color { HColorAnimation {} }
Layout.leftMargin: theme.spacing Layout.leftMargin: theme.spacing
} }
@ -194,10 +188,8 @@ HTile {
origin.y: expand.iconItem.height / 2 origin.y: expand.iconItem.height / 2
angle: expand.loading ? 0 : collapsed ? 180 : 90 angle: expand.loading ? 0 : collapsed ? 180 : 90
Behavior on angle { HNumberAnimation {} }
} }
Behavior on Layout.maximumWidth { HNumberAnimation {} }
} }
} }

View File

@ -67,8 +67,6 @@ Rectangle {
if (window.settings.RoomList.escape_clears_filter) text = "" if (window.settings.RoomList.escape_clears_filter) text = ""
} }
Behavior on opacity { HNumberAnimation {} }
HShortcut { HShortcut {
sequences: window.settings.Keys.Rooms.clear_filter sequences: window.settings.Keys.Rooms.clear_filter
onActivated: filterField.text = "" onActivated: filterField.text = ""

View File

@ -28,8 +28,6 @@ HDrawer {
minimumSize: minimumSize:
window.settings.RoomList.min_width * window.settings.General.zoom window.settings.RoomList.min_width * window.settings.General.zoom
Behavior on opacity { HNumberAnimation {} }
Binding on visible { Binding on visible {
value: false value: false
when: ! mainUI.accountsPresent when: ! mainUI.accountsPresent

View File

@ -59,11 +59,6 @@ HLabel {
indicatorTheme.highlightBorder : indicatorTheme.highlightBorder :
indicatorTheme.border indicatorTheme.border
Behavior on radius { HColorAnimation {} }
Behavior on color { HColorAnimation {} }
Behavior on border.color { HColorAnimation {} }
} }
Behavior on scale { HNumberAnimation {} }
Behavior on color { HColorAnimation {} }
} }

View File

@ -43,8 +43,6 @@ HTile {
theme.mainPane.listView.room.leftRoomOpacity : theme.mainPane.listView.room.leftRoomOpacity :
1 1
Behavior on opacity { HNumberAnimation {} }
HRoomAvatar { HRoomAvatar {
id: avatar id: avatar
clientUserId: model.for_account clientUserId: model.for_account
@ -53,8 +51,6 @@ HTile {
mxc: model.avatar_url mxc: model.avatar_url
compact: room.compact compact: room.compact
radius: theme.mainPane.listView.room.avatarRadius radius: theme.mainPane.listView.room.avatarRadius
Behavior on radius { HNumberAnimation {} }
} }
HColumnLayout { HColumnLayout {
@ -144,8 +140,6 @@ HTile {
visible: invited visible: invited
Layout.maximumWidth: invited ? implicitWidth : 0 Layout.maximumWidth: invited ? implicitWidth : 0
Behavior on Layout.maximumWidth { HNumberAnimation {} }
} }
} }

View File

@ -154,8 +154,6 @@ Rectangle {
Layout.preferredWidth: mainPane.collapse ? implicitWidth : 0 Layout.preferredWidth: mainPane.collapse ? implicitWidth : 0
Layout.fillHeight: true Layout.fillHeight: true
Behavior on Layout.preferredWidth { HNumberAnimation {} }
} }
} }
} }

View File

@ -17,8 +17,6 @@ HLoader {
property int historyLength: 20 property int historyLength: 20
property int historyPosition: 0 property int historyPosition: 0
readonly property alias appearAnimation: appearAnimation
signal aboutToRecycle() signal aboutToRecycle()
signal recycled() signal recycled()
signal previousShown(string componentUrl, var properties) signal previousShown(string componentUrl, var properties)
@ -98,10 +96,10 @@ HLoader {
if (mainPane.collapse) mainPane.close() if (mainPane.collapse) mainPane.close()
} }
clip: appearAnimation.running clip: false
onLoaded: { takeFocus(); appearAnimation.restart() } onLoaded: { takeFocus(); }
onRecycled: { takeFocus(); appearAnimation.restart() } onRecycled: { takeFocus(); }
Component.onCompleted: { Component.onCompleted: {
if (! py.startupAnyAccountsSaved) { if (! py.startupAnyAccountsSaved) {
@ -112,16 +110,6 @@ HLoader {
pageLoader.show(window.uiState.page, window.uiState.pageProperties) 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 { HShortcut {
sequences: window.settings.Keys.last_page sequences: window.settings.Keys.last_page
onActivated: showPrevious() onActivated: showPrevious()

View File

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

View File

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

View File

@ -98,8 +98,6 @@ Item {
source: ready ? "ChatPage.qml" : "" source: ready ? "ChatPage.qml" : ""
Behavior on anchors.rightMargin { HNumberAnimation {} }
HLoader { HLoader {
anchors.centerIn: parent anchors.centerIn: parent
width: 96 * theme.uiScale width: 96 * theme.uiScale
@ -108,8 +106,6 @@ Item {
source: "../../Base/HBusyIndicator.qml" source: "../../Base/HBusyIndicator.qml"
active: ready ? 0 : longLoading ? 1 : 0 active: ready ? 0 : longLoading ? 1 : 0
opacity: active ? 1 : 0 opacity: active ? 1 : 0
Behavior on opacity { HNumberAnimation { factor: 2 } }
} }
} }

View File

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

View File

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

View File

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

View File

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

View File

@ -14,8 +14,6 @@ Rectangle {
implicitHeight: label.text ? rowLayout.height : 0 implicitHeight: label.text ? rowLayout.height : 0
opacity: implicitHeight ? 1 : 0 opacity: implicitHeight ? 1 : 0
Behavior on implicitHeight { HNumberAnimation {} }
HRowLayout { HRowLayout {
id: rowLayout id: rowLayout
width: parent.width width: parent.width

View File

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

View File

@ -55,8 +55,6 @@ HTile {
(model.display_name || model.id.substring(1)) (model.display_name || model.id.substring(1))
) : ) :
theme.chat.roomPane.listView.member.name theme.chat.roomPane.listView.member.name
Behavior on color { HColorAnimation {} }
} }
TitleRightInfoLabel { TitleRightInfoLabel {
@ -197,9 +195,6 @@ HTile {
Component.onDestruction: Component.onDestruction:
if (getPresenceFutureId) py.cancelCoro(getPresenceFutureId) if (getPresenceFutureId) py.cancelCoro(getPresenceFutureId)
Behavior on contentOpacity { HNumberAnimation {} }
Behavior on spacing { HNumberAnimation {} }
Binding on spacing { Binding on spacing {
value: (roomPane.minimumSize - avatar.width) / 2 value: (roomPane.minimumSize - avatar.width) / 2
when: avatar && roomPane.width < avatar.width + theme.spacing * 2 when: avatar && roomPane.width < avatar.width + theme.spacing * 2

View File

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

View File

@ -141,8 +141,6 @@ HColumnLayout {
if (window.settings.RoomList.escape_clears_filter) if (window.settings.RoomList.escape_clears_filter)
text = "" text = ""
} }
Behavior on opacity { HNumberAnimation {} }
} }
HColumnLayout { HColumnLayout {
@ -192,8 +190,6 @@ HColumnLayout {
filterField.width < 32 * theme.uiScale ? filterField.width < 32 * theme.uiScale ?
filterField.implicitHeight : filterField.implicitHeight :
0 0
Behavior on Layout.preferredHeight { HNumberAnimation {} }
} }
} }
} }

View File

@ -313,8 +313,6 @@ HRowLayout {
theme.chat.message.background theme.chat.message.background
Behavior on color { HColorAnimation {} }
Rectangle { Rectangle {
visible: model.event_type === "RoomMessageNotice" visible: model.event_type === "RoomMessageNotice"
// y: parent.height / 2 - height / 2 // y: parent.height / 2 - height / 2

View File

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

View File

@ -133,8 +133,6 @@ HMxcImage {
textFormat: Text.StyledText textFormat: Text.StyledText
opacity: hover.hovered || eventDelegate.isFocused ? 0 : 1 opacity: hover.hovered || eventDelegate.isFocused ? 0 : 1
visible: opacity > 0 visible: opacity > 0
Behavior on opacity { HNumberAnimation {} }
} }
EventImageTextBubble { EventImageTextBubble {
@ -145,8 +143,6 @@ HMxcImage {
textFormat: Text.RichText textFormat: Text.RichText
opacity: hover.hovered || eventDelegate.isFocused ? 0 : 1 opacity: hover.hovered || eventDelegate.isFocused ? 0 : 1
visible: opacity > 0 visible: opacity > 0
Behavior on opacity { HNumberAnimation {} }
} }
Rectangle { Rectangle {
@ -157,7 +153,5 @@ HMxcImage {
eventDelegate.checked ? eventDelegate.checked ?
theme.chat.message.thumbnailCheckedOverlayOpacity : theme.chat.message.thumbnailCheckedOverlayOpacity :
0 0
Behavior on opacity { HNumberAnimation {} }
} }
} }

View File

@ -522,8 +522,6 @@ Rectangle {
opacity: eventList.loadPastEventsFutureId ? 1 : 0 opacity: eventList.loadPastEventsFutureId ? 1 : 0
visible: opacity > 0 visible: opacity > 0
Behavior on opacity { HNumberAnimation {} }
HButton { HButton {
readonly property bool offline: readonly property bool offline:
chat.userInfo.presence === "offline" chat.userInfo.presence === "offline"

View File

@ -141,8 +141,6 @@ HPopup {
maxTitleWidth: y <= 0 ? -1 : buttons.x - buttons.width / 2 maxTitleWidth: y <= 0 ? -1 : buttons.x - buttons.width / 2
Behavior on y { HNumberAnimation {} }
HoverHandler { id: infoHover } HoverHandler { id: infoHover }
} }
@ -153,8 +151,6 @@ HPopup {
y: parent.height - (popup.autoHide ? 0 : height) y: parent.height - (popup.autoHide ? 0 : height)
viewer: popup viewer: popup
Behavior on y { HNumberAnimation {} }
HoverHandler { id: buttonsHover } HoverHandler { id: buttonsHover }
} }
} }

View File

@ -165,8 +165,6 @@ HFlickable {
cryptDict: viewer.fullCryptDict cryptDict: viewer.fullCryptDict
// Image never loads at 0 opacity or with visible: false // Image never loads at 0 opacity or with visible: false
opacity: status === HMxcImage.Ready ? 1 : 0.01 opacity: status === HMxcImage.Ready ? 1 : 0.01
Behavior on opacity { HNumberAnimation {} }
} }
Item { Item {

View File

@ -18,8 +18,6 @@ Rectangle {
implicitHeight: Math.max(theme.baseElementsHeight, childrenRect.height) implicitHeight: Math.max(theme.baseElementsHeight, childrenRect.height)
color: utils.hsluv(0, 0, 0, 0.8) color: utils.hsluv(0, 0, 0, 0.8)
Behavior on implicitHeight { HNumberAnimation {} }
AutoDirectionLayout { AutoDirectionLayout {
id: layout id: layout
width: parent.width - theme.spacing * 2 width: parent.width - theme.spacing * 2
@ -90,8 +88,6 @@ Rectangle {
Layout.alignment: Qt.AlignCenter Layout.alignment: Qt.AlignCenter
Layout.preferredWidth: active ? height : 0 Layout.preferredWidth: active ? height : 0
Layout.preferredHeight: theme.baseElementsHeight - theme.spacing Layout.preferredHeight: theme.baseElementsHeight - theme.spacing
Behavior on Layout.preferredWidth { HNumberAnimation {} }
} }
Item { Item {

View File

@ -9,6 +9,4 @@ HLabel {
opacity: enabled ? 1 : theme.disabledElementsOpacity opacity: enabled ? 1 : theme.disabledElementsOpacity
wrapMode: HLabel.Wrap wrapMode: HLabel.Wrap
Layout.fillWidth: true Layout.fillWidth: true
Behavior on opacity { HNumberAnimation {} }
} }

View File

@ -97,8 +97,6 @@ HColumnLayout {
color: theme.colors.dimText color: theme.colors.dimText
visible: Layout.preferredHeight > 0 visible: Layout.preferredHeight > 0
Layout.preferredHeight: conditionRepeater.count ? 0 : implicitHeight Layout.preferredHeight: conditionRepeater.count ? 0 : implicitHeight
Behavior on Layout.preferredHeight { HNumberAnimation {} }
} }
Repeater { Repeater {

View File

@ -180,8 +180,6 @@ HFlickableColumnPopup {
Layout.fillWidth: true Layout.fillWidth: true
Behavior on implicitHeight { HNumberAnimation {} }
GeneralRule { enabled: SwipeView.isCurrentItem } GeneralRule { enabled: SwipeView.isCurrentItem }
ContentRule { enabled: SwipeView.isCurrentItem } ContentRule { enabled: SwipeView.isCurrentItem }
RoomRule { enabled: SwipeView.isCurrentItem } RoomRule { enabled: SwipeView.isCurrentItem }

View File

@ -126,8 +126,6 @@ ApplicationWindow {
ArgumentParser.ready && py.ready ? ArgumentParser.ready && py.ready ?
(ArgumentParser.loadQml || "UI.qml") : (ArgumentParser.loadQml || "UI.qml") :
"" ""
Behavior on scale { HNumberAnimation { overshoot: 3; factor: 1.2 } }
} }
TrayIcon { TrayIcon {