summaryrefslogtreecommitdiff
path: root/widgets/StyledText.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 10:29:30 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 10:29:30 +1000
commit5fd8d0f6da23030cbe043c5fd59284393781e23a (patch)
tree718c188d60eeb2de460d6fd7d15e17814d67014b /widgets/StyledText.qml
parentrefactor: move bar components into folder (diff)
downloadcaelestia-shell-5fd8d0f6da23030cbe043c5fd59284393781e23a.tar.gz
caelestia-shell-5fd8d0f6da23030cbe043c5fd59284393781e23a.tar.bz2
caelestia-shell-5fd8d0f6da23030cbe043c5fd59284393781e23a.zip
refactor: use anchors instead of layouts
Diffstat (limited to 'widgets/StyledText.qml')
-rw-r--r--widgets/StyledText.qml18
1 files changed, 18 insertions, 0 deletions
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
+ }
+ }
+}