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:
2 * r + 2 * t 2026-04-23 03:47:56 +10:00
parent 7ea5fd3c70
commit 158588ce89
30 changed files with 42 additions and 130 deletions

View file

@ -90,9 +90,7 @@ MouseArea {
origin.y: root.thisSideY === Menu.Bottom ? menu.height : 0
Behavior on yScale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}

View file

@ -120,7 +120,6 @@ Item {
properties: "opacity,scale"
from: 0
to: 1
type: Anim.DefaultSpatial
}
}
@ -145,7 +144,6 @@ Item {
}
Anim {
properties: "x,y"
type: Anim.DefaultSpatial
}
}
}

View file

@ -168,17 +168,17 @@ MouseArea {
to: 0
type: Anim.StandardLarge
}
ExAnim {
Anim {
target: root
properties: "rsx,rsy"
to: 0
}
ExAnim {
Anim {
target: root
property: "sw"
to: root.screen.width
}
ExAnim {
Anim {
target: root
property: "sh"
to: root.screen.height
@ -284,28 +284,24 @@ MouseArea {
Behavior on rsx {
enabled: !root.pressed
ExAnim {}
Anim {}
}
Behavior on rsy {
enabled: !root.pressed
ExAnim {}
Anim {}
}
Behavior on sw {
enabled: !root.pressed
ExAnim {}
Anim {}
}
Behavior on sh {
enabled: !root.pressed
ExAnim {}
}
component ExAnim: Anim {
type: Anim.DefaultSpatial
Anim {}
}
}

View file

@ -150,9 +150,7 @@ Item {
}
Behavior on clockScale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Behavior on implicitWidth {

View file

@ -57,7 +57,6 @@ Item {
Anim {
target: root
property: "implicitWidth"
type: Anim.DefaultSpatial
}
},
Transition {

View file

@ -99,9 +99,7 @@ Item {
}
Behavior on implicitHeight {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
component Title: StyledText {

View file

@ -117,8 +117,6 @@ StyledRect {
}
Behavior on implicitHeight {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}

View file

@ -33,9 +33,7 @@ Item {
}
Behavior on offsetScale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Behavior on x {

View file

@ -102,15 +102,11 @@ Item {
}
Behavior on implicitWidth {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Behavior on implicitHeight {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}
}
@ -159,7 +155,6 @@ Item {
Anim {
properties: "implicitWidth,implicitHeight"
type: Anim.DefaultSpatial
}
}

View file

@ -252,9 +252,7 @@ ColumnLayout {
}
Behavior on implicitHeight {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}
}

View file

@ -39,9 +39,7 @@ Item {
opacity: 1 - offsetScale
Behavior on offsetScale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Loader {

View file

@ -73,21 +73,15 @@ StyledWindow {
anchors.right: true
Behavior on borderThickness {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Behavior on borderRounding {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Behavior on shadowOpacity {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
HyprlandFocusGrab {
@ -218,9 +212,7 @@ StyledWindow {
implicitWidth: panels.popouts.width * (1 + extraWidth)
Behavior on extraWidth {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}
}

View file

@ -41,9 +41,7 @@ StyledListView {
implicitHeight: root.currentItem?.implicitHeight ?? 0
Behavior on y {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}

View file

@ -40,9 +40,7 @@ Item {
Component.onCompleted: Qt.callLater(() => Apps) // Load apps on init
Behavior on offsetScale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Loader {

View file

@ -36,7 +36,6 @@ WlSessionLockSurface {
target: lockContent
properties: "implicitWidth,implicitHeight"
to: lockContent.size
type: Anim.DefaultSpatial
}
Anim {
target: lockBg
@ -47,7 +46,6 @@ WlSessionLockSurface {
target: content
property: "scale"
to: 0
type: Anim.DefaultSpatial
}
Anim {
target: content
@ -136,7 +134,6 @@ WlSessionLockSurface {
target: content
property: "scale"
to: 1
type: Anim.DefaultSpatial
}
Anim {
target: lockBg
@ -147,13 +144,11 @@ WlSessionLockSurface {
target: lockContent
property: "implicitWidth"
to: (root.screen?.height ?? 0) * lockContent.Tokens.sizes.lock.heightMult * lockContent.Tokens.sizes.lock.ratio
type: Anim.DefaultSpatial
}
Anim {
target: lockContent
property: "implicitHeight"
to: (root.screen?.height ?? 0) * lockContent.Tokens.sizes.lock.heightMult
type: Anim.DefaultSpatial
}
}
}

View file

@ -101,7 +101,6 @@ ColumnLayout {
property: "scale"
from: 0
to: 1
type: Anim.DefaultSpatial
}
}
@ -125,7 +124,6 @@ ColumnLayout {
}
Anim {
property: "y"
type: Anim.DefaultSpatial
}
}
@ -137,7 +135,6 @@ ColumnLayout {
}
Anim {
property: "y"
type: Anim.DefaultSpatial
}
}
}

View file

@ -300,9 +300,7 @@ StyledRect {
}
Behavior on implicitHeight {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
component NotifLine: StyledText {

View file

@ -99,9 +99,7 @@ StyledRect {
implicitHeight: root.nonAnimHeight
Behavior on implicitHeight {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Loader {

View file

@ -45,9 +45,7 @@ Item {
opacity: 1 - offsetScale
Behavior on offsetScale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Connections {

View file

@ -22,9 +22,7 @@ Item {
opacity: 1 - offsetScale
Behavior on offsetScale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Loader {

View file

@ -123,9 +123,7 @@ StyledRect {
}
Behavior on implicitHeight {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
component ExpandedBody: ColumnLayout {

View file

@ -128,9 +128,7 @@ LazyListView {
Behavior on y {
enabled: notif.LazyListView.ready
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Behavior on opacity {
@ -140,15 +138,11 @@ LazyListView {
}
Behavior on scale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Behavior on x {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}
}
@ -158,6 +152,5 @@ LazyListView {
target: root.container
property: "contentY"
type: Anim.DefaultSpatial
}
}

View file

@ -61,9 +61,7 @@ StyledRect {
color: Colours.layer(Colours.palette.m3surfaceContainer, 2)
Behavior on implicitHeight {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
RowLayout {
@ -221,15 +219,11 @@ StyledRect {
Layout.topMargin: root.expanded ? -Math.floor(Tokens.padding.extraSmall) : 0
Behavior on rotation {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Behavior on Layout.topMargin {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}
}

View file

@ -132,9 +132,7 @@ LazyListView {
Behavior on y {
enabled: notif.LazyListView.ready
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Behavior on opacity {
@ -148,9 +146,7 @@ LazyListView {
}
Behavior on x {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}
}

View file

@ -19,9 +19,7 @@ Item {
opacity: 1 - offsetScale
Behavior on offsetScale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Loader {

View file

@ -202,9 +202,7 @@ Loader {
}
Behavior on scale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}
}

View file

@ -64,9 +64,7 @@ Item {
]
Behavior on offsetScale {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Loader {

View file

@ -100,9 +100,7 @@ StyledRect {
}
Behavior on anchors.bottomMargin {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
Behavior on opacity {
@ -117,8 +115,6 @@ StyledRect {
}
Behavior on implicitHeight {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}

View file

@ -232,9 +232,7 @@ ColumnLayout {
}
Behavior on implicitHeight {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}
}

View file

@ -111,7 +111,6 @@ Item {
properties: "opacity,scale"
from: 0
to: 1
type: Anim.DefaultSpatial
}
ParallelAnimation {
@ -149,9 +148,7 @@ Item {
}
Behavior on anchors.bottomMargin {
Anim {
type: Anim.DefaultSpatial
}
Anim {}
}
}
}