diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-02 14:57:59 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-02 14:57:59 +1000 |
| commit | 651378d4965e1255abd524fd320f375639cd8bca (patch) | |
| tree | 447f257b511354a147c3f0df5cc04efe1a2e70d8 /widgets/StyledTextField.qml | |
| parent | refactor: separate launcher into multiple files (diff) | |
| download | caelestia-shell-651378d4965e1255abd524fd320f375639cd8bca.tar.gz caelestia-shell-651378d4965e1255abd524fd320f375639cd8bca.tar.bz2 caelestia-shell-651378d4965e1255abd524fd320f375639cd8bca.zip | |
launcher: add content
Also use surfaceContainer as background
Diffstat (limited to 'widgets/StyledTextField.qml')
| -rw-r--r-- | widgets/StyledTextField.qml | 31 |
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 + } + } +} |