Skip to content

Commit

Permalink
Fix BackgroundColour documentation. Update changelog. Move contributo…
Browse files Browse the repository at this point in the history
…rs into website. Create changelog link.
  • Loading branch information
leaanthony committed Jul 25, 2022
1 parent 63b47cc commit 7ea6f6d
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 267 deletions.
2 changes: 0 additions & 2 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"files": [
"README.md",
"README.zh-Hans.md",
"website/src/pages/credits.mdx"
],
"imageSize": 75,
Expand Down
34 changes: 1 addition & 33 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,2 @@

2019-07-20 **v0.17.6-pre**
* Significant refactor of runtime
* Removed wailsbridge file - now a unified approach taken
* Fixed React on Windows - Thanks [Florian Didran](https://github.com/fdidron)!

2019-06-18 **v0.16.0**
* React template FTW! - Thanks [admin_3.exe](https://github.com/bh90210)!
* Updated contributors
* Arch Linux detection without lsb-release
* Removed deprecated methods for dealing with JS/CSS in the backend

2019-05-29 **v0.14.11-pre**
* Windows fix for spinner

2019-05-29 **v0.14.10-pre**
* Windows fix for Vuetify

2019-05-29 **v0.14.9-pre**
* Vuetify project template 🎉

2019-05-29 **v0.14.8-pre**
* Updated Ubuntu npm install command

2019-05-22 **v0.14.7-pre**
* New projects are built automatically when initialised
* Go 1.12 is now a minimum requirement

2019-05-21 **v0.14.6-pre**
* Hotfix for module dependency issue

2019-05-20 **v0.14.5-pre**
* Added developer tooling - New Template Generator
* Documentation fixes - Thanks [admin_3.exe](https://github.com/bh90210)!
The current changelog may be found at: https://wails.io/changelog/
48 changes: 1 addition & 47 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,2 @@
# Contributors

Wails is what it is because of the time and effort given by these great people. A huge thank you to each and every one!

* [Dustin Krysak](https://wiki.ubuntu.com/bashfulrobot)
* [Qais Patankar](https://github.com/qaisjp)
* [Anthony Lee](https://github.com/alee792)
* [Adrian Lanzafame](https://github.com/lanzafame)
* [Mattn](https://github.com/mattn)
* [0xflotus](https://github.com/0xflotus)
* [Michael D Henderson](https://github.com/mdhender)
* [fred2104](https://github.com/fishfishfish2104)
* [intelwalk](https://github.com/intelwalk)
* [Mark Stenglein](https://github.com/ocelotsloth)
* [admin_3.exe](https://github.com/bh90210)
* [iceleo-com](https://github.com/iceleo-com)
* [fallendusk](https://github.com/fallendusk)
* [Nikolai Zimmermann](https://github.com/Chronophylos)
* [Toyam Cox](https://github.com/Vaelatern)
* [Robin Eklind](https://github.com/mewmew)
* [Kris Raney](https://github.com/kraney)
* [Jack Mordaunt](https://github.com/JackMordaunt)
* [Michael Hipp](https://github.com/MichaelHipp)
* [Travis McLane](https://github.com/tmclane)
* [Reuben Thomas-Davis](https://github.com/Rested)
* [Jarek](https://github.com/Jarek-SRT)
* [Konez2k](https://github.com/konez2k)
* [msms](https://github.com/sayuthisobri)
* [dedo1911](https://github.com/dedo1911)
* [Florian Didron](https://github.com/fdidron)
* [Christopher Murphy](https://github.com/Splode)
* [Zámbó, Levente](https://github.com/Lyimmi)
* [artem](https://github.com/Unix4ever)
* [Tim Kipp](https://github.com/timkippdev)
* [Dmitry Gomzyakov](https://github.com/kyoto44)
* [Arthur Wiebe](https://github.com/artooro)
* [Ilgıt Yıldırım](https://github.com/ilgityildirim)
* [Altynbek](https://github.com/gelleson)
* [Kyle](https://github.com/kmuchmore)
* [Balakrishna Prasad Ganne](https://github.com/aayush420)
* [Charaf Rezrazi](https://github.com/Rezrazi)
* [misitebao](https://github.com/misitebao)
* [Elie Grenon](https://github.com/DrunkenPoney)
* [SophieAu](https://github.com/SophieAu)
* [Alexander Matviychuk](https://github.com/alexmat)
* [RH12503](https://github.com/RH12503)
* [hi019](https://github.com/hi019)
* [Igor Minen](https://github.com/Igogrek)
The latest contributors list may be found at: https://wails.io/credits#contributors
173 changes: 2 additions & 171 deletions README.md

Large diffs are not rendered by default.

24 changes: 23 additions & 1 deletion v2/pkg/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ type App struct {
StartHidden bool
HideWindowOnClose bool
AlwaysOnTop bool
BackgroundColour *RGBA
// BackgroundColour is the background colour of the window
// You can use the options.NewRGB and options.NewRGBA functions to create a new colour
BackgroundColour *RGBA
// RGBA is deprecated. Please use BackgroundColour
RGBA *RGBA
Assets fs.FS
Expand Down Expand Up @@ -71,6 +73,26 @@ type RGBA struct {
A uint8 `json:"a"`
}

// NewRGBA creates a new RGBA struct with the given values
func NewRGBA(r, g, b, a uint8) *RGBA {
return &RGBA{
R: r,
G: g,
B: b,
A: a,
}
}

// NewRGB creates a new RGBA struct with the given values and Alpha set to 255
func NewRGB(r, g, b uint8) *RGBA {
return &RGBA{
R: r,
G: g,
B: b,
A: 255,
}
}

// MergeDefaults will set the minimum default values for an application
func MergeDefaults(appoptions *App) {
err := mergo.Merge(appoptions, Default)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/guides/dynamic-assets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func main() {
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 255},
OnStartup: app.startup,
AssetsHandler: NewFileLoader(),
Bind: []interface{}{
Expand Down
6 changes: 3 additions & 3 deletions website/docs/reference/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ hide the window instead.

Name: BackgroundColour

Type: int (0xRRGGBBAA)
Example: 0xFF000088 - Red at 50% transparency
Type: *options.RGBA
Example: options.NewRGBA(255,0,0,128) - Red at 50% transparency

This value is the default background colour of the window.
Default: 0xFFFFFFFF.
Default: white

### AlwaysOnTop

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func main() {
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 255},
OnStartup: app.startup,
AssetsHandler: NewFileLoader(),
Bind: []interface{}{
Expand Down
8 changes: 8 additions & 0 deletions website/src/pages/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Added

* Added `options.NewRGBA` and `options.NewRGB` functions to create `*options.RGBA` by @leaanthony

## Fixed

* BackgroundColour documentation fix

## [v2.0.0-beta.40] - 2022-07-24

## Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func main() {
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 255},
OnStartup: app.startup,
AssetsHandler: NewFileLoader(),
Bind: []interface{}{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ hide the window instead.

Name: BackgroundColour

Type: int (0xRRGGBBAA)
Example: 0xFF000088 - Red at 50% transparency
Type: *options.RGBA
Example: options.NewRGBA(255,0,0,128) - Red at 50% transparency

This value is the default background colour of the window.
Default: 0xFFFFFFFF.
Default: white

### AlwaysOnTop

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func main() {
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 255},
OnStartup: app.startup,
AssetsHandler: NewFileLoader(),
Bind: []interface{}{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ hide the window instead.

Name: BackgroundColour

Type: int (0xRRGGBBAA)
Example: 0xFF000088 - Red at 50% transparency
Type: *options.RGBA
Example: options.NewRGBA(255,0,0,128) - Red at 50% transparency

This value is the default background colour of the window.
Default: 0xFFFFFFFF.
Default: white

### AlwaysOnTop

Expand Down

0 comments on commit 7ea6f6d

Please sign in to comment.