refactor: no need to explicitly type as default spatial
Default spatial is the default type, so no need to type anims as such
This commit is contained in:
parent
7ea5fd3c70
commit
158588ce89
30 changed files with 42 additions and 130 deletions
|
|
@ -90,9 +90,7 @@ MouseArea {
|
||||||
origin.y: root.thisSideY === Menu.Bottom ? menu.height : 0
|
origin.y: root.thisSideY === Menu.Bottom ? menu.height : 0
|
||||||
|
|
||||||
Behavior on yScale {
|
Behavior on yScale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,6 @@ Item {
|
||||||
properties: "opacity,scale"
|
properties: "opacity,scale"
|
||||||
from: 0
|
from: 0
|
||||||
to: 1
|
to: 1
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -145,7 +144,6 @@ Item {
|
||||||
}
|
}
|
||||||
Anim {
|
Anim {
|
||||||
properties: "x,y"
|
properties: "x,y"
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -168,17 +168,17 @@ MouseArea {
|
||||||
to: 0
|
to: 0
|
||||||
type: Anim.StandardLarge
|
type: Anim.StandardLarge
|
||||||
}
|
}
|
||||||
ExAnim {
|
Anim {
|
||||||
target: root
|
target: root
|
||||||
properties: "rsx,rsy"
|
properties: "rsx,rsy"
|
||||||
to: 0
|
to: 0
|
||||||
}
|
}
|
||||||
ExAnim {
|
Anim {
|
||||||
target: root
|
target: root
|
||||||
property: "sw"
|
property: "sw"
|
||||||
to: root.screen.width
|
to: root.screen.width
|
||||||
}
|
}
|
||||||
ExAnim {
|
Anim {
|
||||||
target: root
|
target: root
|
||||||
property: "sh"
|
property: "sh"
|
||||||
to: root.screen.height
|
to: root.screen.height
|
||||||
|
|
@ -284,28 +284,24 @@ MouseArea {
|
||||||
Behavior on rsx {
|
Behavior on rsx {
|
||||||
enabled: !root.pressed
|
enabled: !root.pressed
|
||||||
|
|
||||||
ExAnim {}
|
Anim {}
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on rsy {
|
Behavior on rsy {
|
||||||
enabled: !root.pressed
|
enabled: !root.pressed
|
||||||
|
|
||||||
ExAnim {}
|
Anim {}
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on sw {
|
Behavior on sw {
|
||||||
enabled: !root.pressed
|
enabled: !root.pressed
|
||||||
|
|
||||||
ExAnim {}
|
Anim {}
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on sh {
|
Behavior on sh {
|
||||||
enabled: !root.pressed
|
enabled: !root.pressed
|
||||||
|
|
||||||
ExAnim {}
|
Anim {}
|
||||||
}
|
|
||||||
|
|
||||||
component ExAnim: Anim {
|
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -150,9 +150,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on clockScale {
|
Behavior on clockScale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitWidth {
|
Behavior on implicitWidth {
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,6 @@ Item {
|
||||||
Anim {
|
Anim {
|
||||||
target: root
|
target: root
|
||||||
property: "implicitWidth"
|
property: "implicitWidth"
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Transition {
|
Transition {
|
||||||
|
|
|
||||||
|
|
@ -99,9 +99,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
component Title: StyledText {
|
component Title: StyledText {
|
||||||
|
|
|
||||||
|
|
@ -117,8 +117,6 @@ StyledRect {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,9 +33,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on offsetScale {
|
Behavior on offsetScale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on x {
|
Behavior on x {
|
||||||
|
|
|
||||||
|
|
@ -102,15 +102,11 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitWidth {
|
Behavior on implicitWidth {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -159,7 +155,6 @@ Item {
|
||||||
|
|
||||||
Anim {
|
Anim {
|
||||||
properties: "implicitWidth,implicitHeight"
|
properties: "implicitWidth,implicitHeight"
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -252,9 +252,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,9 +39,7 @@ Item {
|
||||||
opacity: 1 - offsetScale
|
opacity: 1 - offsetScale
|
||||||
|
|
||||||
Behavior on offsetScale {
|
Behavior on offsetScale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
|
||||||
|
|
@ -73,21 +73,15 @@ StyledWindow {
|
||||||
anchors.right: true
|
anchors.right: true
|
||||||
|
|
||||||
Behavior on borderThickness {
|
Behavior on borderThickness {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on borderRounding {
|
Behavior on borderRounding {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on shadowOpacity {
|
Behavior on shadowOpacity {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
HyprlandFocusGrab {
|
||||||
|
|
@ -218,9 +212,7 @@ StyledWindow {
|
||||||
implicitWidth: panels.popouts.width * (1 + extraWidth)
|
implicitWidth: panels.popouts.width * (1 + extraWidth)
|
||||||
|
|
||||||
Behavior on extraWidth {
|
Behavior on extraWidth {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,9 +41,7 @@ StyledListView {
|
||||||
implicitHeight: root.currentItem?.implicitHeight ?? 0
|
implicitHeight: root.currentItem?.implicitHeight ?? 0
|
||||||
|
|
||||||
Behavior on y {
|
Behavior on y {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,9 +40,7 @@ Item {
|
||||||
Component.onCompleted: Qt.callLater(() => Apps) // Load apps on init
|
Component.onCompleted: Qt.callLater(() => Apps) // Load apps on init
|
||||||
|
|
||||||
Behavior on offsetScale {
|
Behavior on offsetScale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ WlSessionLockSurface {
|
||||||
target: lockContent
|
target: lockContent
|
||||||
properties: "implicitWidth,implicitHeight"
|
properties: "implicitWidth,implicitHeight"
|
||||||
to: lockContent.size
|
to: lockContent.size
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
Anim {
|
Anim {
|
||||||
target: lockBg
|
target: lockBg
|
||||||
|
|
@ -47,7 +46,6 @@ WlSessionLockSurface {
|
||||||
target: content
|
target: content
|
||||||
property: "scale"
|
property: "scale"
|
||||||
to: 0
|
to: 0
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
Anim {
|
Anim {
|
||||||
target: content
|
target: content
|
||||||
|
|
@ -136,7 +134,6 @@ WlSessionLockSurface {
|
||||||
target: content
|
target: content
|
||||||
property: "scale"
|
property: "scale"
|
||||||
to: 1
|
to: 1
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
Anim {
|
Anim {
|
||||||
target: lockBg
|
target: lockBg
|
||||||
|
|
@ -147,13 +144,11 @@ WlSessionLockSurface {
|
||||||
target: lockContent
|
target: lockContent
|
||||||
property: "implicitWidth"
|
property: "implicitWidth"
|
||||||
to: (root.screen?.height ?? 0) * lockContent.Tokens.sizes.lock.heightMult * lockContent.Tokens.sizes.lock.ratio
|
to: (root.screen?.height ?? 0) * lockContent.Tokens.sizes.lock.heightMult * lockContent.Tokens.sizes.lock.ratio
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
Anim {
|
Anim {
|
||||||
target: lockContent
|
target: lockContent
|
||||||
property: "implicitHeight"
|
property: "implicitHeight"
|
||||||
to: (root.screen?.height ?? 0) * lockContent.Tokens.sizes.lock.heightMult
|
to: (root.screen?.height ?? 0) * lockContent.Tokens.sizes.lock.heightMult
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,6 @@ ColumnLayout {
|
||||||
property: "scale"
|
property: "scale"
|
||||||
from: 0
|
from: 0
|
||||||
to: 1
|
to: 1
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -125,7 +124,6 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
Anim {
|
Anim {
|
||||||
property: "y"
|
property: "y"
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -137,7 +135,6 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
Anim {
|
Anim {
|
||||||
property: "y"
|
property: "y"
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -300,9 +300,7 @@ StyledRect {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
component NotifLine: StyledText {
|
component NotifLine: StyledText {
|
||||||
|
|
|
||||||
|
|
@ -99,9 +99,7 @@ StyledRect {
|
||||||
implicitHeight: root.nonAnimHeight
|
implicitHeight: root.nonAnimHeight
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,7 @@ Item {
|
||||||
opacity: 1 - offsetScale
|
opacity: 1 - offsetScale
|
||||||
|
|
||||||
Behavior on offsetScale {
|
Behavior on offsetScale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,7 @@ Item {
|
||||||
opacity: 1 - offsetScale
|
opacity: 1 - offsetScale
|
||||||
|
|
||||||
Behavior on offsetScale {
|
Behavior on offsetScale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
|
||||||
|
|
@ -123,9 +123,7 @@ StyledRect {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
component ExpandedBody: ColumnLayout {
|
component ExpandedBody: ColumnLayout {
|
||||||
|
|
|
||||||
|
|
@ -128,9 +128,7 @@ LazyListView {
|
||||||
Behavior on y {
|
Behavior on y {
|
||||||
enabled: notif.LazyListView.ready
|
enabled: notif.LazyListView.ready
|
||||||
|
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
|
|
@ -140,15 +138,11 @@ LazyListView {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on scale {
|
Behavior on scale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on x {
|
Behavior on x {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -158,6 +152,5 @@ LazyListView {
|
||||||
|
|
||||||
target: root.container
|
target: root.container
|
||||||
property: "contentY"
|
property: "contentY"
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,9 +61,7 @@ StyledRect {
|
||||||
color: Colours.layer(Colours.palette.m3surfaceContainer, 2)
|
color: Colours.layer(Colours.palette.m3surfaceContainer, 2)
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
@ -221,15 +219,11 @@ StyledRect {
|
||||||
Layout.topMargin: root.expanded ? -Math.floor(Tokens.padding.extraSmall) : 0
|
Layout.topMargin: root.expanded ? -Math.floor(Tokens.padding.extraSmall) : 0
|
||||||
|
|
||||||
Behavior on rotation {
|
Behavior on rotation {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on Layout.topMargin {
|
Behavior on Layout.topMargin {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -132,9 +132,7 @@ LazyListView {
|
||||||
Behavior on y {
|
Behavior on y {
|
||||||
enabled: notif.LazyListView.ready
|
enabled: notif.LazyListView.ready
|
||||||
|
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
|
|
@ -148,9 +146,7 @@ LazyListView {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on x {
|
Behavior on x {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,7 @@ Item {
|
||||||
opacity: 1 - offsetScale
|
opacity: 1 - offsetScale
|
||||||
|
|
||||||
Behavior on offsetScale {
|
Behavior on offsetScale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
|
||||||
|
|
@ -202,9 +202,7 @@ Loader {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on scale {
|
Behavior on scale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,9 +64,7 @@ Item {
|
||||||
]
|
]
|
||||||
|
|
||||||
Behavior on offsetScale {
|
Behavior on offsetScale {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
|
||||||
|
|
@ -100,9 +100,7 @@ StyledRect {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on anchors.bottomMargin {
|
Behavior on anchors.bottomMargin {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
|
|
@ -117,8 +115,6 @@ StyledRect {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -232,9 +232,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,6 @@ Item {
|
||||||
properties: "opacity,scale"
|
properties: "opacity,scale"
|
||||||
from: 0
|
from: 0
|
||||||
to: 1
|
to: 1
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ParallelAnimation {
|
ParallelAnimation {
|
||||||
|
|
@ -149,9 +148,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on anchors.bottomMargin {
|
Behavior on anchors.bottomMargin {
|
||||||
Anim {
|
Anim {}
|
||||||
type: Anim.DefaultSpatial
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue