Skip to content

Add drag icons to window::drag_drop - #9

Open
kevinard wants to merge 1 commit into
canopa/drag-dropfrom
canopa/drag-icon
Open

kevinard wants to merge 1 commit into
canopa/drag-dropfrom
canopa/drag-icon

Conversation

@kevinard

@kevinard kevinard commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Canopa tracking PR. Stacked on canopa/drag-drop (#6) and merged into canopa/main; it is not meant to be merged here.

What

window::drag_drop::DragDrop::start_with_icon starts a native drag like start, with an optional Icon (straight RGBA pixels, a buffer scale and the logical hotspot under the pointer). Driver::start_with_icon has a default that ignores the icon and calls start, so other drivers are unchanged. The winit adapter passes the icon to the winit fork's DragDrop::start_with_icon (kevinard/winit#8), which this topic pins.

Why

Canopa Files shows what is being dragged under the pointer, as other Wayland file managers do (Files ADR 0170).

Verification

cargo check -p iced_winit -p iced_runtime and cargo test -p iced_runtime -p iced_winit --lib pass at this topic. Canopa Files builds against canopa/main and its drag tests pass.

Upstream

Applies on top of #6 (inventory W5b). Upstream iced has no native drag source API yet.

🤖 Generated with Claude Code

DragDrop::start_with_icon starts a native drag with an optional Icon:
straight RGBA pixels, a buffer scale and the hotspot under the pointer.
Driver::start_with_icon defaults to start, so backends without icons
keep working; the Wayland adapter passes the icon to winit's
DragDrop::start_with_icon. Pins the winit fork's canopa/wayland-drag-icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kevinard added a commit to kevinard/canopa that referenced this pull request Nov 13, 2026
Browsing:
- Long names lose their middle; List headings sort and reverse on click,
  start at their leading edge, and dividers trade with the column beside them.
- Hover washes on rows, headings and quiet buttons; readable tooltips;
  menus open at the pointer and hold only what fits their context.
- Clicking empty space deselects; mouse Back/Forward buttons navigate;
  single click opens a folder in a parent column.
- List view can open folders in place as a tree; folders-first is an option.
  Both are global view settings.
- Emblems for links, unreadable and read-only items; themed icons for Home
  and the XDG personal folders.
- Status bar names the selected item and its type; "Recent activity" is gone.
- Properties panel renames from its name field and offers "Allow executing"
  under Access.
- Search uses the location field: its search button opens it and a cross
  closes it; the toolbar has no Search button.
- Unsaved-changes prompts are modal cards over a dimmed window.

Drag and drop:
- Drops into the items' own folder are refused; the pointer label appears
  only when a drop acts; dragged rows fade.
- Dragged items' icons follow the pointer (winit and Iced forks'
  start_with_icon, kevinard/winit#8 and kevinard/iced#9).

Tabs:
- A tab bar with close buttons, middle-click close, new-tab button and file
  drop targets.
- Tabs are dragged as native drags: their picture follows the pointer, a pin
  marks where they land, they move between windows, and a drag ending outside
  every Files window opens the tab in a new window. Escape gives up the drag.
  Keyboard: Move tab left/right and Move tab to new window.

Toolbar, places and Preferences:
- New Folder is an ordinary toolbar item; older toolbars keep it.
- The application mark before the toolbar is gone.
- Music, Videos, Templates and Public are built-in places; places use the
  icon theme's icons.
- Preferences' Toolbar, Sidebar and Shortcuts pages give each row its own
  controls, with pickers to add buttons and places.

Recorded in docs/files/adr/0170.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant