Skip to content

Commit eecd103

Browse files
author
houssemko
committed
Uniform 3px grid-cell margins
#478 used 4px vertical and 6px horizontal margins, giving 8px row gaps and 12px column gaps — unequal and off the 6px GNOME rhythm. One uniform 3px on all sides yields 6px between cells on both axes.
1 parent ff1ba68 commit eecd103

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎src/gallery_grid.rs‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,17 @@ impl GalleryGrid {
110110
let check = gtk4::CheckButton::new();
111111
check.set_can_target(false);
112112
check.set_focusable(false);
113-
// The margins keep focus rings from clipping at the scroll
114-
// edges.
113+
// The margins create the gaps between grid cells (GridView
114+
// has no spacing properties; only the space between cells,
115+
// both axes, at one uniform value) and keep focus rings
116+
// from clipping at the scroll edges.
115117
let cell = gtk4::Box::builder()
116118
.orientation(gtk4::Orientation::Horizontal)
117119
.spacing(6)
118-
.margin_top(2)
119-
.margin_bottom(2)
120+
.margin_top(3)
121+
.margin_bottom(3)
122+
.margin_start(3)
123+
.margin_end(3)
120124
.focusable(true)
121125
.build();
122126
cell.append(&check);

0 commit comments

Comments
 (0)