summaryrefslogtreecommitdiff
path: root/http-client/main.go
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2021-05-14 01:57:32 +0400
committerAndrew <saintruler@gmail.com>2021-05-14 01:57:32 +0400
commit9ee54e3e82e92669775eadabaa0c743d74482729 (patch)
tree65c4eeb0a908bd69967a14c304af4dcd2bbfbbb9 /http-client/main.go
parentf4c8eef1af781dfd5ef192520ba069eacd9f98cb (diff)
Fixed issue with io.ReadAll being undefined when cross-compiling with fyne-cross tool.
Diffstat (limited to 'http-client/main.go')
-rw-r--r--http-client/main.go2
1 files changed, 2 insertions, 0 deletions
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