forked from Shinonome/dots-hyprland
add missing animations to android toggles
This commit is contained in:
+9
-2
@@ -77,6 +77,13 @@ GroupButton {
|
|||||||
return ColorUtils.transparentize(baseColor, transparentizeAmount)
|
return ColorUtils.transparentize(baseColor, transparentizeAmount)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Behavior on radius {
|
||||||
|
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
|
||||||
|
}
|
||||||
|
Behavior on color {
|
||||||
|
animation: Appearance.animation.elementMoveFast.colorAnimation.createObject(this)
|
||||||
|
}
|
||||||
|
|
||||||
MaterialSymbol {
|
MaterialSymbol {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
fill: root.toggled ? 1 : 0
|
fill: root.toggled ? 1 : 0
|
||||||
@@ -98,6 +105,7 @@ GroupButton {
|
|||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
font.pixelSize: Appearance.font.pixelSize.smallie
|
font.pixelSize: Appearance.font.pixelSize.smallie
|
||||||
|
font.weight: 600
|
||||||
color: root.colText
|
color: root.colText
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
text: root.name
|
text: root.name
|
||||||
@@ -111,9 +119,8 @@ GroupButton {
|
|||||||
}
|
}
|
||||||
font {
|
font {
|
||||||
pixelSize: Appearance.font.pixelSize.smaller
|
pixelSize: Appearance.font.pixelSize.smaller
|
||||||
weight: Font.Light
|
|
||||||
}
|
}
|
||||||
color: root.colText
|
color: Appearance.colors.colSubtext
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
text: root.statusText
|
text: root.statusText
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user