Skip to content

Commit

Permalink
resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisveilleux committed May 12, 2021
1 parent d3e4293 commit bb5ab99
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion ui/current_1_scalable.qml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ WeatherDelegateScalable {
}
}

Mycroft.AutoFitLabel {
Label {
// Current temperature in the configured temperature unit
id: temperature
font.weight: Font.Bold
font.pixelSize: parent.height * 0.65
horizontalAlignment: Text.AlignHCenter
Layout.fillWidth: true
Layout.preferredHeight: proportionalGridUnit * 40
rightPadding: -font.pixelSize * 0.1
Expand Down
12 changes: 8 additions & 4 deletions ui/current_2_scalable.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,27 @@ import org.kde.lottie 1.0
WeatherDelegateScalable {
id: root

Mycroft.AutoFitLabel {
Label {
id: highTemperature
font.weight: Font.Bold
font.pixelSize: parent.height * 0.50
horizontalAlignment: Text.AlignHCenter
Layout.fillWidth: true
Layout.preferredHeight: proportionalGridUnit * 40
//The off-centering to balance the ° should be proportional as well, so we use the computed pixel size
rightPadding: -font.pixelSize * 0.1
text: sessionData.highTemperature + "°"
}

Mycroft.AutoFitLabel {
Label {
id: lowTemperature
font.pixelSize: parent.height * 0.50
font.styleName: "Thin"
font.weight: Font.Thin
horizontalAlignment: Text.AlignHCenter
Layout.fillWidth: true
Layout.preferredHeight: proportionalGridUnit * 40
rightPadding: -font.pixelSize * 0.1
font.weight: Font.Thin
font.styleName: "Thin"
text: sessionData.lowTemperature + "°"
}
}

0 comments on commit bb5ab99

Please sign in to comment.