native: add main style

This commit is contained in:
Schnitzel 2024-07-11 10:39:35 +02:00
parent 4ba85e7c08
commit c8343c1600

View file

@ -1,6 +1,6 @@
import QtQuick import QtQuick 2.15
import QtQuick.Window import QtQuick.Window 2.15
import QtQuick.Layouts import QtQuick.Layouts 2.15
import QtQuick.Controls 2.15 import QtQuick.Controls 2.15
Window { Window {
@ -27,10 +27,8 @@ Window {
left: parent.left left: parent.left
right: parent.right right: parent.right
} }
radius: 10 radius: 0
height: 50 height: 50
border.width: 5
border.color: getColors().accent
color: getColors().midlight color: getColors().midlight
TextField { TextField {
@ -51,7 +49,7 @@ Window {
rightMargin: 10 rightMargin: 10
right: s1.right right: s1.right
} }
text: qsTr("Loggin") text: qsTr("Login")
onClicked: { onClicked: {
var component = Qt.createComponent("LoginScreen.qml") var component = Qt.createComponent("LoginScreen.qml")
@ -69,10 +67,12 @@ Window {
right: parent.right right: parent.right
bottom: parent.bottom bottom: parent.bottom
} }
color: getColors().dark radius: 0
color: getColors().window
TableView { TableView {
anchors { anchors {
topMargin: 5
fill: s2 fill: s2
} }
columnSpacing: 0 columnSpacing: 0
@ -86,9 +86,7 @@ Window {
anchors{ anchors{
} }
color: getColors().base color: getColors().base
implicitWidth: 100
implicitHeight: 50 implicitHeight: 50
border.width: 0 border.width: 0
@ -127,8 +125,6 @@ Window {
bottom: parent.bottom bottom: parent.bottom
} }
text: qsTr("Login Screen") text: qsTr("Login Screen")
onClicked: { onClicked: {