fix(WeatherBar): not using config fonts

This commit is contained in:
Hasan A. Tekeoğlu
2025-06-28 08:32:39 +03:00
parent 3f44ecb068
commit d7cf0f4f27
3 changed files with 9 additions and 10 deletions
@@ -40,7 +40,7 @@ Item {
StyledText {
visible: true
font.pixelSize: Appearance.font.pixelSize.normal
font.pixelSize: Appearance.font.pixelSize.large
color: Appearance.colors.colOnLayer1
text: WeatherService.data.temp
}
@@ -6,10 +6,8 @@ import "root:/modules/common/widgets"
Rectangle {
id: root
radius: Appearance.rounding.verysmall
radius: Appearance.rounding.small
color: Appearance.colors.colLayer1
border.color: Appearance.colors.colShadow
border.width: 1
implicitWidth: columnLayout.implicitWidth * 2
implicitHeight: columnLayout.implicitHeight * 2
Layout.fillWidth: parent
@@ -29,17 +27,17 @@ Rectangle {
fill: 0
iconSize: Appearance.font.pixelSize.normal
}
Text {
StyledText {
id: title
font.pixelSize: Appearance.font.pixelSize.smaller
color: Appearance.colors.colOnLayer2
color: Appearance.colors.colOnLayer1
}
}
Text {
StyledText {
id: value
Layout.alignment: Qt.AlignHCenter
font.pixelSize: Appearance.font.pixelSize.normal
color: Appearance.colors.colOnLayer2
color: Appearance.colors.colOnLayer1
}
}
}
@@ -35,9 +35,10 @@ Rectangle {
iconSize: Appearance.font.pixelSize.huge
}
Text {
StyledText {
text: WeatherService.data.city
font.pixelSize: Appearance.font.pixelSize.large
font.pixelSize: Appearance.font.pixelSize.title
font.family: Appearance.font.family.title
color: Appearance.colors.colOnLayer0
}
}