chore: change icon and begin second section
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
+1
-1
@@ -4,4 +4,4 @@ import "fyne.io/fyne/v2"
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
windowSize fyne.Size = fyne.NewSize(1280, 720)
|
windowSize fyne.Size = fyne.NewSize(1280, 720)
|
||||||
)
|
)
|
||||||
+4
-2
@@ -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
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user