Skip to content

Commit 31d5f15

Browse files
committed
fix: update font sizes in DailyForecast and HourlyForecast components for improved readability
1 parent f41c4ec commit 31d5f15

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/screens/Weather/Main/components/DailyForecast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function DailyWeather({ d, day, currentUnit, min, max, dotPosition, theme }: Dai
127127
<Icon size={21} color={color.color} style={{ marginRight: 10 }} variant='solid-rounded' />
128128
<Medium
129129
className='text-center text-sky-500'
130-
style={{ display: probability ? 'flex' : 'none', fontSize: 11, opacity: 0.8 }}
130+
style={{ display: probability ? 'flex' : 'none', fontSize: 12, opacity: 0.8 }}
131131
>
132132
{probability}%
133133
</Medium>

src/screens/Weather/Main/components/HourlyForecast.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,9 @@ function SmallWeather({ color, time, ap, temp, Icon, style, probability, ...rest
9696
</Medium>
9797
<View>
9898
<Icon size={22} color={color.color} variant='solid-rounded' />
99-
{
100-
<SemiBold className='text-center text-sky-500' style={{ opacity: probability ? 1 : 0, fontSize: 11 }}>
101-
{probability}%
102-
</SemiBold>
103-
}
99+
<Medium className='text-center text-sky-500' style={{ opacity: probability ? 1 : 0, fontSize: 12 }}>
100+
{probability}%
101+
</Medium>
104102
<Medium style={{ color: color.color, fontSize: 12 }} className='text-center'>
105103
{time}{' '}
106104
<Regular style={{ color: color.color, fontSize: 10 }} className='text-center'>

src/screens/Weather/Widget/WeatherWidget.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ const WeatherWidget = ({ navigation }: { navigation: StackNav }) => {
8787
>
8888
<View>
8989
<View className='flex-row justify-between'>
90-
<Medium className='text-base' style={color}>
90+
<Medium className='text-lg' style={color}>
9191
{currentCity.name}
9292
</Medium>
9393
{isLoading && <ActivityIndicator size={15} color={color.color} />}
9494
</View>
95-
<Regular style={[{ fontSize: 60, lineHeight: 80 }, color]}>
95+
<Regular style={[{ fontSize: 70, lineHeight: 90 }, color]}>
9696
{w ? tempConverter({ temp: w.current?.temp, unit: currentUnit }) : '__'}
9797
{currentUnit === 'K' ? '' : '°'}
9898
</Regular>

0 commit comments

Comments
 (0)