diff options
| author | Nippy <nippy@Nippy-Mac-mini.local> | 2026-09-19 18:04:27 +0200 |
|---|---|---|
| committer | Nippy <nippy@Nippy-Mac-mini.local> | 2026-09-19 18:04:27 +0200 |
| commit | 3eb87a14e133b266ab8d8c634dda3af312474f1f (patch) | |
| tree | 098ea50e2f159b654f3729c69facc6805556813e /raveos-calamares-module/raveusers/ui/PasswordField.qml | |
| parent | f176110ce0e65756967db40ba2a3fc7d1daa2825 (diff) | |
| download | RaveOS-PKGBUILD-3eb87a14e133b266ab8d8c634dda3af312474f1f.tar.gz RaveOS-PKGBUILD-3eb87a14e133b266ab8d8c634dda3af312474f1f.zip | |
new user settings
Diffstat (limited to 'raveos-calamares-module/raveusers/ui/PasswordField.qml')
| -rw-r--r-- | raveos-calamares-module/raveusers/ui/PasswordField.qml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/raveos-calamares-module/raveusers/ui/PasswordField.qml b/raveos-calamares-module/raveusers/ui/PasswordField.qml new file mode 100644 index 0000000..0dffb49 --- /dev/null +++ b/raveos-calamares-module/raveusers/ui/PasswordField.qml @@ -0,0 +1,41 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +TextField { + id: field + property bool reveal: false + signal revealClicked() + + implicitHeight: 52 + leftPadding: 14 + rightPadding: 46 + echoMode: reveal ? TextInput.Normal : TextInput.Password + color: "#ffffff" + placeholderTextColor: "#5b6270" + font.pixelSize: 15 + + background: Rectangle { + radius: 7 + color: "#303030" + border.color: field.activeFocus ? "#3d7839" : "#303030" + border.width: field.activeFocus ? 1.5 : 1 + } + + Text { + text: "\uD83D\uDC41" + font.pixelSize: 16 + color: field.reveal ? "#3d7839" : "#9ca3af" + anchors.right: parent.right + anchors.rightMargin: 14 + anchors.verticalCenter: parent.verticalCenter + } + + MouseArea { + anchors.right: parent.right + anchors.verticalCenter: parent.verticalCenter + width: 40 + height: 40 + cursorShape: Qt.PointingHandCursor + onClicked: field.revealClicked() + } +} |