Skip to content

Commit 50bc8d6

Browse files
committed
added screenshots
1 parent 07b9e48 commit 50bc8d6

6 files changed

Lines changed: 23 additions & 3 deletions

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
A compact weather widget for your desktop.
44

5+
## Screenshots
6+
7+
**System Tray Menu**
8+
9+
![Win32 Task Manager Menu](images/win32-taskmanager-menu.png)
10+
11+
**Opacity / background transparency** - (1-5 Cities)
12+
13+
![Win32 Transparent Background](images/win32-transparent-background.png)
14+
15+
**Weather Widget Settings**
16+
17+
![Weather Widget Settings](images/weather-widget-sesstings.png)
18+
519
## Compilation
620

721
### Windows
@@ -65,7 +79,7 @@ A compact weather widget for your desktop.
6579
}
6680
```
6781

68-
### Windows COnfig location
82+
### Windows Config location
6983

7084
```powershell
7185
Get-Content "$env:APPDATA\WeatherWidget\WeatherWidget\config.json"
97.9 KB
Loading

images/win32-taskmanager-menu.png

46.8 KB
Loading
68.7 KB
Loading

internal/ui/panel/panel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (p *CityPanel) Update(data *weather.WeatherData) {
111111

112112
// Update labels.
113113
p.tempLabel.SetText(weather.FormatTemperature(data.Temperature))
114-
p.descLabel.SetText(data.Description)
114+
p.descLabel.SetText(weather.FormatDescription(data.Description))
115115
p.cityLabel.SetText(weather.FormatCityRegion(data.CityName, data.Region))
116116

117117
// Hide error indicator on successful update.

internal/weather/format.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package weather
22

33
import (
44
"fmt"
5+
"strings"
56
"time"
67
)
78

@@ -43,7 +44,12 @@ func FormatDate(t time.Time, timezone string) string {
4344
return t.In(loc).Format("02/01/2006")
4445
}
4546

46-
// MapConditionToIcon maps a weather condition code to an embedded icon asset identifier.
47+
// FormatDescription title-cases a weather description string.
48+
// e.g. "clear sky" → "Clear Sky", "broken clouds" → "Broken Clouds"
49+
func FormatDescription(desc string) string {
50+
return strings.Title(desc)
51+
}
52+
4753
// Known codes are returned as-is. Unknown codes default to "cloudy".
4854
func MapConditionToIcon(code string) string {
4955
for _, valid := range AllIconCodes {

0 commit comments

Comments
 (0)