formatter
This commit is contained in:
+14
-11
@@ -8,35 +8,38 @@ import qs.Components
|
||||
|
||||
Item {
|
||||
id: root
|
||||
required property PersistentProperties visibilities
|
||||
required property Wrapper popouts
|
||||
required property RowLayout loader
|
||||
|
||||
implicitWidth: timeText.contentWidth + 5 * 2
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
required property RowLayout loader
|
||||
required property Wrapper popouts
|
||||
required property PersistentProperties visibilities
|
||||
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.top: parent.top
|
||||
implicitWidth: timeText.contentWidth + 5 * 2
|
||||
|
||||
CustomRect {
|
||||
anchors.bottomMargin: 3
|
||||
anchors.fill: parent
|
||||
anchors.topMargin: 3
|
||||
anchors.bottomMargin: 3
|
||||
radius: 4
|
||||
color: "transparent"
|
||||
radius: 4
|
||||
|
||||
CustomText {
|
||||
id: timeText
|
||||
|
||||
anchors.centerIn: parent
|
||||
|
||||
text: Time.dateStr
|
||||
color: DynamicColors.palette.m3onSurface
|
||||
text: Time.dateStr
|
||||
|
||||
Behavior on color {
|
||||
CAnim {}
|
||||
CAnim {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
StateLayer {
|
||||
acceptedButtons: Qt.LeftButton
|
||||
|
||||
onClicked: {
|
||||
root.visibilities.dashboard = !root.visibilities.dashboard;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user