Skip to content

Commit

Permalink
add full size app
Browse files Browse the repository at this point in the history
  • Loading branch information
eumel8 committed Jun 19, 2024
1 parent 8f0a049 commit c35c663
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func main() {
}
carbonApp := app.New()
carbonWindow := carbonApp.NewWindow("Carbon-App")
carbonWindow.SetFullScreen(true)

mainLabel := canvas.NewText("Show the current carbon emission", color.White)
mainContent := container.NewVBox(mainLabel)
Expand All @@ -157,7 +158,7 @@ func main() {
timeLabel.Alignment = fyne.TextAlignCenter
carbonLabel := canvas.NewText(fmt.Sprintf("%d ", carbonMetric), color.Black)
carbonLabel.TextStyle.Bold = true
carbonLabel.TextSize = 50
carbonLabel.TextSize = 72
carbonLabel.Alignment = fyne.TextAlignCenter
content := container.NewVBox(timeLabel, carbonLabel)
carbonLabel.Refresh()
Expand Down

0 comments on commit c35c663

Please sign in to comment.