feat: improve notification layout for better visibility and functionality
This commit is contained in:
@@ -25,7 +25,7 @@ Rectangle {
|
|||||||
|
|
||||||
implicitWidth: screen.width/7
|
implicitWidth: screen.width/7
|
||||||
// implicitHeight: screen.height/7
|
// implicitHeight: screen.height/7
|
||||||
implicitHeight: contentRowRectangle.height+(notification.actions.length>0?actionRowRectangle.height:0)+(notification.hasInlineReply?inlineReplyRectangle.height:0)+progressBar.height
|
implicitHeight: contentRowRectangle.height+(actionRowRectangle.visible?actionRowRectangle.height:0)+(inlineReplyRectangle.visible?inlineReplyRectangle.height:0)+(progressBar.visible?progressBar.height:0)
|
||||||
|
|
||||||
color: textBGColor
|
color: textBGColor
|
||||||
border.width: Config.border_width
|
border.width: Config.border_width
|
||||||
@@ -201,16 +201,12 @@ Rectangle {
|
|||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
modelData.invoke()
|
modelData.invoke()
|
||||||
if (!notification.resident) {
|
|
||||||
root.closeNotification(true)
|
|
||||||
} else {
|
|
||||||
root.closeNotification(false)
|
root.closeNotification(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: inlineReplyRectangle
|
id: inlineReplyRectangle
|
||||||
@@ -224,7 +220,7 @@ Rectangle {
|
|||||||
function sendReply(message) {
|
function sendReply(message) {
|
||||||
notification.sendInlineReply(message)
|
notification.sendInlineReply(message)
|
||||||
inlineReplyTextField.focus = false
|
inlineReplyTextField.focus = false
|
||||||
root.closeNotification(true)
|
root.closeNotification(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
@@ -297,6 +293,7 @@ Rectangle {
|
|||||||
// anchors.left: parent.left
|
// anchors.left: parent.left
|
||||||
height: Config.screen_height_to_font_tiny(screen.height)
|
height: Config.screen_height_to_font_tiny(screen.height)
|
||||||
color: textColor
|
color: textColor
|
||||||
|
visible: root.duration > 0
|
||||||
|
|
||||||
property real progress: 1.0
|
property real progress: 1.0
|
||||||
width: parent.width * progress
|
width: parent.width * progress
|
||||||
|
|||||||
Reference in New Issue
Block a user