Files
z-bar-qt/Components/CustomText.qml
T
zach 3f5cc2de07
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 13s
Python / lint-format (pull_request) Successful in 18s
Python / test (pull_request) Successful in 32s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m13s
MaterialIcon opsz clamp, UPower popout and widget changes, improved SysTray hover detection logic
2026-06-14 12:47:20 +02:00

49 lines
870 B
QML

pragma ComponentBehavior: Bound
import QtQuick
import qs.Config
Text {
id: root
property bool animate: false
property int animateDuration: 400
property real animateFrom: 0
property string animateProp: "scale"
property real animateTo: 1
color: DynamicColors.palette.m3onSurface
font.family: Appearance.font.family.sans
font.pointSize: Appearance.font.size.normal
linkColor: DynamicColors.palette.m3onPrimaryFixedVariant
renderType: Text.NativeRendering
textFormat: Text.PlainText
Behavior on color {
CAnim {
}
}
Behavior on text {
enabled: root.animate
SequentialAnimation {
Anim {
property: root.animateProp
target: root
to: root.animateFrom
type: Anim.FastEffects
}
PropertyAction {
}
Anim {
property: root.animateProp
target: root
to: root.animateTo
type: Anim.DefaultEffects
}
}
}
}