Releases: maxence-charriere/go-app
Releases · maxence-charriere/go-app
3.2.8
mac
- fix MacOS retro compatibility up to 10.11 (El Capitan).
3.2.7
mac
- fix MacOS retro compatibility up to 10.11.
3.2.6
mac
- The way to make a window translucent changed:
win := app.NewWindow(app.WindowConfig{
Title: "frosted window",
Width: 1024,
Height: 720,
TitlebarHidden: true,
FrostedBackground: true, // Enable translucent effect.
URL: "/MyCompo",
})
WindowConfig.Mac
is deprecated.MacWindowConfig
is deprecated.Vibrancy
is deprecated.- Vibrancy const are deprecated:
VibeNone
VibeLight
VibeDark
VibeTitlebar
VibeSelection
VibeMenu
VibePopover
VibeSidebar
VibeMediumLight
VibeUltraDark
3.2.5
general
- In HTML based elements (windows and pages):
font-family
: Default is the system font.font-size
: Default is 11px.
mac
- Fix MacOS Mojave deprecated warnings.
goapp mac build
andgoapp mac run
:-deployment-target
: Specify for which version of MacOS is the build.-a
: Force rebuild go executable.-race
: Build with data race detection.
3.2.4
mac
- mac default main window background takes the system default color.
3.2.3
General
- EventArgs structs now have info about the source element that invoked the
event.
// MouseEvent represents an onmouse event arg.
type MouseEvent struct {
ClientX float64
ClientY float64
PageX float64
PageY float64
ScreenX float64
ScreenY float64
Button int
Detail int
AltKey bool
CtrlKey bool
MetaKey bool
ShiftKey bool
InnerText string
Source EventSource
}
// EventSource represents a descriptor to an event source.
type EventSource struct {
GoappID string
CompoID string
ID string
Class string
Data map[string]string
}
3.2.2
- Fixes
goapp web
on windows. - Chinese README.
3.2.1
General
goapp update
command has been added.- Readme has been rewritten.
- Small dom internal refactors.
mac
goapp mac build
has been refactored to be more maintainable and reliable.goapp mac
got various bug fixes.mac.Driver.URL
field has been added. It allows to run and reopen a
main window without having to do in by hand withdriver.OnRun
and
driver.OnReopen
.
web
goapp web build
has been refactored. It now produces a .wapp that contains
the executable and the resources.goapp web run
command has been added. It can launch the web server and the
the gopherjs client in the default web browser.
3.2.0
General
-
Logger interface become a function:
var Logger func(format string, a ...interface{}
-
Log functions have been modified:
Log() // Behave like fmt.Println. Logf() // New - behave like fmt.Printf. Panic() // New - behave like Log followed by panic. Panicf() // New - behave like Logf followed by panic. Debug() // Removed.
The reason of this change is because packaged app like a .app (MacOS) and
.appx (Windows in the future) do not print their logs into the terminal.
These functions embed the logic to make terminal logs possible. -
goapp
commands now have verbose mode.
Mac
goapp mac build
now produces a.app
.goapp mac run
command has been added. It runs a.app
and capture the
logs in the terminal.