feat: define theme, might not need this but oh well
This commit is contained in:
15
main.go
15
main.go
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user