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 CXX=x86_64-w64-mingw32-g++
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
go build -o ./patchworks.exe -ldflags -H=windowsgui ./src
@@ -242,7 +242,7 @@ jobs:
export CC=x86_64-w64-mingw32-gcc
export CXX=x86_64-w64-mingw32-g++
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
go build -o ./patchworks-debug.exe ./src
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

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