Remove notification progress indicator

This commit is contained in:
David Heinemeier Hansson
2026-05-20 15:22:18 +02:00
parent c1b8b18b8f
commit 32a5938819
2 changed files with 4 additions and 29 deletions
+3 -5
View File
@@ -820,9 +820,9 @@ Item {
Repeater {
model: popupModel
// The delegate is a slot Item that owns lifetime state (timer,
// progress, paused). The actual visuals live in NotificationCard,
// which the history panel also reuses.
// The delegate is a slot Item that owns lifetime timer state. The
// actual visuals live in NotificationCard, which the history panel
// also reuses.
delegate: Item {
id: cardSlot
required property int index
@@ -872,8 +872,6 @@ Item {
cornerRadius: service.cornerRadius
fontFamily: service.shell && service.shell.bar ? service.shell.bar.fontFamily : ""
glyph: cardSlot.glyph
progress: cardSlot.progress
showProgress: cardSlot.lifetime > 0
onCloseRequested: service.dismissPopup(cardSlot.index)
onCardClicked: service.invokePopupDefault(cardSlot.index)
@@ -24,9 +24,6 @@ Rectangle {
property double timestamp: 0
property int cornerRadius: 0
property real progress: 1.0
property bool showProgress: false
// System monospace font injected by the container.
property string fontFamily: ""
@@ -69,8 +66,7 @@ Rectangle {
implicitWidth: Style.space(380)
// Add 2 * border.width so mainColumn (inset by border.width on top/left/right)
// doesn't push content under the bottom edge. The bottom edge is also inset
// for symmetry except when the progress bar replaces it.
// doesn't push content under the bottom edge.
implicitHeight: mainColumn.implicitHeight + border.width * 2
radius: cornerRadius
color: Color.notifications.background
@@ -176,23 +172,4 @@ Rectangle {
}
}
// Progress bar at the bottom edge. Stays visible while the container has
// a finite lifetime; freezes (doesn't decrement) when hover pauses the
// tick from the container side.
Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
height: Math.max(1, Style.space(3))
color: Color.notifications.border
visible: root.showProgress
Rectangle {
anchors.left: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
width: parent.width * Math.max(0, Math.min(1, root.progress))
color: root.accentColor
}
}
}