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.services
|
||||
import qs.config
|
||||
|
|
@ -45,14 +47,19 @@ Item {
|
|||
font.weight: 600
|
||||
}
|
||||
|
||||
StyledText {
|
||||
visible: Config.services.useTwelveHourClock
|
||||
Loader {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
||||
text: root.timeComponents[2]
|
||||
color: Colours.palette.m3secondary
|
||||
font.pointSize: Appearance.font.size.large
|
||||
font.weight: 600
|
||||
asynchronous: true
|
||||
active: Config.services.useTwelveHourClock
|
||||
visible: active
|
||||
|
||||
sourceComponent: StyledText {
|
||||
text: root.timeComponents[2] ?? ""
|
||||
color: Colours.palette.m3secondary
|
||||
font.pointSize: Appearance.font.size.large
|
||||
font.weight: 600
|
||||
}
|
||||
}
|
||||
|
||||
StyledText {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.widgets
|
||||
import qs.services
|
||||
import qs.config
|
||||
|
|
@ -42,15 +44,20 @@ ColumnLayout {
|
|||
font.weight: 800
|
||||
}
|
||||
|
||||
StyledText {
|
||||
visible: Config.services.useTwelveHourClock
|
||||
Loader {
|
||||
Layout.leftMargin: Appearance.spacing.normal
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
|
||||
text: root.timeComponents[2]
|
||||
color: Colours.palette.m3primary
|
||||
font.pointSize: Appearance.font.size.extraLarge * 3
|
||||
font.weight: 700
|
||||
asynchronous: true
|
||||
active: Config.services.useTwelveHourClock
|
||||
visible: active
|
||||
|
||||
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