mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Fully comment ArchUpdaterService
This commit is contained in:
@@ -202,6 +202,39 @@ Variants {
|
||||
maximumLineCount: 5
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
|
||||
// Notification actions
|
||||
RowLayout {
|
||||
visible: model.actions && model.actions.length > 0
|
||||
spacing: Style.marginXS * scaling
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: Style.marginS * scaling
|
||||
|
||||
Repeater {
|
||||
model: model.actions || []
|
||||
delegate: NPill {
|
||||
text: modelData.text || modelData.identifier || "Action"
|
||||
icon: modelData.identifier || ""
|
||||
tooltipText: modelData.text || modelData.identifier || "Action"
|
||||
sizeMultiplier: 0.7
|
||||
Layout.fillWidth: true
|
||||
forceOpen: true
|
||||
|
||||
// Style action buttons differently
|
||||
pillColor: Color.mPrimary
|
||||
textColor: Color.mOnPrimary
|
||||
iconCircleColor: Color.mPrimary
|
||||
iconTextColor: Color.mOnPrimary
|
||||
|
||||
onClicked: {
|
||||
// Invoke the notification action
|
||||
modelData.invoke()
|
||||
// Animate out the notification after action
|
||||
animateOut()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NIconButton {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pragma Singleton
|
||||
/*pragma Singleton
|
||||
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
@@ -154,3 +154,4 @@ Singleton {
|
||||
// Initial check
|
||||
Component.onCompleted: doPoll()
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user