🎨 Refactor code structure
This commit is contained in:
10
main.go
10
main.go
@@ -29,10 +29,8 @@ func main() {
|
||||
// 'Mac' options tailor the application when running an macOS.
|
||||
app := application.New(application.Options{
|
||||
Name: "voidraft",
|
||||
Description: "A demo of using raw HTML & CSS",
|
||||
Services: []application.Service{
|
||||
application.NewService(&GreetService{}),
|
||||
},
|
||||
Description: "voidraft",
|
||||
Services: []application.Service{},
|
||||
Assets: application.AssetOptions{
|
||||
Handler: application.AssetFileServerFS(assets),
|
||||
},
|
||||
@@ -48,8 +46,8 @@ func main() {
|
||||
// 'URL' is the URL that will be loaded into the webview.
|
||||
app.NewWebviewWindowWithOptions(application.WebviewWindowOptions{
|
||||
Title: "voidraft",
|
||||
Width: 500,
|
||||
Height: 600,
|
||||
Width: 700,
|
||||
Height: 800,
|
||||
Mac: application.MacWindow{
|
||||
InvisibleTitleBarHeight: 50,
|
||||
Backdrop: application.MacBackdropTranslucent,
|
||||
|
Reference in New Issue
Block a user