From 5fd8d0f6da23030cbe043c5fd59284393781e23a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 29 Apr 2025 10:29:30 +1000 Subject: refactor: use anchors instead of layouts --- widgets/StyledText.qml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 widgets/StyledText.qml (limited to 'widgets/StyledText.qml') diff --git a/widgets/StyledText.qml b/widgets/StyledText.qml new file mode 100644 index 0000000..ed5d791 --- /dev/null +++ b/widgets/StyledText.qml @@ -0,0 +1,18 @@ +import "root:/config" +import QtQuick + +Text { + id: root + + renderType: Text.NativeRendering + color: Appearance.colours.text + font.family: Appearance.font.family.sans + + Behavior on color { + ColorAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } +} -- cgit v1.2.3-freya