Skip to content

Commit f5d129a

Browse files
committed
Better vertical icon alignement
1 parent 24731d0 commit f5d129a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bigcontrolcenter/usr/share/biglinux/bigcontrolcenter/ui/program_grid.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ def __init__(self, app):
2828
padding: 8px;
2929
font-weight: inherit;
3030
min-width: 150px;
31-
min-height: 110px;
3231
}
33-
32+
3433
.program-button:hover {
3534
background: alpha(currentColor, 0.08);
3635
}
37-
36+
3837
.program-button:active {
3938
transform: scale(0.94);
4039
transition: transform 0.15s ease;
@@ -58,7 +57,7 @@ def __init__(self, app):
5857
self.flow_box.set_valign(Gtk.Align.START)
5958
self.flow_box.set_max_children_per_line(20)
6059
self.flow_box.set_selection_mode(Gtk.SelectionMode.SINGLE)
61-
self.flow_box.set_homogeneous(True)
60+
self.flow_box.set_homogeneous(False)
6261
self.flow_box.set_column_spacing(12)
6362
self.flow_box.set_row_spacing(18)
6463
self.flow_box.set_margin_start(16)
@@ -116,7 +115,7 @@ def _create_program_button(self, program):
116115
# Create the content box
117116
content = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=6)
118117
content.set_halign(Gtk.Align.CENTER)
119-
content.set_valign(Gtk.Align.CENTER)
118+
content.set_valign(Gtk.Align.START)
120119
button.set_child(content)
121120

122121
# Program icon - handle both icon names and file paths

0 commit comments

Comments
 (0)