Merge branch 'remove-animation' into 'main'
Remove animation See merge request mx-moment/moment!17
This commit is contained in:
commit
51a163bd73
|
@ -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 {
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,4 @@ HColumnPage {
|
||||||
to: 1
|
to: 1
|
||||||
overshoot: 2
|
overshoot: 2
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitWidth { HNumberAnimation {} }
|
|
||||||
Behavior on implicitHeight { HNumberAnimation {} }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 } }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 } }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 }
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 = ""
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 } }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,26 +116,8 @@ Item {
|
||||||
sourceComponent: RoomPane {
|
sourceComponent: RoomPane {
|
||||||
id: roomPane
|
id: roomPane
|
||||||
|
|
||||||
readonly property alias appearAnimation: appearAnimation
|
|
||||||
|
|
||||||
referenceSizeParent: chat
|
referenceSizeParent: chat
|
||||||
maximumSize: chat.width - theme.minimumSupportedWidth * 1.5
|
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.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 {
|
||||||
|
|
|
@ -125,8 +125,6 @@ Rectangle {
|
||||||
|
|
||||||
Layout.fillWidth: false
|
Layout.fillWidth: false
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
Behavior on implicitWidth { HNumberAnimation {} }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CancelButton {
|
CancelButton {
|
||||||
|
|
|
@ -30,8 +30,6 @@ HColumnLayout {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on height { HNumberAnimation {} }
|
|
||||||
|
|
||||||
DelegateTransitionFixer {}
|
DelegateTransitionFixer {}
|
||||||
|
|
||||||
HRowLayout {
|
HRowLayout {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,6 @@ import "../../../PythonBridge"
|
||||||
import "../../../ShortcutBundles"
|
import "../../../ShortcutBundles"
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
readonly property var modelSyncId:
|
|
||||||
[chat.userRoomId[0], chat.userRoomId[1], "events"]
|
|
||||||
|
|
||||||
readonly property alias eventList: eventList
|
readonly property alias eventList: eventList
|
||||||
readonly property alias contextMenu: contextMenu
|
readonly property alias contextMenu: contextMenu
|
||||||
|
@ -508,6 +506,7 @@ Rectangle {
|
||||||
bottomMargin: theme.spacing
|
bottomMargin: theme.spacing
|
||||||
verticalLayoutDirection: ListView.BottomToTop
|
verticalLayoutDirection: ListView.BottomToTop
|
||||||
|
|
||||||
|
model: ModelStore.get(chat.userRoomId[0], chat.userRoomId[1], "events")
|
||||||
delegate: EventDelegate {}
|
delegate: EventDelegate {}
|
||||||
|
|
||||||
highlight: Rectangle {
|
highlight: Rectangle {
|
||||||
|
@ -522,8 +521,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"
|
||||||
|
@ -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 {
|
Timer {
|
||||||
id: increaseBufferTimer
|
id: increaseBufferTimer
|
||||||
interval: 1000
|
interval: 1000
|
||||||
|
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {} }
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 }
|
||||||
|
|
|
@ -128,8 +128,6 @@ ApplicationWindow {
|
||||||
py.ready ?
|
py.ready ?
|
||||||
(loadQml || "UI.qml") :
|
(loadQml || "UI.qml") :
|
||||||
""
|
""
|
||||||
|
|
||||||
Behavior on scale { HNumberAnimation { overshoot: 3; factor: 1.2 } }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TrayIcon {
|
TrayIcon {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user