Buttons on the top bar
This commit is contained in:
@@ -18,7 +18,7 @@ import QtQuick.Controls.Material
|
|||||||
RowLayout
|
RowLayout
|
||||||
{
|
{
|
||||||
id: topBar
|
id: topBar
|
||||||
|
spacing: 0
|
||||||
height: 35
|
height: 35
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
@@ -33,20 +33,15 @@ import QtQuick.Controls.Material
|
|||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: dashBoard
|
id: dashBoard
|
||||||
// implicitWidth: 65
|
|
||||||
// implicitHeight: 25
|
|
||||||
// background: Rectangle
|
|
||||||
// {
|
|
||||||
// border.color: "#f6f6f6"
|
|
||||||
// border.width: 1
|
|
||||||
// radius: 4
|
|
||||||
// }
|
|
||||||
implicitWidth: 85
|
implicitWidth: 85
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
highlighted: true
|
||||||
|
flat: true
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
color: Material.primary
|
color: dashBoard.down? Material.accent: Material.primary
|
||||||
radius: 8
|
border.color: dashBoard.hovered? "lightgrey": "transparent"
|
||||||
|
radius: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Text
|
Text
|
||||||
@@ -55,23 +50,19 @@ import QtQuick.Controls.Material
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: kunden
|
id: kunden
|
||||||
// implicitWidth: 65
|
|
||||||
// implicitHeight: 25
|
|
||||||
// background: Rectangle
|
|
||||||
// {
|
|
||||||
// border.color: "#f6f6f6"
|
|
||||||
// border.width: 1
|
|
||||||
// radius: 4
|
|
||||||
// }
|
|
||||||
implicitWidth: 85
|
implicitWidth: 85
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
highlighted: true
|
||||||
|
flat: true
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
color: Material.primary
|
color: kunden.down? Material.accent: Material.primary
|
||||||
radius: 8
|
border.color: kunden.hovered? "lightgrey": "transparent"
|
||||||
|
radius: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Text
|
Text
|
||||||
@@ -83,20 +74,15 @@ import QtQuick.Controls.Material
|
|||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: objekt
|
id: objekt
|
||||||
// implicitWidth: 65
|
|
||||||
// implicitHeight: 25
|
|
||||||
// background: Rectangle
|
|
||||||
// {
|
|
||||||
// border.color: "#f6f6f6"
|
|
||||||
// border.width: 1
|
|
||||||
// radius: 4
|
|
||||||
// }
|
|
||||||
implicitWidth: 85
|
implicitWidth: 85
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
highlighted: true
|
||||||
|
flat: true
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
color: Material.primary
|
color: objekt.down? Material.accent: Material.primary
|
||||||
radius: 8
|
border.color: objekt.hovered? "lightgrey": "transparent"
|
||||||
|
radius: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Text
|
Text
|
||||||
@@ -108,20 +94,15 @@ import QtQuick.Controls.Material
|
|||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: mitarbeiter
|
id: mitarbeiter
|
||||||
// implicitWidth: 65
|
|
||||||
// implicitHeight: 25
|
|
||||||
// background: Rectangle
|
|
||||||
// {
|
|
||||||
// border.color: "#f6f6f6"
|
|
||||||
// border.width: 1
|
|
||||||
// radius: 4
|
|
||||||
// }
|
|
||||||
implicitWidth: 85
|
implicitWidth: 85
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
highlighted: true
|
||||||
|
flat: true
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
color: Material.primary
|
color: mitarbeiter.down? Material.accent: Material.primary
|
||||||
radius: 8
|
border.color: mitarbeiter.hovered? "lightgrey": "transparent"
|
||||||
|
radius: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Text
|
Text
|
||||||
@@ -130,24 +111,17 @@ import QtQuick.Controls.Material
|
|||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: abrechnung
|
id: abrechnung
|
||||||
// implicitWidth: 79
|
|
||||||
// implicitHeight: 25
|
|
||||||
// //color: button.down ? "#d6d6d6" : "#f6f6f6"
|
|
||||||
// background: Rectangle
|
|
||||||
// {
|
|
||||||
// border.color: "#f6f6f6"
|
|
||||||
// border.width: 1
|
|
||||||
// radius: 4
|
|
||||||
// }
|
|
||||||
implicitWidth: 85
|
implicitWidth: 85
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
color: Material.primary
|
color: abrechnung.down? Material.accent: Material.primary
|
||||||
radius: 8
|
border.color: abrechnung.hovered? "lightgrey": "transparent"
|
||||||
|
radius: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Text
|
Text
|
||||||
|
|||||||
Reference in New Issue
Block a user