dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Compare Notes Search Review guide notifications: demote copy-body to a subtle hover affordance 9c69dc3608db98d26bf16ccf369c0582c3a0af6d
Oliver Jan Krylow <oliver@bugabinga.net > · 27 Jun 2026
unsigned
Browse files Compare with HEAD
Copy body rendered as a full action pill alongside the server actions,
giving a secondary utility the same weight as primary actions. Filter it
out of the action Flow and surface it as a small low-key "copy" control in
the meta row that fades in on hover and only appears when there is a body.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Changed files (1) quickshell/nuguland/NotificationCard.qml Modified 112 112 theme: card.theme
114 114 text: card.modelData.appName
|| "unknown" 115 - width: parent.width
- timeText.width
- parent.spacing
115 + width: parent.width
- timeText.width
- copyBtn.width
- parent.spacing
* 2 116 116 elide:
Text .ElideRight
123 + width : visible
? copyGlyph.implicitWidth
+ 6 : 0 124 + height : timeText.implicitHeight
125 + visible : (card.modelData.body
|| "" ).length
> 0 128 + anchors.centerIn: parent
132 + opacity : copyArea.containsMouse
? 1 : (cardHover.hovered
? 0.5 : 0 )
133 + Behavior on opacity { NumberAnimation {
duration : card.theme
&& card.theme.lowPowerMode
? 0 : 120 } }
137 + anchors.fill: parent
139 + onClicked : card.invokeAction(
String (card.modelData.id),
"copy-body" )
120 144 theme : card.theme
154 178 width: parent.width
156 180 visible:
! card.compact
&& actionModel.length
> 0 157 - property
var actionModel: (card.modelData.actionRows
|| []).filter((a)
=> a.kind
!== "close" )
181 + property
var actionModel: (card.modelData.actionRows
|| []).filter((a)
=> a.kind
!== "close" && a.kind
!== "copy-body" )
159 183 model : parent.actionModel
160 184 delegate : Rectangle {