Regenerate templates to use BackgroundColour

This commit is contained in:
Lea Anthony
2022-06-23 20:30:18 +10:00
parent beb909fc0f
commit 16581ceff9
41 changed files with 120 additions and 912 deletions
@@ -16,11 +16,12 @@ func main() {
// Create application with options
err := wails.Run(&options.App{
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
OnStartup: app.startup,
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
Bind: []interface{}{
app,
},
@@ -158,11 +158,11 @@ var templates = []*template{
func main() {
//rebuildRuntime()
//
//for _, t := range templates {
// createTemplate(t)
//}
rebuildRuntime()
for _, t := range templates {
createTemplate(t)
}
// copy plain template
s.COPYDIR("plain", "../templates/plain")
@@ -36,7 +36,7 @@ func main() {
Frameless: false,
StartHidden: false,
HideWindowOnClose: false,
BackgroundColour: &options.RGBA{R: 255, G: 255, B: 255, A: 255},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
Assets: assets,
Menu: nil,
Logger: nil,
@@ -19,7 +19,7 @@
"lit": "^2.0.2"
},
"devDependencies": {
"vite": "^2.9.5",
"vite": "^2.9.9",
"typescript": "^4.5.4"
}
}
@@ -16,11 +16,12 @@ func main() {
// Create application with options
err := wails.Run(&options.App{
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
OnStartup: app.startup,
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
Bind: []interface{}{
app,
},
@@ -17,6 +17,6 @@
"lit": "^2.0.2"
},
"devDependencies": {
"vite": "^2.9.5"
"vite": "^2.9.9"
}
}
@@ -16,11 +16,12 @@ func main() {
// Create application with options
err := wails.Run(&options.App{
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
OnStartup: app.startup,
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
Bind: []interface{}{
app,
},
@@ -13,6 +13,6 @@
"devDependencies": {
"@preact/preset-vite": "^2.1.5",
"typescript": "^4.5.4",
"vite": "^2.9.5"
"vite": "^2.9.9"
}
}
@@ -1 +0,0 @@
import JSX = preact.JSX
@@ -1,4 +1,4 @@
import { defineConfig } from 'vite'
import {defineConfig} from 'vite'
import preact from '@preact/preset-vite'
// https://vitejs.dev/config/
@@ -16,11 +16,12 @@ func main() {
// Create application with options
err := wails.Run(&options.App{
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
OnStartup: app.startup,
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
Bind: []interface{}{
app,
},
@@ -12,6 +12,6 @@
},
"devDependencies": {
"@preact/preset-vite": "^2.1.5",
"vite": "^2.9.5"
"vite": "^2.9.9"
}
}
@@ -1,4 +1,4 @@
import { defineConfig } from 'vite'
import {defineConfig} from 'vite'
import preact from '@preact/preset-vite'
// https://vitejs.dev/config/
@@ -16,11 +16,12 @@ func main() {
// Create application with options
err := wails.Run(&options.App{
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
OnStartup: app.startup,
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
Bind: []interface{}{
app,
},
@@ -16,6 +16,6 @@
"@types/react-dom": "^18.0.0",
"@vitejs/plugin-react": "^1.3.0",
"typescript": "^4.6.3",
"vite": "^2.9.5"
"vite": "^2.9.9"
}
}
@@ -1,4 +1,4 @@
import { defineConfig } from 'vite'
import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
@@ -16,11 +16,12 @@ func main() {
// Create application with options
err := wails.Run(&options.App{
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
OnStartup: app.startup,
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
Bind: []interface{}{
app,
},
@@ -15,6 +15,6 @@
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@vitejs/plugin-react": "^1.3.0",
"vite": "^2.9.5"
"vite": "^2.9.9"
}
}
@@ -1,4 +1,4 @@
import { defineConfig } from 'vite'
import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
@@ -16,11 +16,12 @@ func main() {
// Create application with options
err := wails.Run(&options.App{
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
OnStartup: app.startup,
Title: "{{.ProjectName}}",
Width: 1024,
Height: 768,
Assets: assets,
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
Bind: []interface{}{
app,
},

Some files were not shown because too many files have changed in this diff Show More