Skip to content

Fix double-click open and polish titlebar/properties icons - #7

Merged
cursor[bot] merged 4 commits into
mainfrom
cursor/fix-double-click-ui-polish-a90e
Sep 2, 2026
Merged

Fix double-click open and polish titlebar/properties icons#7
cursor[bot] merged 4 commits into
mainfrom
cursor/fix-double-click-ui-polish-a90e

Conversation

@rorohecker

Copy link
Copy Markdown
Owner

Summary

  • Double-click to open files (PDFs, HTML, etc.): The second click on an already-selected row could arm drag before Slint emitted double-clicked, starting DoDragDrop instead of opening the file. File rows now track recent click position and suppress drag arming when the next press lands at the same spot within ~450ms.
  • Maximize button: Uses Win11-style square (maximize) and overlapping-squares (restore) icons that match the stroke style of minimize/close. Icon and tooltip swap based on new window_maximized state, synced on button click and OS resize events.
  • Properties icon: Context menu and selection bar now share a cleaner document-with-metadata icon instead of the mismatched moon/document glyph.
  • Storage view QoL: Storage entry rows accept double-click to open (single-click still works).

Test plan

  • Double-click a PDF, HTML, and other file types in list and grid views — should open in the default app
  • Double-click an already-selected file — should open, not start a drag
  • Click maximize / restore — icon and tooltip should update; Win+Up/Down should also update the icon
  • Properties icon looks correct in context menu and selection bar
  • Double-click a file in Storage drill-in view
Open in Web Open in Cursor 

cursoragent and others added 4 commits September 2, 2026 16:15
Double-click on PDF/HTML and other files no longer loses to drag arming:
the second tap at the same spot within 450ms suppresses DoDragDrop so
Slint can emit double-clicked reliably.

Titlebar maximize uses Win11-style square/restore glyphs that swap with
window_maximized state, synced on toggle and OS resize events.

Properties uses a consistent document-with-metadata icon in the context
menu and selection bar. Storage rows also accept double-click to open.

Co-authored-by: rorohecker <rorohecker@users.noreply.github.com>
Remove redundant StorageEntryRow double-click handler (single-click already
opens; Slint would fire clicked twice plus double-clicked). Add double-click
on the titlebar drag strip to toggle maximize like native Windows.

Co-authored-by: rorohecker <rorohecker@users.noreply.github.com>
Merge mouse side-button navigation and maximize-state sync into one
on_winit_window_event callback so the second registration no longer
drops back/forward handling. Optimistically flip window_maximized on
button click and align FileRow double-click timing to 500ms.

Co-authored-by: rorohecker <rorohecker@users.noreply.github.com>
Co-authored-by: rorohecker <rorohecker@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/fix-double-click-ui-polish-a90e branch from 4426cf4 to fecb5f5 Compare September 2, 2026 16:32
@cursor
cursor Bot merged commit fecb5f5 into main Sep 2, 2026
1 check 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