Compare commits
No commits in common. "2118e6d73e2adc8e4406d09b1d5c147d0d1c42ad" and "345b9b4254a6771f97cc4ce8eca79c78c14baae3" have entirely different histories.
2118e6d73e
...
345b9b4254
4 changed files with 4 additions and 33 deletions
|
@ -5,13 +5,11 @@ import "base"
|
||||||
BRectangle {
|
BRectangle {
|
||||||
height: clock.height * 1.5
|
height: clock.height * 1.5
|
||||||
|
|
||||||
Item {
|
Rectangle {
|
||||||
id: clock
|
id: clock
|
||||||
height: hours.height + minutes.height
|
height: hours.height + minutes.height
|
||||||
width: parent.width
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: hours
|
id: hours
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
|
@ -51,7 +51,7 @@ PanelWindow {
|
||||||
topRightRadius: 10
|
topRightRadius: 10
|
||||||
border.color: "transparent"
|
border.color: "transparent"
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: NyshState.dashOpen ? maxSize : 1
|
width: NyshState.dashOpen ? maxSize : 0
|
||||||
clip: true
|
clip: true
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -83,7 +83,6 @@ PanelWindow {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width
|
|
||||||
Layout.margins: 15
|
Layout.margins: 15
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
@ -102,7 +101,6 @@ PanelWindow {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width
|
|
||||||
Layout.margins: 15
|
Layout.margins: 15
|
||||||
Layout.alignment: Qt.AlignBottom
|
Layout.alignment: Qt.AlignBottom
|
||||||
|
|
||||||
|
|
|
@ -26,28 +26,4 @@ ListView {
|
||||||
toast.notif.dismiss();
|
toast.notif.dismiss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
addDisplaced: Transition {
|
|
||||||
NumberAnimation {
|
|
||||||
properties: "x,y"
|
|
||||||
duration: 100
|
|
||||||
}
|
|
||||||
}
|
|
||||||
remove: Transition {
|
|
||||||
PropertyAction {
|
|
||||||
property: "ListView.delayRemove"
|
|
||||||
value: true
|
|
||||||
}
|
|
||||||
ParallelAnimation {
|
|
||||||
NumberAnimation {
|
|
||||||
property: "opacity"
|
|
||||||
to: 0
|
|
||||||
duration: 200
|
|
||||||
}
|
|
||||||
}
|
|
||||||
PropertyAction {
|
|
||||||
property: "ListView.delayRemove"
|
|
||||||
value: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ MouseArea {
|
||||||
BRectangle {
|
BRectangle {
|
||||||
id: box
|
id: box
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: header.height + actions.implicitHeight + bodyBox.height + (5 * 3)
|
height: header.height + toast.actionHeight + bodyBox.height + (5 * 3)
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
@ -120,13 +120,12 @@ MouseArea {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GridLayout {
|
RowLayout {
|
||||||
id: actions
|
id: actions
|
||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.top: bodyBox.bottom
|
anchors.top: bodyBox.bottom
|
||||||
anchors.topMargin: 5
|
anchors.topMargin: 5
|
||||||
anchors.bottomMargin: 5
|
anchors.bottomMargin: 5
|
||||||
columns: toast.notif?.actions.length < 6 ? toast.notif?.actions.length : 4
|
|
||||||
Repeater {
|
Repeater {
|
||||||
id: rep
|
id: rep
|
||||||
model: toast.notif?.actions
|
model: toast.notif?.actions
|
||||||
|
|
Loading…
Add table
Reference in a new issue