Album View: Smart Spacing Mechanism
We can improve (even more!) the appearance of the album view by taking care of spacing/alignment issues. Whenever a row is completely filled, the items should be aligned in a way that the horizontal space is distributed homogeneously among them.
We could do this by setting the values of margin, row and column spacing in a smart way (there are some minor calculations involved), and making sure that the margin of the icon view is equal to the space between its elements. These values would be recalculated every time the size_allocate signal is emmited.
margin = column-spacing = row-spacing ==> result: symetric album view.
CONSTANT VALUES:
* item-padding: padding around each item. Current value: 0.
* item-width: width of each item in the album view. Current value: 134.
* Coverart size: size of the coverart images. Current value: 128 (including shadows)
VARIABLE/SMART VALUES:
* [IconView] margin. [min = 12px]
* column-spacing [min = 12px]
* row-spacing [min = 12px]
Blueprint information
- Status:
- Complete
- Approver:
- Victor Martinez
- Priority:
- Medium
- Drafter:
- None
- Direction:
- Approved
- Assignee:
- Victor Martinez
- Definition:
- New
- Series goal:
- Accepted for 0.2
- Implementation:
- Implemented
- Milestone target:
- luna-beta1
- Started by
- Victor Martinez
- Completed by
- Victor Martinez
Related branches
Sprints
Whiteboard
YES YES YES. I've been meaning to file this as a bug or blueprint, but kept forgetting about it. :P IIRC, Banshee's implementation is pretty freaking good and acts pretty much as described above. ~cassidyjames