Skip to content

Commit

Permalink
add icon to launcher app
Browse files Browse the repository at this point in the history
  • Loading branch information
roffidaijoubu committed Dec 16, 2024
1 parent 9ad1946 commit a64d551
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (

// Window dimensions
WindowWidth = 300
WindowHeight = 100
WindowHeight = 350

// Text sizes
DefaultTextSize = 14
Expand Down Expand Up @@ -454,6 +454,12 @@ func main() {
// Disable window maximizing
window.SetFixedSize(true)

// Create and configure the large icon image
iconBig := canvas.NewImageFromFile("assets/icon-big.png")
iconBig.SetMinSize(fyne.NewSize(100, 100))
iconBig.Resize(fyne.NewSize(100, 100))
iconBigContainer := container.NewCenter(iconBig)

// Create status text with initial color
status := canvas.NewText("Starting server...", color.Gray{Y: 200})
status.TextStyle = fyne.TextStyle{Bold: true}
Expand Down Expand Up @@ -526,6 +532,7 @@ func main() {

// Layout
content := container.NewVBox(
iconBigContainer, // Add the icon container first
statusContainer,
layout.NewSpacer(), // Add margin after status
buttonsContainer,
Expand Down

0 comments on commit a64d551

Please sign in to comment.