From 9ee54e3e82e92669775eadabaa0c743d74482729 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 14 May 2021 01:57:32 +0400 Subject: Fixed issue with io.ReadAll being undefined when cross-compiling with fyne-cross tool. --- http-client/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'http-client/main.go') diff --git a/http-client/main.go b/http-client/main.go index f8ecb4e..7234bfc 100644 --- a/http-client/main.go +++ b/http-client/main.go @@ -10,6 +10,7 @@ import ( "fyne.io/fyne/v2/data/binding" "fyne.io/fyne/v2/dialog" "fyne.io/fyne/v2/layout" + "fyne.io/fyne/v2/theme" "fyne.io/fyne/v2/widget" "image/color" "regexp" @@ -287,6 +288,7 @@ func startLayout(window fyne.Window, user UserData) { func main() { myApp := app.New() + myApp.Settings().SetTheme(theme.DarkTheme()) window := myApp.NewWindow("") window.Resize(fyne.Size{Width: 640, Height: 480}) var user UserData -- cgit v1.2.3