feat: define theme, might not need this but oh well

This commit is contained in:
2024-07-23 08:55:10 -05:00
parent 920f61d3a2
commit fa897496a2
2 changed files with 66 additions and 8 deletions

15
main.go
View File

@@ -4,19 +4,18 @@ import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"github.com/ryanehamil/computerinfo/src/computerinfo"
"github.com/ryanehamil/computerinfo/src/utils"
)
func main() {
a := app.New()
App := app.New()
App.Settings().SetTheme(&utils.Theme{})
// create fyne resource for icon.png
// a.SetIcon(resourceIconPng)
Window := App.NewWindow("Computer Info")
w := a.NewWindow("Computer Info")
Window.Resize(fyne.NewSize(800, 200))
w.Resize(fyne.NewSize(800, 200))
Window.SetContent(computerinfo.Container())
w.SetContent(computerinfo.Container())
w.ShowAndRun()
Window.ShowAndRun()
}