Skip to content

Commit b6a5b0a

Browse files
committed
Input/Output Image Dimension change
The following change is so that the images and the application is also viable on a 1080p screen, and it doesn't go off the screen which causes a bug on one of the devs side.
1 parent c74230c commit b6a5b0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gtk_gui.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,25 +155,25 @@ static void activate(GtkApplication *app, gpointer user_data)
155155
user_image_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
156156
gtk_widget_set_halign(user_image_box, GTK_ALIGN_CENTER);
157157
gtk_widget_set_valign(user_image_box, GTK_ALIGN_CENTER);
158-
gtk_widget_set_margin_bottom(user_image_box, 40);
158+
gtk_widget_set_margin_bottom(user_image_box, 20);
159159
// append user image box to vertical box
160160
gtk_box_append(GTK_BOX(box), user_image_box);
161161
// create image widget
162162
image = gtk_image_new_from_file("assets/images/test_image.bmp");
163-
gtk_image_set_pixel_size(GTK_IMAGE(image), 450);
163+
gtk_image_set_pixel_size(GTK_IMAGE(image), 250);
164164
// append user image widget to user image box
165165
gtk_box_append(GTK_BOX(user_image_box), image);
166166

167167
// create new horizontal box container for filtered image
168168
filtered_image_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
169169
gtk_widget_set_halign(filtered_image_box, GTK_ALIGN_CENTER);
170170
gtk_widget_set_valign(filtered_image_box, GTK_ALIGN_CENTER);
171-
gtk_widget_set_margin_bottom(filtered_image_box, 40);
171+
gtk_widget_set_margin_bottom(filtered_image_box, 20);
172172
// append filtered image box to vertical box
173173
gtk_box_append(GTK_BOX(box), filtered_image_box);
174174
// create image widget
175175
image = gtk_image_new_from_file("assets/images/test_image.bmp");
176-
gtk_image_set_pixel_size(GTK_IMAGE(image), 450);
176+
gtk_image_set_pixel_size(GTK_IMAGE(image), 250);
177177
// append user image widget to filtered image box
178178
gtk_box_append(GTK_BOX(filtered_image_box), image);
179179

0 commit comments

Comments
 (0)