Merge lp://qastaging/~victored/noise/lp-1315460 into lp://qastaging/~elementary-apps/noise/trunk

Proposed by Victor Martinez
Status: Merged
Approved by: Victor Martinez
Approved revision: 1604
Merged at revision: 1600
Proposed branch: lp://qastaging/~victored/noise/lp-1315460
Merge into: lp://qastaging/~elementary-apps/noise/trunk
Diff against target: 55 lines (+33/-0)
1 file modified
src/Widgets/FastView/TileView/TileView.vala (+33/-0)
To merge this branch: bzr merge lp://qastaging/~victored/noise/lp-1315460
Reviewer Review Type Date Requested Status
Victor Martinez (community) Approve
Corentin Noël Approve
elementary UX Pending
Review via email: mp+218175@code.qastaging.launchpad.net

Commit message

Space album view items evenly. Fixes lp:1315460

Description of the change

Space album view items evenly. Fixes lp:1315460

To post a comment you must log in.
Revision history for this message
Corentin Noël (tintou) wrote :

It's also resizing the top and bottom margin, I don't think that it should be the case.

review: Needs Fixing
Revision history for this message
Victor Martinez (victored) wrote :

Indeed, I'm not a big fan of that either.

There's a technical limitation though. here 'margin' refers to gtk_icon_view_set_margin, and not gtk_widget_set_margin, so we can't do things like margin_left, margin_top, etc.

See: http://bazaar.launchpad.net/~vcs-imports/gtk/trunk/view/head:/gtk/gtkiconview.c#L5973

A solution could be to have a fixed margin, say 24 px, and only compute the spacing between items. I won't be 'even' spacing anymore, but at least it'd be symmetrical

1601. By Victor Martinez

Use fixed vertical and horizontal margin. Only scale spacing between items.

Revision history for this message
Victor Martinez (victored) wrote :

I've modified the implementation to use a fixed 'margin'. See lp:~victored/noise/album-view-spacing

I'm not sure which one to go with tbh.

Revision history for this message
Danielle Foré (danrabbit) wrote :

Having a fixed outside margin and adjusting spacing between albums sounds solid to me

Revision history for this message
Victor Martinez (victored) wrote :

I've deleted the new 'album-view-spacing' branch and pushed the changes here.

The view currently uses a fixed margin of 24px (top margin appears larger due to item shadow rendering), and only modifies the spacing between items.

Please test again.

1602. By Victor Martinez

update comment

Revision history for this message
Corentin Noël (tintou) wrote :

This one is better,
To me the row_spacing = ideal_spacing / 2; should be removed

1603. By Victor Martinez

Only resize horizontally. Use fixed vertical spacing

Revision history for this message
Victor Martinez (victored) wrote :

Good call.

I agree only re-flowing horizontally looks better. I modified the default vertical spacing to be 12px instead of the default 6px, which makes the view look cluttered with larger horizontal spacing.

Please test / review again.

Revision history for this message
Corentin Noël (tintou) wrote :

Yes, I think it's good like this

review: Approve
1604. By Victor Martinez

get rid of unneeded variable

Revision history for this message
Victor Martinez (victored) wrote :

Let's go with this then. If you have any suggestions regarding the size of the margin and such, let me know so I can change it.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches