diff options
| author | Victor Kareh <[email protected]> | 2026-03-22 09:21:18 -0400 |
|---|---|---|
| committer | Luke from DC <[email protected]> | 2026-03-22 20:37:50 +0000 |
| commit | 3f72f66032c6f9b80fc22e15a2fb33804d000bc6 (patch) | |
| tree | f96fe2ba8c5a662ad6c9cc85ca6007209f170a82 | |
| parent | aa050e5eca6e7720c355ccd24ad6ca6c1068ff3c (diff) | |
| download | mate-notification-daemon-3f72f66032c6f9b80fc22e15a2fb33804d000bc6.tar.bz2 mate-notification-daemon-3f72f66032c6f9b80fc22e15a2fb33804d000bc6.tar.xz | |
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
| -rw-r--r-- | src/themes/coco/coco-theme.c | 11 |
1 files changed, 3 insertions, 8 deletions
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); |
