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.
15 lines
364 B
QML
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")
|
|
}
|