native: add main style
This commit is contained in:
parent
d36bb7ca6b
commit
04be7b0704
3 changed files with 63 additions and 44 deletions
|
@ -2,9 +2,6 @@ import QtQuick 2.15
|
||||||
import QtQuick.Controls 2.15
|
import QtQuick.Controls 2.15
|
||||||
import QtQuick.Controls.Basic
|
import QtQuick.Controls.Basic
|
||||||
|
|
||||||
//import "Main.qml" as M
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Window {
|
Window {
|
||||||
|
@ -24,7 +21,7 @@ Window {
|
||||||
|
|
||||||
color: getColors().window
|
color: getColors().window
|
||||||
|
|
||||||
Label{
|
Text {
|
||||||
id: loginL
|
id: loginL
|
||||||
anchors{
|
anchors{
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
|
@ -36,9 +33,7 @@ Window {
|
||||||
text: qsTr("Login")
|
text: qsTr("Login")
|
||||||
font.pointSize: 20
|
font.pointSize: 20
|
||||||
font.bold: true
|
font.bold: true
|
||||||
|
color: getColors().text
|
||||||
color: getColor().text
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Window
|
import QtQuick.Window
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import QtQuick.Controls 2.15
|
import QtQuick.Controls 2.15
|
||||||
|
@ -36,42 +36,76 @@ Window {
|
||||||
TextField {
|
TextField {
|
||||||
anchors{
|
anchors{
|
||||||
verticalCenter: s1.verticalCenter
|
verticalCenter: s1.verticalCenter
|
||||||
rightMargin: 10
|
rightMargin: 5
|
||||||
right: s1.right
|
right: logginB.left
|
||||||
}
|
}
|
||||||
|
|
||||||
placeholderText: qsTr("Seach")
|
placeholderText: qsTr("Seach")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button{
|
||||||
|
id: logginB
|
||||||
|
anchors{
|
||||||
|
verticalCenter: s1.verticalCenter
|
||||||
|
rightMargin: 10
|
||||||
|
right: s1.right
|
||||||
|
}
|
||||||
|
text: qsTr("Loggin")
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
var component = Qt.createComponent("LoginScreen.qml")
|
||||||
|
var window = component.createObject(root)
|
||||||
|
window.show()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TableView {
|
Rectangle{
|
||||||
anchors.fill: parent
|
id: s2
|
||||||
|
anchors {
|
||||||
|
top: s1.bottom
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
bottom: parent.bottom
|
||||||
|
}
|
||||||
|
color: getColors().dark
|
||||||
|
|
||||||
columnSpacing: 1
|
TableView {
|
||||||
|
anchors {
|
||||||
|
fill: s2
|
||||||
|
}
|
||||||
|
columnSpacing: 0
|
||||||
rowSpacing: 1
|
rowSpacing: 1
|
||||||
clip: true
|
clip: true
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
|
|
||||||
model: Data {}
|
model: Data {}
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
|
id: r
|
||||||
|
anchors{
|
||||||
|
}
|
||||||
color: getColors().base
|
color: getColors().base
|
||||||
implicitWidth: 100
|
|
||||||
|
|
||||||
|
|
||||||
implicitHeight: 50
|
implicitHeight: 50
|
||||||
border.width: 1
|
border.width: 0
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
anchors {
|
||||||
|
horizontalCenter: r.horizontalCenter
|
||||||
|
verticalCenter: r.verticalCenter
|
||||||
|
}
|
||||||
text: display
|
text: display
|
||||||
color: getColors().text
|
color: getColors().text
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
}
|
||||||
|
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
id: testB
|
id: testB
|
||||||
anchors {
|
anchors {
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
import QtQuick.Controls
|
|
||||||
import QtQuick.Controls.impl
|
|
||||||
import QtQuick.Templates as T
|
|
||||||
|
|
||||||
T.TextField {
|
|
||||||
id: textFeld
|
|
||||||
placeholderText: qsTr("works")
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue