diff --git a/native/LoginScreen.qml b/native/LoginScreen.qml index 0005d24..3e36365 100644 --- a/native/LoginScreen.qml +++ b/native/LoginScreen.qml @@ -2,9 +2,6 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Controls.Basic -//import "Main.qml" as M - - Window { @@ -24,7 +21,7 @@ Window { color: getColors().window - Label{ + Text { id: loginL anchors{ verticalCenter: parent.verticalCenter @@ -36,9 +33,7 @@ Window { text: qsTr("Login") font.pointSize: 20 font.bold: true - - color: getColor().text - + color: getColors().text } TextField { diff --git a/native/Main.qml b/native/Main.qml index 6b255c3..0732f8f 100644 --- a/native/Main.qml +++ b/native/Main.qml @@ -1,4 +1,4 @@ -import QtQuick + import QtQuick import QtQuick.Window import QtQuick.Layouts import QtQuick.Controls 2.15 @@ -36,42 +36,76 @@ Window { TextField { anchors{ verticalCenter: s1.verticalCenter - rightMargin: 10 - right: s1.right + rightMargin: 5 + right: logginB.left } placeholderText: qsTr("Seach") - - - } - } + Button{ + id: logginB + anchors{ + verticalCenter: s1.verticalCenter + rightMargin: 10 + right: s1.right + } + text: qsTr("Loggin") - /* TableView { - anchors.fill: parent - - columnSpacing: 1 - rowSpacing: 1 - clip: true - boundsBehavior: Flickable.StopAtBounds - - model: Data {} - delegate: Rectangle { - color: getColors().base - implicitWidth: 100 - implicitHeight: 50 - border.width: 1 - - Text { - text: display - color: getColors().text - anchors.centerIn: parent + onClicked: { + var component = Qt.createComponent("LoginScreen.qml") + var window = component.createObject(root) + window.show() } } } - */ + + Rectangle{ + id: s2 + anchors { + top: s1.bottom + left: parent.left + right: parent.right + bottom: parent.bottom + } + color: getColors().dark + + TableView { + anchors { + fill: s2 + } + columnSpacing: 0 + rowSpacing: 1 + clip: true + boundsBehavior: Flickable.StopAtBounds + + model: Data {} + delegate: Rectangle { + id: r + anchors{ + } + color: getColors().base + + + + implicitHeight: 50 + border.width: 0 + + Text { + anchors { + horizontalCenter: r.horizontalCenter + verticalCenter: r.verticalCenter + } + text: display + color: getColors().text + anchors.centerIn: parent + } + } + } + } + + Button { id: testB anchors { diff --git a/native/TextFieldStyle.qml b/native/TextFieldStyle.qml deleted file mode 100644 index bd275b7..0000000 --- a/native/TextFieldStyle.qml +++ /dev/null @@ -1,10 +0,0 @@ -import QtQuick.Controls -import QtQuick.Controls.impl -import QtQuick.Templates as T - -T.TextField { - id: textFeld - placeholderText: qsTr("works") - - -}