From c35c663a878f49b34cee208e30e7bfaa42ac81e4 Mon Sep 17 00:00:00 2001 From: Frank Kloeker Date: Wed, 19 Jun 2024 05:13:18 +0200 Subject: [PATCH] add full size app --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index ad271a5..c2b4c80 100644 --- a/main.go +++ b/main.go @@ -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) @@ -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()