summaryrefslogtreecommitdiff
path: root/widgets/StyledTextField.qml
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/StyledTextField.qml')
-rw-r--r--widgets/StyledTextField.qml31
1 files changed, 31 insertions, 0 deletions
diff --git a/widgets/StyledTextField.qml b/widgets/StyledTextField.qml
new file mode 100644
index 0000000..f6232f2
--- /dev/null
+++ b/widgets/StyledTextField.qml
@@ -0,0 +1,31 @@
+pragma ComponentBehavior: Bound
+
+import "root:/config"
+import QtQuick
+import QtQuick.Controls
+
+TextField {
+ id: root
+
+ renderType: TextField.NativeRendering
+ color: Appearance.colours.m3onSurface
+ placeholderTextColor: Appearance.colours.m3outline
+ font.family: Appearance.font.family.sans
+ font.pointSize: Appearance.font.size.smaller
+
+ Behavior on color {
+ ColorAnimation {
+ duration: Appearance.anim.durations.normal
+ easing.type: Easing.BezierSpline
+ easing.bezierCurve: Appearance.anim.curves.standard
+ }
+ }
+
+ Behavior on placeholderTextColor {
+ ColorAnimation {
+ duration: Appearance.anim.durations.normal
+ easing.type: Easing.BezierSpline
+ easing.bezierCurve: Appearance.anim.curves.standard
+ }
+ }
+}