Files
pyqcrm/gui/TopBar.qml

158 lines
3.4 KiB
QML

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
{
id: topBar
spacing: 0
height: 35
width: parent.width
anchors
{
top: parent.top
left: parent.left
}
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
}
}
Button
{
id: kunden
implicitWidth: 85
hoverEnabled: true
highlighted: true
flat: true
background: Rectangle
{
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
}
}
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
}
}
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
}
}
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
}
}
Item
{
id: hspacer
Layout.fillWidth: true
}
Image
{
id: atajos
source: "../images/menu.png"
sourceSize.height: 35
}
}