dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Compare Notes Search caldav: modern centered calendar — big square day cells c7993269f96c5f27668e94eee8e0ea9abc2b82bd
Oliver Jan Krylow <oliver@bugabinga.net > · 28 Jun 2026
unsigned
Browse files Compare with HEAD
Replace the full-width stretched grid with a centered block of 48px square
cells (modern calendar look). Center the title, date and weekday header.
Bigger day numbers (body variant), larger today circle (34), markers and
bands rescaled and re-laid for the taller cells; band pitch already derives
from cell size. Agenda centered under the grid at the grid width. Grow the
clock popout to 580 to fit the taller grid plus full agenda.
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 271 + readonly property int gridSpacing:
6 272 + readonly property int cellW:
48 273 + readonly property int cellH:
48 274 274 readonly property real pitchX: cellW
+ gridSpacing
275 275 readonly property real pitchY: cellH
+ gridSpacing
276 + readonly property real gridW: cellW
* 7 + gridSpacing
* 6 332 333 Component .onCompleted:
if (root.caldavService) root.caldavService.refresh()
336 + width : parent
? parent.width
: 0 337 + horizontalAlignment :
Text .AlignHCenter
335 338 theme : root.theme
337 340 text : clockCol.state.clock
? clockCol.state.clock.statusDisplay
: "--:--:--" 344 + width : parent
? parent.width
: 0 345 + horizontalAlignment :
Text .AlignHCenter
341 346 theme : root.theme
343 348 text : (clockCol.state.date
? clockCol.state.date.line
: "calendar" )
+ (root.caldavService
&& root.caldavService.stale
? " ·" : "" )
348 353 visible :
! clockCol.setupMode
349 - spacing : clockCol.gridSpacing
354 + width : parent
? parent.width
: 0 355 + height : calStack.height
352 - model : [
"M" ,
"D" ,
"M" ,
"D" ,
"F" ,
"S" ,
"S" ]
355 - width : clockCol.cellW
360 + anchors.horizontalCenter: parent.horizontalCenter
361 + spacing : clockCol.gridSpacing
365 + spacing : clockCol.gridSpacing
368 + model : [
"M" ,
"D" ,
"M" ,
"D" ,
"F" ,
"S" ,
"S" ]
371 + width : clockCol.cellW
377 + anchors.horizontalCenter: parent.horizontalCenter
381 + opacity : index
>= 5 ? 0.4 : 0.7 361 - anchors.horizontalCenter: parent.horizontalCenter
365 - opacity : index
>= 5 ? 0.4 : 0.7 375 - visible :
! clockCol.setupMode
376 - width : monthGrid.width
377 - height : monthGrid.height
391 + width : monthGrid.width
392 + height : monthGrid.height
399 414 visible :
!! modelData.today
400 415 anchors.horizontalCenter: parent.horizontalCenter
401 - y : (parent.height
- height)
/ 2 - 4 416 + anchors.verticalCenter: parent.verticalCenter
417 + anchors.verticalCenterOffset:
- 5 405 421 color : root.theme
? root.theme.ui.accent
: "transparent" 409 425 anchors.horizontalCenter: parent.horizontalCenter
410 - y : (parent.height
- height)
/ 2 - 4 426 + anchors.verticalCenter: parent.verticalCenter
427 + anchors.verticalCenterOffset:
- 5 411 428 theme : root.theme
413 430 text : modelData.day
? String (modelData.day)
: "" 414 431 color : modelData.today
&& root.theme
? root.theme.content.backdrop
: (root.theme
? root.theme.content.normal
: "white" )
415 432 opacity : modelData.inMonth
? 1 : 0.3 420 437 anchors.horizontalCenter: parent.horizontalCenter
421 438 anchors.bottom: parent.bottom
422 - anchors.bottomMargin:
2 439 + anchors.bottomMargin:
7 426 443 model :
Math .
min (cell.markers.length,
3 )
459 476 readonly property var seg: modelData
461 478 x: seg.colStart
* clockCol.pitchX
462 - y: seg.row
* clockCol.pitchY
+ clockCol.cellH
- 9 - seg.lane
* 7 479 + y: seg.row
* clockCol.pitchY
+ clockCol.cellH
- 17 - seg.lane
* 9 463 480 width: (seg.colEnd
- seg.colStart
+ 1 )
* clockCol.pitchX
- clockCol.gridSpacing
465 482 color:
Qt .alpha(seg.color,
0.9 )
466 - topLeftRadius: seg.roundLeft
? 2.5 : 0 467 - bottomLeftRadius: seg.roundLeft
? 2.5 : 0 468 - topRightRadius: seg.roundRight
? 2.5 : 0 469 - bottomRightRadius: seg.roundRight
? 2.5 : 0 483 + topLeftRadius: seg.roundLeft
? 3 : 0 484 + bottomLeftRadius: seg.roundLeft
? 3 : 0 485 + topRightRadius: seg.roundRight
? 3 : 0 486 + bottomRightRadius: seg.roundRight
? 3 : 0 480 501 visible :
! clockCol.setupMode
481 502 width : parent
? parent.width
: 0 503 + height : agendaCol.height
508 + anchors.horizontalCenter: parent.horizontalCenter
509 + width : clockCol.gridW
485 513 model : clockCol.todayItems
522 550 text:
"Keine Termine" quickshell/nuguland/SurfaceManager.qml Modified 70 - "height" : heightBudget(
490 )
70 + "height" : heightBudget(
580 )