Repository navigation
feat: single View button (tags, split, display mode) with Small icons, List and Ctrl+wheel - #155
Kendoismebutmaybenot wants to merge 6 commits into
Conversation
Add Small icons, List, Tiles and Content layouts next to Details and the icon gallery. A View submenu in the background context menu (and a View dropdown in the icon-mode toolbar) lists the same choices as Windows Explorer, and Ctrl+mouse wheel over the item viewer steps through them in Explorer's order. The chosen view is saved per folder like Gallery.
The bar was drawn by the icon views only, so switching to Details hid the View dropdown with no way back except the context menu or Ctrl+wheel. Draw the same bar above the Details table (not on drive or Recycle Bin pages).
Replace the View dropdown in the item viewer toolbar (and the Details bar added for it) with a View button in the top bar, next to the split toggle. It shows the focused pane's current view as a small label beside a Lucide layout-grid icon (icon only in the collapsed sidebar rail), opens the same eight Explorer choices, and is disabled on drive and Recycle Bin pages.
|
Hi @Kendoismebutmaybenot thanks for putting in this new feature change! I purposely don't want EdenExplorer to support the same view options as Windows Explorer, like the Tile and Content views. Based on several surveys, they are the most unused view options and therefore I'd rather not support them. Here's some evidence: However, I do like that the view option is in the main tool bar. It would likely be more functionally correct if we updated the grouping of "View Tags", "Split Mode" and then the rest of the view options in that 4-grid icon (which might not be the most accurate UX icon for display mode) into a single button. Thoughts? |
… and Content Per review on mtucciarone#155: - Remove the Tiles and Content display modes (enum, View menu, Ctrl+wheel ladder and their rendering code). - Merge the Show Tags and split-view buttons and the display-mode menu into one top-bar View button. The menu has Show Tags and Open in split view toggles, then the display modes. The button is highlighted while Tags or split view is on, and its label shows the current mode (or "Tags"). - Replace the layout-grid icon with Lucide eye.
… and Content Per review on mtucciarone#155: - Remove the Tiles and Content display modes (enum, View menu, Ctrl+wheel ladder and their rendering code). - Merge the Show Tags and split-view buttons and the display-mode menu into one top-bar View button. The menu has Show Tags and Open in split view toggles, then the display modes. The button is highlighted while Tags or split view is on, and its label shows the current mode (or "Tags"). - Replace the layout-grid icon with Lucide eye.
01ff4d5 to
f83b6b1
Compare
|
Thanks, that makes sense and I've updated the PR:
Screenshots in the description are updated. |
|
Thanks @Kendoismebutmaybenot ! I'll review this shortly and make updates accordingly |
What's New
One View button in the top bar. The Show Tags button, the split-view button and the display-mode choice now live behind a single button (Lucide
eyeicon) next to the File Explorer button. Its menu has:The button is highlighted while Tags or split view is on, and a small label beside it shows the focused pane's current mode (e.g. "Details"), or "Tags" in Tags mode. The label is hidden in the collapsed sidebar rail. Display modes are greyed out on drive and Recycle Bin pages and in Tags mode.
Two new display modes:
Right-clicking empty space in the item viewer also offers a View submenu with the display modes, including in empty folders.
Ctrl + mouse wheel over the item viewer steps through the modes: Extra large, Large, Medium, Small, Extra small icons, then Small icons, List, Details. Wheel up is bigger, wheel down is smaller, and it stops at either end. Touchpad/smooth deltas are accumulated, so one gesture moves one step.
Screenshots
View menu in the top bar:
Large icons:
Small icons:
List:
Details:
What's Changed
ItemViewerDisplayModegainsSmallIconsandList. Existing saved settings (Details/Gallery) still deserialize unchanged. The mode is saved per folder through the existingDirectorySettingsSnapshot.ViewPreset(incontainers/structs.rs) maps menu entries and wheel steps onto display mode + gallery thumbnail size.TileLayoutinitemviewer_gallery.rs, which handles tile size, row- or column-major fill and viewport culling. Selection, drag and drop, context menus, rename and thumbnails are shared with the existing gallery code. Thumbnails are only requested for Gallery.topbar.rs: the separate Tags and split buttons are replaced bydraw_view_menu. The menu reuses the existingtooltip_show_tags/tooltip_open_splitstrings, so no locale keys were added.src/assets/icons/lucide/eye.svg(AppIcon::Eye).What's Fixed
Related Issues
Notes: the display-mode labels are English only, like the other entries in the background context menu. Arrow keys in the grid modes still move one item at a time, as they do in Gallery today.
cargo fmt --check,cargo buildandcargo testpass locally.