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.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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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