Skip to content

System folder chooser, gallery zoom - #40

Merged
XyleMora merged 2 commits into
XyleMora:mainfrom
rudalabs:folder-chooser-gallery-zoom
Nov 9, 2026
Merged

XyleMora merged 2 commits into
XyleMora:mainfrom
rudalabs:folder-chooser-gallery-zoom

Conversation

@rudalabs

@rudalabs rudalabs commented Nov 9, 2026

Copy link
Copy Markdown

Split out of #38 as asked: the small improvements, without the terminal.

System folder chooser

  • The dialog plugin's rfd is built for GTK's own file dialog, so Linux always got the GTK chooser. pickFolder now calls pick_folder (src-tauri/src/picker.rs): GTK's FileChooserNative with GTK_USE_PORTAL=1, so the desktop's own dialog shows (KDE: the Dolphin one), with GTK's dialog as the fallback when no portal runs.
  • The variable is set at start-up and removed for programs KiVi starts (KiCad).
  • Windows, macOS, or any failure: the dialog plugin, as before.

Gallery zoom

  • Ctrl + mouse wheel in Projects resizes the cards (thumbnails and text together; bigger cards, fewer per row). Ctrl+0 resets. Remembered in localStorage (kivi.cardZoom).

Also

  • .gitignore: Python virtual environment, IDE and AI-agent folders.

Testing

  • cargo test --locked --lib: 21 passed, 3 ignored (the ones needing the network or an installed KiCad).
  • The zoom and the portal dialog haven't been tried in the real app window yet.

The new direct dependency gtk (Linux) was already in the tree through Tauri, so Cargo.lock gains no packages.

🤖 Generated with Claude Code

rudalabs and others added 2 commits November 9, 2026 15:59
- Folder chooser through GTK's native chooser with the desktop portal (picker.rs), so KDE shows its own dialog; dialog plugin as fallback. GTK_USE_PORTAL is set at start-up and removed for programs KiVi starts.
- Ctrl + mouse wheel resizes the project gallery's cards, Ctrl+0 resets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rudalabs rudalabs mentioned this pull request Nov 9, 2026
@XyleMora
XyleMora self-requested a review November 9, 2026 19:13
@XyleMora
XyleMora merged commit e232e01 into XyleMora:main Nov 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants