From 4c53f54e0e6a6bfbf2ddced4ee3dad890e5980be Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 22 Jul 2025 15:20:07 +0300 Subject: Add archive hotkey and update GUI icons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add 'v' hotkey for archive all cards functionality - Change regenerate image icon to ColorPaletteIcon (artistic palette) - Change random image icon to ViewRefreshIcon (refresh symbol) - Update help dialog to include archive hotkey in Export & Archive section - Add hotkey hint to archive button tooltip 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode --- internal/gui/app.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/internal/gui/app.go b/internal/gui/app.go index cb1ed2d..e6946c2 100644 --- a/internal/gui/app.go +++ b/internal/gui/app.go @@ -328,9 +328,9 @@ func (a *Application) setupUI() { // Create action buttons (tooltips will be set after tooltip layer is created) a.keepButton = ttwidget.NewButtonWithIcon("", theme.DocumentCreateIcon(), a.onKeepAndContinue) - a.regenerateImageBtn = ttwidget.NewButtonWithIcon("", theme.FileImageIcon(), a.onRegenerateImage) + a.regenerateImageBtn = ttwidget.NewButtonWithIcon("", theme.ColorPaletteIcon(), a.onRegenerateImage) - a.regenerateRandomImageBtn = ttwidget.NewButtonWithIcon("", theme.ColorPaletteIcon(), a.onRegenerateRandomImage) + a.regenerateRandomImageBtn = ttwidget.NewButtonWithIcon("", theme.ViewRefreshIcon(), a.onRegenerateRandomImage) a.regenerateAudioBtn = ttwidget.NewButtonWithIcon("", theme.MediaRecordIcon(), a.onRegenerateAudio) @@ -414,7 +414,7 @@ func (a *Application) setupUI() { exportButton.SetToolTip("Export to Anki (x)") } if archiveButton != nil { - archiveButton.SetToolTip("Archive all cards") + archiveButton.SetToolTip("Archive all cards (v)") } if helpButton != nil { helpButton.SetToolTip("Show hotkeys (?)") @@ -1373,8 +1373,9 @@ func (a *Application) onShowHotkeys() { **p/п** Play audio **u/у** Toggle auto-play -## Export +## Export & Archive **x/ж** Export to Anki +**v/в** Archive all cards ## Help **?** Show hotkeys @@ -2347,6 +2348,9 @@ func (a *Application) handleShortcutKey(key fyne.KeyName) { case fyne.KeyX: // Export to APKG a.onExportToAnki() + case fyne.KeyV: // Archive all cards + a.onArchive() + case fyne.KeyQ: // Quit application a.onQuitConfirm() } -- cgit v1.2.3