dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Compare Notes Search caldav: stretch calendar grid to full popout width ad75db34cdb272f3f7192094ae5d3c130247a296
Oliver Jan Krylow <oliver@bugabinga.net > · 28 Jun 2026
unsigned
Browse files Compare with HEAD
Grid cells were fixed 30px in an 844px popout — cramped top-left with the
right two-thirds empty. Make cell width responsive (fill the full width /7),
taller cells (36), wider gaps (4), and derive the band overlay pitch from
the live cell size instead of the old hardcoded 32. Nudge the day number +
today circle up to leave room for the marker strip. Grow the clock popout
to 490 so the full agenda fits.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Changed files (2) quickshell/nuguland/PopoutHost.qml Modified 268 268 readonly property bool setupMode: root.caldavService
&& root.caldavService.status
=== "needs-setup" 271 + readonly property int gridSpacing:
4 272 + readonly property real cellW: (width
- gridSpacing
* 6 )
/ 7 273 + readonly property int cellH:
36 274 + readonly property real pitchX: cellW
+ gridSpacing
275 + readonly property real pitchY: cellH
+ gridSpacing
272 279 readonly property
var caldavEvents: root.caldavService
? root.caldavService.events
: []
341 348 visible :
! clockCol.setupMode
349 + spacing : clockCol.gridSpacing
345 352 model : [
"M" ,
"D" ,
"M" ,
"D" ,
"F" ,
"S" ,
"S" ]
355 + width : clockCol.cellW
349 356 height : hdr.height
375 382 objectName:
"calendar-grid" 384 + spacing: clockCol.gridSpacing
380 387 model : clockCol.days
385 392 readonly property var markers: clockCol.eventsByDate[modelData.iso]
|| []
394 + width: clockCol.cellW
395 + height: clockCol.cellH
392 399 visible :
!! modelData.today
393 - anchors.centerIn: parent
400 + anchors.horizontalCenter: parent.horizontalCenter
401 + y : (parent.height
- height)
/ 2 - 4 397 405 color : root.theme
? root.theme.ui.accent
: "transparent" 401 - anchors.centerIn: parent
409 + anchors.horizontalCenter: parent.horizontalCenter
410 + y : (parent.height
- height)
/ 2 - 4 402 411 theme : root.theme
404 413 text : modelData.day
? String (modelData.day)
: "" 443 452 anchors.fill: monthGrid
450 459 readonly property
var seg: modelData
452 - x : seg.colStart
* 32 453 - y : seg.row
* 32 + 23 - seg.lane
* 7 454 - width : (seg.colEnd
- seg.colStart
+ 1 )
* 32 - 2 461 + x : seg.colStart
* clockCol.pitchX
462 + y : seg.row
* clockCol.pitchY
+ clockCol.cellH
- 9 - seg.lane
* 7 463 + width : (seg.colEnd
- seg.colStart
+ 1 )
* clockCol.pitchX
- clockCol.gridSpacing
456 465 color :
Qt .alpha(seg.color,
0.9 )
457 466 topLeftRadius : seg.roundLeft
? 2.5 : 0 quickshell/nuguland/SurfaceManager.qml Modified 70 - "height" : heightBudget(
440 )
70 + "height" : heightBudget(
490 )