diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/frontend/src/main.css b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/frontend/src/main.css index 3abd5edf4..83cd1abc4 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/frontend/src/main.css +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/vanilla/frontend/src/main.css @@ -2,7 +2,7 @@ html { text-align: center; color: white; - background-color: black; + background-color: rgba(1,1,1,0.1); } body { diff --git a/v2/go.sum b/v2/go.sum index 78b174740..fdfdb76bd 100644 --- a/v2/go.sum +++ b/v2/go.sum @@ -35,6 +35,8 @@ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM= github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/harry1453/go-common-file-dialog v1.0.0 h1:fzBAGhRTqWQyJw5xkm0PSsA+d3CBYBrfh+Nayb6U0nM= +github.com/harry1453/go-common-file-dialog v1.0.0/go.mod h1:3zwmbo7fy+uYGyaec74mu+Z9DPg0aEt10fSjjPwfyiY= github.com/imdario/mergo v0.3.11 h1:3tnifQM4i+fbajXKBHXWEH+KvNHqojZ778UH75j3bGA= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/jackmordaunt/icns v1.0.0 h1:RYSxplerf/l/DUd09AHtITwckkv/mqjVv4DjYdPmAMQ= diff --git a/v2/pkg/buildassets/build/README.md b/v2/pkg/buildassets/build/README.md index 379aa7008..c01ea3cb1 100644 --- a/v2/pkg/buildassets/build/README.md +++ b/v2/pkg/buildassets/build/README.md @@ -50,4 +50,12 @@ Example: ## Mac -The `mac` directory holds files specific to Mac builds, such as `Info.plist`. These may be edited and used as part of the build. +The `darwin` directory holds files specific to Mac builds, such as `Info.plist`. +These may be customised and used as part of the build. To return these files to the default state, simply delete them and +build with the `-package` flag. + +## Windows + +The `windows` directory contains the manifest and rc files used when building with the `-package` flag. +These may be customised for your application. To return these files to the default state, simply delete them and +build with the `-package` flag. \ No newline at end of file diff --git a/v2/pkg/buildassets/build/dialog/README.md b/v2/pkg/buildassets/build/dialog/README.md index b9ddc2781..3b9189a8f 100644 --- a/v2/pkg/buildassets/build/dialog/README.md +++ b/v2/pkg/buildassets/build/dialog/README.md @@ -1,3 +1,29 @@ -# Default Dialog Icons +## Dialog -This directory contains the default dialog icons. These are pre-compiled into a single C file (`defaultDialogIcons.c`) which resides in the `ffenestri` directory. If these icons are ever updated, then there is a need to run: `go run build.go` in this directory. This will generate a new `defaultDialogIcons.c` file in the `ffenestri` directory. \ No newline at end of file +NOTE: Currently, this is a Mac only feature. + +Place any PNG file in this directory to be able to use them in message dialogs. +The files should have names in the following format: `name[-(light|dark)][2x].png` + +Examples: + +* `mypic.png` - Standard definition icon with ID `mypic` +* `mypic-light.png` - Standard definition icon with ID `mypic`, used when system theme is light +* `mypic-dark.png` - Standard definition icon with ID `mypic`, used when system theme is dark +* `mypic2x.png` - High definition icon with ID `mypic` +* `mypic-light2x.png` - High definition icon with ID `mypic`, used when system theme is light +* `mypic-dark2x.png` - High definition icon with ID `mypic`, used when system theme is dark + +### Order of preference + +Icons are selected with the following order of preference: + +For High Definition displays: +* name-(theme)2x.png +* name2x.png +* name-(theme).png +* name.png + +For Standard Definition displays: +* name-(theme).png +* name.png \ No newline at end of file diff --git a/v2/pkg/buildassets/build/tray/README.md b/v2/pkg/buildassets/build/tray/README.md new file mode 100644 index 000000000..5f4e7b4e6 --- /dev/null +++ b/v2/pkg/buildassets/build/tray/README.md @@ -0,0 +1,8 @@ +## Tray + +Place any PNG file in this directory to be able to use them as tray icons. +The name of the filename will be the ID to reference the image. + +Example: + +* `mypic.png` - May be referenced using `runtime.Tray.SetIcon("mypic")`