32 lines
694 B
QML
32 lines
694 B
QML
import qs.config
|
|
import QtQuick
|
|
|
|
CustomText {
|
|
id: root
|
|
|
|
property real fill
|
|
property int grade: -25
|
|
property bool animateAxes: true
|
|
|
|
Behavior on font.variableAxes {
|
|
enabled: root.animateAxes && root.animate
|
|
|
|
SequentialAnimation {
|
|
PauseAnimation {
|
|
duration: root.animateDuration / 2
|
|
}
|
|
PropertyAction {}
|
|
}
|
|
}
|
|
|
|
color: Config.colors.secondary
|
|
animateProp: "scale"
|
|
font.family: "Material Symbols Rounded"
|
|
font.pointSize: Config.font.size.normal
|
|
font.variableAxes: ({
|
|
FILL: fill,
|
|
GRAD: grade,
|
|
opsz: fontInfo.pixelSize,
|
|
wght: fontInfo.weight
|
|
})
|
|
}
|