1
0

qml: OpenWalletDialog rework

This commit is contained in:
Sander van Grieken
2022-08-17 11:49:57 +02:00
parent d76726836d
commit c278d5befc
5 changed files with 88 additions and 63 deletions

View File

@@ -1,30 +0,0 @@
import QtQuick 2.6
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.1
import QtQuick.Controls.Material 2.0
Rectangle {
id: item
property bool warning
property bool error
property string text
color: "transparent"
border.color: error ? "red" : warning ? "yellow" : Material.accentColor
border.width: 1
height: text.height + 2* 16
radius: 8
Text {
id: text
width: item.width - 2* 16
x: 16
y: 16
color: item.border.color
text: item.text
wrapMode: Text.Wrap
}
}

View File

@@ -5,7 +5,7 @@ import QtQuick.Controls 2.1
RowLayout {
id: root
property alias text: password_tf.text
property alias tf: password_tf
signal accepted
TextField {