🎨 Refactor code structure

This commit is contained in:
2025-04-25 17:44:40 +08:00
parent 3483ac4cf6
commit b3ecc08468
12 changed files with 109 additions and 87 deletions

10
main.go
View File

@@ -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,