Fully comment ArchUpdaterService
This commit is contained in:
parent
dfbefcd9d2
commit
d2b202c25f
2 changed files with 35 additions and 1 deletions
|
|
@ -202,6 +202,39 @@ Variants {
|
||||||
maximumLineCount: 5
|
maximumLineCount: 5
|
||||||
elide: Text.ElideRight
|
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 {
|
NIconButton {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
pragma Singleton
|
/*pragma Singleton
|
||||||
|
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
@ -154,3 +154,4 @@ Singleton {
|
||||||
// Initial check
|
// Initial check
|
||||||
Component.onCompleted: doPoll()
|
Component.onCompleted: doPoll()
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue