Time item separate

pull/7/head
reionwong 4 years ago
parent 270d549722
commit 2f9f03e1b1

@ -73,11 +73,12 @@ Item {
} }
} }
// Main layout
RowLayout { RowLayout {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: FishUI.Units.smallSpacing anchors.leftMargin: FishUI.Units.smallSpacing
anchors.rightMargin: FishUI.Units.smallSpacing anchors.rightMargin: FishUI.Units.smallSpacing
spacing: FishUI.Units.smallSpacing spacing: FishUI.Units.smallSpacing / 2
// App name // App name
StandardItem { StandardItem {
@ -93,7 +94,7 @@ Item {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: FishUI.Units.smallSpacing anchors.leftMargin: FishUI.Units.smallSpacing
anchors.rightMargin: FishUI.Units.smallSpacing anchors.rightMargin: FishUI.Units.smallSpacing
spacing: FishUI.Units.smallSpacing * 1.5 spacing: FishUI.Units.smallSpacing
Image { Image {
id: acticityIcon id: acticityIcon
@ -212,6 +213,7 @@ Item {
} }
} }
// System tray(Right)
ListView { ListView {
id: trayView id: trayView
@ -219,10 +221,9 @@ Item {
layoutDirection: Qt.RightToLeft layoutDirection: Qt.RightToLeft
interactive: false interactive: false
clip: true clip: true
spacing: FishUI.Units.smallSpacing spacing: FishUI.Units.smallSpacing / 2
property real itemSize: rootItem.height * 0.8 property real itemWidth: rootItem.iconSize + FishUI.Units.largeSpacing
property real itemWidth: itemSize + FishUI.Units.smallSpacing
Layout.fillHeight: true Layout.fillHeight: true
Layout.preferredWidth: (itemWidth + (count - 1) * FishUI.Units.smallSpacing) * count Layout.preferredWidth: (itemWidth + (count - 1) * FishUI.Units.smallSpacing) * count
@ -331,6 +332,19 @@ Item {
visible: battery.showPercentage visible: battery.showPercentage
} }
} }
}
}
// Pop-up notification center and calendar
StandardItem {
id: datetimeItem
Layout.fillHeight: true
Layout.preferredWidth: _dateTimeLayout.implicitWidth + FishUI.Units.smallSpacing
RowLayout {
id: _dateTimeLayout
anchors.fill: parent
Label { Label {
id: timeLabel id: timeLabel
@ -350,6 +364,7 @@ Item {
} }
} }
} }
} }
// Components // Components

Loading…
Cancel
Save