forked from Shinonome/dots-hyprland
bg clock: put bottom time text in a loader
This commit is contained in:
@@ -30,12 +30,14 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
ClockText {
|
||||
Loader {
|
||||
Layout.topMargin: -40
|
||||
active: clockColumn.isVertical
|
||||
visible: active
|
||||
sourceComponent: ClockText {
|
||||
id: timeTextBottom
|
||||
text: DateTime.time.split(":")[1].split(" ")[0].padStart(2, "0")
|
||||
visible: clockColumn.isVertical
|
||||
color: clockColumn.colText
|
||||
Layout.topMargin: -40
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
font {
|
||||
pixelSize: timeTextTop.font.pixelSize
|
||||
@@ -44,6 +46,7 @@ ColumnLayout {
|
||||
variableAxes: timeTextTop.font.variableAxes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Date
|
||||
ClockText {
|
||||
@@ -64,6 +67,3 @@ ColumnLayout {
|
||||
horizontalAlignment: clockColumn.textHorizontalAlignment
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user