From b6dd9997578cc6a4322cc759b80033f7af7428c0 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 1 Nov 2020 06:29:49 +1100 Subject: [PATCH] Added more docs around config --- config.go | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/config.go b/config.go index 8d7bfddb..c520aced 100644 --- a/config.go +++ b/config.go @@ -11,13 +11,29 @@ import ( // AppConfig is the configuration structure used when creating a Wails App object type AppConfig struct { - Width, Height int - Title string - HTML string - JS string - CSS string - Colour string - Resizable bool + // The width and height of your application in pixels + Width, Height int + + // The title to put in the title bar + Title string + + // The HTML your app should use. If you leave it blank, a default will be used: + //
+ HTML string + + // The Javascript your app should use. Normally this should be generated by a bundler. + JS string + + // The CSS your app should use. Normally this should be generated by a bundler. + CSS string + + // The colour of your window. Can take "#fff", "rgb(255,255,255)", "rgba(255,255,255,1)" formats + Colour string + + // Indicates whether your app should be resizable + Resizable bool + + // Indicated if the devtools should be disabled DisableInspector bool }