From 3f72f66032c6f9b80fc22e15a2fb33804d000bc6 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Sun, 22 Mar 2026 09:21:18 -0400 Subject: coco: fix inconsistent margin and padding The notification had a top margin of 8px but no corresponding bottom marging, making notifications look unbalanced. Added matching bottom margin. Also increased the image padding to make it horizontally symetrical and removed several unused defines. Fixes #116 --- src/themes/coco/coco-theme.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index b131283..08cfa44 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -90,19 +90,13 @@ void set_notification_hints(GtkWindow *nw, GVariant *hints); void notification_tick(GtkWindow *nw, glong remaining); static void create_pie_countdown(WindowData* windata); -#define STRIPE_WIDTH 32 #define WIDTH 300 #define IMAGE_SIZE 32 -#define IMAGE_PADDING 10 -#define SPACER_LEFT 30 +#define IMAGE_PADDING 24 #define PIE_RADIUS 12 #define PIE_WIDTH (2 * PIE_RADIUS) #define PIE_HEIGHT (2 * PIE_RADIUS) -#define BODY_X_OFFSET (IMAGE_SIZE + 8) -#define DEFAULT_ARROW_OFFSET (SPACER_LEFT + 12) -#define DEFAULT_ARROW_HEIGHT 14 -#define DEFAULT_ARROW_WIDTH 22 -#define DEFAULT_ARROW_SKEW -6 +#define BODY_X_OFFSET (IMAGE_SIZE + IMAGE_PADDING) #define BACKGROUND_OPACITY 0.9 #define GRADIENT_CENTER 0.7 @@ -464,6 +458,7 @@ create_notification(UrlClickedCb url_clicked) gtk_widget_set_halign (windata->main_hbox, GTK_ALIGN_START); gtk_widget_set_valign (windata->main_hbox, GTK_ALIGN_START); gtk_widget_set_margin_top (windata->main_hbox, 8); + gtk_widget_set_margin_bottom (windata->main_hbox, 8); gtk_widget_set_margin_end (windata->main_hbox, 8); gtk_widget_show (windata->main_hbox); gtk_box_pack_start (GTK_BOX(main_vbox), windata->main_hbox, FALSE, FALSE, 0); -- cgit v1.2.1