GNOME Bugzilla – Bug 746055
Support narrow and/or responsive layout when screen-width constrained
Last modified: 2019-03-31 13:30:38 UTC
As discussed in bug 714793, we could replace the folder list with another widget when in the vertical orientation and the user decreases the amount of space allotted to it. There, we played with using a combobox to select the current folder. This took advantage of the fact that a combobox uses the same model as a tree view in GTK, so we could reuse the existing model. The user experience wasn't perfect though, with a lot of nested menus reflecting the nested folders. Another idea would be to use a popover to display the existing folder list after a regular button is pressed. This would require moving to GTK 3.12.
Created attachment 299138 [details] [review] WIP patch for combo box folder list Here's the work in progress for replacing the folder list by a combo box. It's here for historical purposes, since it didn't quite work correctly and won't apply cleanly to the current HEAD. But it may be useful for reference.
It would be great to put this in a popover (GtkPopover from GTK+ 3.12).
*** Bug 747112 has been marked as a duplicate of this bug. ***
Per Bug 747112, another way to handle a lack of space would be to update the layout to some more pixel-conservative alternative. I kind of like the idea of just making the layout dependant on the available width, since it would support half-maximised windows and low-res devices automatically, without the need for the pref.
Created attachment 329422 [details] [review] Early WIP to replace FolderMenu with FolderPopover I made a very quick implementation using a popover. In the end, I would like to make it similar to the popover used in gnome-characters (see https://blogs.gnome.org/aday/files/2014/02/filter-menu.png). That would also make it a bit the same as in GMail. Some things that still need to be done: * Style the labels. I've added the css classes, but I have no idea in what file to put the css itself. * For some unknown reason, the popover is automatically opened. * Add a filter on top. Any thoughts?
Thanks for the patch! I think it probably wants to be attached to a different bug however - this is about moving the whole folder list (i.e. the folder sidebar) into a popover, not just the move/copy toolbar dropdown menus. I'd be happy to go with this approach, especially if they also solved treating hierarchical folders in a nice way (maybe like GEdit style nested popover menus?), but let's have that discussion on that other bug. Want to file it?
Ah, whoops, my bad! Will start a different bug in a few seconds.
Filed bug 767431 (almost done there as well :) ).
A sidebar popover would be pretty cool, better than current 2-pane mode (which I find useful but don't like the look). Anyway, bug 730712 should always be taken into account...
This is being taken care of over at: https://gitlab.gnome.org/GNOME/geary/issues/141