diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/gui/app.go | 6 | ||||
| -rw-r--r-- | internal/gui/icon.go | 17 | ||||
| -rw-r--r-- | internal/gui/totalrecall_256.png | bin | 0 -> 62217 bytes | |||
| -rw-r--r-- | internal/version.go | 2 |
4 files changed, 23 insertions, 2 deletions
diff --git a/internal/gui/app.go b/internal/gui/app.go index 31d2460..2226eb1 100644 --- a/internal/gui/app.go +++ b/internal/gui/app.go @@ -112,8 +112,11 @@ func New(config *Config) *Application { ctx, cancel := context.WithCancel(context.Background()) + myApp := app.New() + myApp.SetIcon(GetAppIcon()) + app := &Application{ - app: app.New(), + app: myApp, config: config, ctx: ctx, cancel: cancel, @@ -152,6 +155,7 @@ func New(config *Config) *Application { // setupUI creates the main user interface func (a *Application) setupUI() { a.window = a.app.NewWindow(fmt.Sprintf("TotalRecall v%s - Bulgarian Flashcard Generator", internal.Version)) + a.window.SetIcon(GetAppIcon()) a.window.Resize(fyne.NewSize(800, 700)) // Create input section with navigation diff --git a/internal/gui/icon.go b/internal/gui/icon.go new file mode 100644 index 0000000..f778225 --- /dev/null +++ b/internal/gui/icon.go @@ -0,0 +1,17 @@ +package gui + +import ( + _ "embed" + "fyne.io/fyne/v2" +) + +//go:embed totalrecall_256.png +var iconData []byte + +// GetAppIcon returns the application icon as a Fyne resource +func GetAppIcon() fyne.Resource { + return &fyne.StaticResource{ + StaticName: "totalrecall.png", + StaticContent: iconData, + } +}
\ No newline at end of file diff --git a/internal/gui/totalrecall_256.png b/internal/gui/totalrecall_256.png Binary files differnew file mode 100644 index 0000000..1d5c297 --- /dev/null +++ b/internal/gui/totalrecall_256.png diff --git a/internal/version.go b/internal/version.go index c658e16..360eeb8 100644 --- a/internal/version.go +++ b/internal/version.go @@ -1,3 +1,3 @@ package internal -const Version = "0.5.0" +const Version = "0.5.1" |
