Flip Elsewhen's time format with t and line up its weather (#13448)
* Flip Elsewhen between 24-hour and AM/PM time with t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Line up Elsewhen's weather in one column The temperature and weather icon sat against each row's time, which is narrower for "4:06" than "10:06", and shared the name's slack. The time column now takes the widest time's width in every row, and a spacer holds the weather against it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
773e19e145
commit
25f9795221
2 files changed
+29
No files matched your search
@@ -173,6 +173,11 @@ Rectangle {
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
|
||||
// Takes the slack, so the weather sits against the time column in every row.
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Caption {
|
||||
Layout.alignment: Qt.AlignBaseline
|
||||
text: Model.tempLabel(row.panel.facts[Model.factsKey(row.rowData)], row.panel.units)
|
||||
@@ -299,6 +304,8 @@ Rectangle {
|
||||
|
||||
Column {
|
||||
id: timeBlock
|
||||
// One width for every row, so the labels beside it line up.
|
||||
width: Math.max(row.panel.timeColumnWidth, implicitWidth)
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: Style.spacing.rowPaddingX
|
||||
anchors.verticalCenter: rowLabels.verticalCenter
|
||||
|
||||
Reference in new issue
Block a user