fixedloader

This commit is contained in:
2024-11-05 16:26:14 +01:00
parent 4ecec8e25b
commit 493270efc1
8 changed files with 68 additions and 132 deletions

View File

@@ -1,19 +1,11 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Controls.Material
// Item
// {
// id: topBar
// anchors
// {
// top: parent.top
// left: parent.left
// right: parent.right
// }
// height: 30
RowLayout
{
@@ -33,107 +25,40 @@ import QtQuick.Controls.Material
Button
{
id: dashBoard
implicitWidth: 85
hoverEnabled: true
highlighted: true
flat: true
background: Rectangle
{
color: dashBoard.down? Material.Grey: Material.background
border.color: dashBoard.hovered? Material.Amber: "transparent"
radius: 0
}
Text
{
text: "Dashboard"
anchors.centerIn: parent
color: Material.accent
}
text: qsTr("Dashboard")
}
Button
{
id: kunden
implicitWidth: 85
hoverEnabled: true
highlighted: true
flat: true
background: Rectangle
text: qsTr("Kunden")
onClicked:
{
color: kunden.down? Material.Grey: Material.background
border.color: kunden.hovered? Material.Amber: "transparent"
radius: 0
}
Text
{
text: "Kunden"
anchors.centerIn: parent
color: Material.accent
appLoader.source = "Tables.qml"
}
}
Button
{
id: objekt
implicitWidth: 85
hoverEnabled: true
highlighted: true
flat: true
background: Rectangle
{
color: objekt.down? Material.Grey: Material.background
border.color: objekt.hovered? Material.Amber: "transparent"
radius: 0
}
Text
{
text: "Objekt"
anchors.centerIn: parent
color: Material.accent
}
text: qsTr("Objekt")
}
Button
{
id: mitarbeiter
implicitWidth: 85
hoverEnabled: true
highlighted: true
flat: true
background: Rectangle
{
color: mitarbeiter.down? Material.Grey: Material.background
border.color: mitarbeiter.hovered? Material.Amber: "transparent"
radius: 0
}
Text
{
text: "Mitarbeiter"
anchors.centerIn: parent
color: Material.accent
}
text: qsTr("Mitarbeiter")
}
Button
{
id: abrechnung
implicitWidth: 85
hoverEnabled: true
background: Rectangle
{
color: abrechnung.down? Material.Grey: Material.background
border.color: abrechnung.hovered? Material.Amber: "transparent"
radius: 0
}
Text
{
text: "Abrechnung"
anchors.centerIn: parent
color: Material.accent
}
flat: true
text: qsTr("Abrechnung")
}
Item
@@ -142,12 +67,15 @@ import QtQuick.Controls.Material
Layout.fillWidth: true
}
Image
Button
{
id: atajos
source: "../images/menu.png"
sourceSize.height: 35
icon.source: "../images/menu.svg"
icon.color: "red"
flat: true
}
}