forked from Shinonome/dots-hyprland
fix(WeatherBar): not using config fonts
This commit is contained in:
@@ -40,7 +40,7 @@ Item {
|
|||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
visible: true
|
visible: true
|
||||||
font.pixelSize: Appearance.font.pixelSize.normal
|
font.pixelSize: Appearance.font.pixelSize.large
|
||||||
color: Appearance.colors.colOnLayer1
|
color: Appearance.colors.colOnLayer1
|
||||||
text: WeatherService.data.temp
|
text: WeatherService.data.temp
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,10 +6,8 @@ import "root:/modules/common/widgets"
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
radius: Appearance.rounding.verysmall
|
radius: Appearance.rounding.small
|
||||||
color: Appearance.colors.colLayer1
|
color: Appearance.colors.colLayer1
|
||||||
border.color: Appearance.colors.colShadow
|
|
||||||
border.width: 1
|
|
||||||
implicitWidth: columnLayout.implicitWidth * 2
|
implicitWidth: columnLayout.implicitWidth * 2
|
||||||
implicitHeight: columnLayout.implicitHeight * 2
|
implicitHeight: columnLayout.implicitHeight * 2
|
||||||
Layout.fillWidth: parent
|
Layout.fillWidth: parent
|
||||||
@@ -29,17 +27,17 @@ Rectangle {
|
|||||||
fill: 0
|
fill: 0
|
||||||
iconSize: Appearance.font.pixelSize.normal
|
iconSize: Appearance.font.pixelSize.normal
|
||||||
}
|
}
|
||||||
Text {
|
StyledText {
|
||||||
id: title
|
id: title
|
||||||
font.pixelSize: Appearance.font.pixelSize.smaller
|
font.pixelSize: Appearance.font.pixelSize.smaller
|
||||||
color: Appearance.colors.colOnLayer2
|
color: Appearance.colors.colOnLayer1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Text {
|
StyledText {
|
||||||
id: value
|
id: value
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
font.pixelSize: Appearance.font.pixelSize.normal
|
font.pixelSize: Appearance.font.pixelSize.normal
|
||||||
color: Appearance.colors.colOnLayer2
|
color: Appearance.colors.colOnLayer1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,9 +35,10 @@ Rectangle {
|
|||||||
iconSize: Appearance.font.pixelSize.huge
|
iconSize: Appearance.font.pixelSize.huge
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
StyledText {
|
||||||
text: WeatherService.data.city
|
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
|
color: Appearance.colors.colOnLayer0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user