diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-22 15:20:07 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-22 15:20:07 +0300 |
| commit | 4c53f54e0e6a6bfbf2ddced4ee3dad890e5980be (patch) | |
| tree | 5ec275d15aa05e1f6c703166724900fe07a8fe73 /internal | |
| parent | aeb772bccd3d29ed5e9d93229af1ea7d158e00d5 (diff) | |
Add archive hotkey and update GUI icons
- 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 <noreply@opencode.ai>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/gui/app.go | 12 |
1 files 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() } |
