You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A pattern we're using in three places now is a listbox with deletable items, including the little spin-out delete button. It would need to be the listbox as well as the row. The CSS is also currently duplicated, and could either be pulled into Granite (for this widget) or just into the stylesheet.
The text was updated successfully, but these errors were encountered:
I think we want something more generic than just deletable. Looking at Mail for example I think we want like an ActionableRow
probably want it to be a Gtk.ListBoxRow subclass so it’s transparent to use with ListBox normally
I should be able to add an action with something like: add_action (string label, string detailed_action_name, GLib.Icon icon, Color color, Gtk.Align? alignment = null)
All actions should be added to a popover that activates with both right click and long press. Actions with an icon can be added to the popover as little circle buttons maybe? Actions with an align should be added as swipe actions.
edit: actually thinking about it more it should just take a menu model for non-icon, non-swipe actions. There might be stuff with submenus etc
There should be maybe some elegant way to handle stateful actions like read/unread or star/unstar for example
if would be nice if the row had a built in delete animation that signaled when it was done so its object can be removed from the model once the animation finishes
edit: maybe another param for the action like bool remove that means we animate out the row and then fire the action after the animation is done
On iOS for example you can have like a shitload of actions per row. A short swipe reveals all the actions and the row snaps in place to reveal them all. A long swipe activates the outermost action
A pattern we're using in three places now is a listbox with deletable items, including the little spin-out delete button. It would need to be the listbox as well as the row. The CSS is also currently duplicated, and could either be pulled into Granite (for this widget) or just into the stylesheet.
The text was updated successfully, but these errors were encountered: