Fix #179: add experimental setting to scale down or up UI size

This commit is contained in:
Drew Weymouth
2023-11-14 19:12:00 -08:00
parent 0318e89496
commit 2e223c6141
3 changed files with 22 additions and 0 deletions
+7
View File
@@ -3,6 +3,7 @@ package main
import (
"log"
"math"
"os"
"runtime"
"time"
@@ -22,6 +23,12 @@ func main() {
log.Fatalf("fatal startup error: %v", err.Error())
}
if myApp.Config.Application.UIScaleSize == "Smaller" {
os.Setenv("FYNE_SCALE", "0.85")
} else if myApp.Config.Application.UIScaleSize == "Larger" {
os.Setenv("FYNE_SCALE", "1.1")
}
fyneApp := app.New()
fyneApp.SetIcon(res.ResAppicon256Png)