chore: change icon and begin second section

This commit is contained in:
2026-03-30 22:05:34 +02:00
parent fefb1f7aae
commit 5533e87bc9
5 changed files with 14 additions and 8 deletions
+2 -2
View File
@@ -230,7 +230,7 @@ jobs:
export CC=x86_64-w64-mingw32-gcc export CC=x86_64-w64-mingw32-gcc
export CXX=x86_64-w64-mingw32-g++ export CXX=x86_64-w64-mingw32-g++
export CGO_LDFLAGS="-static-libgcc -static-libstdc++" export CGO_LDFLAGS="-static-libgcc -static-libstdc++"
go-winres simply --icon ./src/icon.ico --manifest gui go-winres simply --icon ./src/Icon.png --manifest gui
mv *.syso ./src mv *.syso ./src
go build -o ./patchworks.exe -ldflags -H=windowsgui ./src go build -o ./patchworks.exe -ldflags -H=windowsgui ./src
@@ -242,7 +242,7 @@ jobs:
export CC=x86_64-w64-mingw32-gcc export CC=x86_64-w64-mingw32-gcc
export CXX=x86_64-w64-mingw32-g++ export CXX=x86_64-w64-mingw32-g++
export CGO_LDFLAGS="-static-libgcc -static-libstdc++" export CGO_LDFLAGS="-static-libgcc -static-libstdc++"
go-winres simply --icon ./src/icon.ico --manifest gui go-winres simply --icon ./src/Icon.png --manifest gui
mv *.syso ./src mv *.syso ./src
go build -o ./patchworks-debug.exe ./src go build -o ./patchworks-debug.exe ./src
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

+4 -2
View File
@@ -15,7 +15,7 @@ import (
_ "embed" _ "embed"
) )
//go:embed icon.ico //go:embed Icon.png
var iconData []byte var iconData []byte
func main() { func main() {
@@ -24,7 +24,7 @@ func main() {
return return
} }
iconResource := fyne.NewStaticResource("./src/icon.ico", iconData) iconResource := fyne.NewStaticResource("./src/Icon.png", iconData)
app := app.NewWithID("nl.nerthus.patchworks") app := app.NewWithID("nl.nerthus.patchworks")
app.Settings().SetTheme(theme.DefaultTheme()) app.Settings().SetTheme(theme.DefaultTheme())
@@ -37,7 +37,9 @@ func main() {
passEntry := widget.NewPasswordEntry() passEntry := widget.NewPasswordEntry()
targEntry := widget.NewEntry() targEntry := widget.NewEntry()
var book string var book string
inputContainer := draw.MakeInputContainer(userEntry, passEntry, targEntry, &book, w) inputContainer := draw.MakeInputContainer(userEntry, passEntry, targEntry, &book, w)
infoContainer := draw.MakeInfoContainer()
content := container.NewBorder( content := container.NewBorder(
nil, // top nil, // top
+7 -3
View File
@@ -18,14 +18,14 @@ func MakeInputContainer(userEntry, passEntry, targEntry *widget.Entry, book *str
} }
loginBox := container.NewVBox( loginBox := container.NewVBox(
widget.NewLabel("Service Username"), widget.NewLabel("MeshCentral Username"),
userEntry, userEntry,
widget.NewLabel("Service Password"), widget.NewLabel("MeshCentral Password"),
passEntry, passEntry,
) )
targetBox := container.NewVBox( targetBox := container.NewVBox(
widget.NewLabel("Target Device or Group"), widget.NewLabel("MeshCentral Target Device or Group"),
targEntry, targEntry,
) )
@@ -59,3 +59,7 @@ func MakeInputContainer(userEntry, passEntry, targEntry *widget.Entry, book *str
return inputBox return inputBox
} }
func MakeInfoContainer(book *string) *fyne.Container {
}