tangled
alpha
login
or
join now
dzming.li
/
noctalia-plugins
0
fork
atom
Personal noctalia plugins collection
0
fork
atom
overview
issues
pulls
pipelines
Increase todo event height and avoid deadline shrink
Dzming Li
2 weeks ago
2b08e6ad
ab5579fb
+2
-2
1 changed file
expand all
collapse all
unified
split
weekly-calendar
Panel.qml
+2
-2
weekly-calendar/Panel.qml
···
1401
1401
property real duration: Math.max(0, (model.endTime - model.startTime) / 3600000)
1402
1402
1403
1403
property real exactHeight: Math.max(1, duration * (root.hourHeight) - 1)
1404
1404
-
property real minEventHeight: 18 * Style.uiScaleRatio
1404
1404
+
property real minEventHeight: (isTodoItem ? 22 : 18) * Style.uiScaleRatio
1405
1405
property real renderHeight: isDeadline
1406
1406
? Math.max(8, Math.min(12, exactHeight))
1407
1407
: Math.max(exactHeight, minEventHeight)
···
1413
1413
property real eventXOffset: overlapInfo.xOffset
1414
1414
1415
1415
property bool isTodoItem: model.isTodo || false
1416
1416
-
property bool isDeadline: model.isDeadlineMarker || false
1416
1416
+
property bool isDeadline: (!isTodoItem) && (model.isDeadlineMarker || false)
1417
1417
property color eventColor: isDeadline ? Color.mSecondary : (isTodoItem ? Color.mSecondary : Color.mPrimary)
1418
1418
property color eventTextColor: isDeadline ? Color.mOnSecondary : (isTodoItem ? Color.mOnSecondary : Color.mOnPrimary)
1419
1419