From 651378d4965e1255abd524fd320f375639cd8bca Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 2 May 2025 14:57:59 +1000 Subject: launcher: add content Also use surfaceContainer as background --- widgets/StyledTextField.qml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 widgets/StyledTextField.qml (limited to 'widgets') 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 + } + } +} -- cgit v1.2.3-freya