internal: loader extra clock components
This commit is contained in:
parent
6536b61634
commit
37809f2030
2 changed files with 26 additions and 12 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import qs.widgets
|
import qs.widgets
|
||||||
import qs.services
|
import qs.services
|
||||||
import qs.config
|
import qs.config
|
||||||
|
|
@ -45,14 +47,19 @@ Item {
|
||||||
font.weight: 600
|
font.weight: 600
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
Loader {
|
||||||
visible: Config.services.useTwelveHourClock
|
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
text: root.timeComponents[2]
|
asynchronous: true
|
||||||
color: Colours.palette.m3secondary
|
active: Config.services.useTwelveHourClock
|
||||||
font.pointSize: Appearance.font.size.large
|
visible: active
|
||||||
font.weight: 600
|
|
||||||
|
sourceComponent: StyledText {
|
||||||
|
text: root.timeComponents[2] ?? ""
|
||||||
|
color: Colours.palette.m3secondary
|
||||||
|
font.pointSize: Appearance.font.size.large
|
||||||
|
font.weight: 600
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import qs.widgets
|
import qs.widgets
|
||||||
import qs.services
|
import qs.services
|
||||||
import qs.config
|
import qs.config
|
||||||
|
|
@ -42,15 +44,20 @@ ColumnLayout {
|
||||||
font.weight: 800
|
font.weight: 800
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
Loader {
|
||||||
visible: Config.services.useTwelveHourClock
|
|
||||||
Layout.leftMargin: Appearance.spacing.normal
|
Layout.leftMargin: Appearance.spacing.normal
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
||||||
text: root.timeComponents[2]
|
asynchronous: true
|
||||||
color: Colours.palette.m3primary
|
active: Config.services.useTwelveHourClock
|
||||||
font.pointSize: Appearance.font.size.extraLarge * 3
|
visible: active
|
||||||
font.weight: 700
|
|
||||||
|
sourceComponent: StyledText {
|
||||||
|
text: root.timeComponents[2] ?? ""
|
||||||
|
color: Colours.palette.m3primary
|
||||||
|
font.pointSize: Appearance.font.size.extraLarge * 3
|
||||||
|
font.weight: 700
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue