summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-19 16:37:04 +0300
committerPaul Buetow <paul@buetow.org>2025-07-19 16:37:04 +0300
commit77538381c28e4de8fa7d3f3731412c97699bb889 (patch)
tree6abc09587e3dcb279f86f9c63c848ebfbee7b926 /internal
parent14357aee5c0db8665bea2da817d67f12d0499451 (diff)
feat: add app icon and change default output directory
- Add custom app icon with memory/brain theme - Icon now displays in GNOME app menu, window title bar, and process list - Change default output directory to ~/.local/state/totalrecall/ - Make output directory configurable via CLI flag, config file, or env var - Add desktop entry file for GNOME integration - Add install script for easy icon installation - Update README with icon display and default directory information - Bump version to 0.5.1 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal')
-rw-r--r--internal/gui/app.go6
-rw-r--r--internal/gui/icon.go17
-rw-r--r--internal/gui/totalrecall_256.pngbin0 -> 62217 bytes
-rw-r--r--internal/version.go2
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
new file mode 100644
index 0000000..1d5c297
--- /dev/null
+++ b/internal/gui/totalrecall_256.png
Binary files differ
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"