nova-shell/modules/Clock.qml
Damocles 1a0003ca07 perf: stabilize clock width to prevent bar layout cascade
when clock text changed width (e.g. minute tick), the center section
shifted, causing all bargroups to recompute _posFrac and borderColor.
minText prevents the layout shift entirely.
2026-04-15 23:45:57 +02:00

15 lines
364 B
QML

import QtQuick
import Quickshell
import "." as M
M.BarLabel {
SystemClock {
id: clock
precision: SystemClock.Seconds
}
font.pixelSize: M.Theme.fontSize + 1
label: Qt.formatDateTime(clock.date, "ddd, dd. MMM HH:mm")
minText: "Mi., 00. Sep. 00:00"
tooltip: Qt.formatDateTime(clock.date, "dddd, dd. MMMM yyyy\nHH:mm:ss")
}