KVMote.go/main.go
Ricardo Carneiro 5d016d7087 WIP: mini-window approach for scroll capture
Tentativa de capturar scroll via mini janela sempre-no-topo.
Inclui: MoveWindow/GetMonitorWorkArea via Win32, park consistente
em wx+150/wy+50, ShowCursor loop no goroutine pós-resize.
Revertível: git checkout HEAD~1

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 16:51:00 -03:00

48 lines
961 B
Go

package main
import (
"embed"
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/options"
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
"github.com/wailsapp/wails/v2/pkg/options/windows"
)
//go:embed all:frontend/dist
var assets embed.FS
func main() {
// Create an instance of the app structure
app := NewApp()
// Create application with options
err := wails.Run(&options.App{
Title: "KVMote",
Width: 400,
Height: 550,
DisableResize: false,
Fullscreen: false,
Frameless: false,
MinWidth: 200,
MinHeight: 50,
AssetServer: &assetserver.Options{
Assets: assets,
},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
Bind: []interface{}{
app,
},
Windows: &windows.Options{
DisableWindowIcon: false,
WebviewIsTransparent: false,
WindowIsTranslucent: false,
},
})
if err != nil {
println("Error:", err.Error())
}
}