Refine widget formatting, adjust grid dimensions, and improve calendar functionality

This commit is contained in:
2025-12-31 01:28:00 +01:00
parent 0fc1ea476b
commit 45a8115d30
3 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ func createWeather(ctx context.Context, _ terminalapi.Terminal, _ interface{}) w
weatherIcon := getIcon(weather.Weather[0].Icon)
if err := widget.Write(fmt.Sprintf("\n %s\n\n", weather.Name), text.WriteCellOpts(cell.FgColor(cell.ColorWhite))); err != nil {
if err := widget.Write(fmt.Sprintf(" %s\n\n", weather.Name), text.WriteCellOpts(cell.FgColor(cell.ColorWhite))); err != nil {
return err
}
@@ -101,7 +101,7 @@ func createWeather(ctx context.Context, _ terminalapi.Terminal, _ interface{}) w
} else {
riseSet = `Sunrise: ` + time.Unix(weather.Sys.Sunrise, 0).Format("15:04")
}
if err := widget.Write(fmt.Sprintf(" %s\n\n", riseSet), text.WriteCellOpts(cell.FgColor(cell.ColorWhite))); err != nil {
if err := widget.Write(fmt.Sprintf(" %s\n", riseSet), text.WriteCellOpts(cell.FgColor(cell.ColorWhite))); err != nil {
return err
}