feat: improve notification layout for better visibility and functionality

This commit is contained in:
Hannes
2026-08-29 23:18:21 +02:00
parent 1bf0f0bfc1
commit f488f22def
+4 -7
View File
@@ -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,11 +201,7 @@ Rectangle {
onClicked: { onClicked: {
modelData.invoke() modelData.invoke()
if (!notification.resident) { root.closeNotification(false)
root.closeNotification(true)
} else {
root.closeNotification(false)
}
} }
} }
} }
@@ -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