Mercurial > molko
diff libmlk-ui/mlk/ui/notify.c @ 451:90a097b1aa0f
core: font -> mlk_font
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 18 Feb 2023 20:40:01 +0100 |
parents | 773a082f0b91 |
children | bc5483849614 |
line wrap: on
line diff
--- a/libmlk-ui/mlk/ui/notify.c Sat Feb 18 13:37:11 2023 +0100 +++ b/libmlk-ui/mlk/ui/notify.c Sat Feb 18 20:40:01 2023 +0100 @@ -91,12 +91,12 @@ /* Align title to the right of the icon at the same y coordinate. */ geo->title_x = geo->icon_x + n->icon->w + geo->theme->padding; geo->title_y = geo->icon_y; - geo->title_y -= font_height(geo->theme->fonts[THEME_FONT_IMPORTANT]) / 2; + geo->title_y -= mlk_font_height(geo->theme->fonts[THEME_FONT_IMPORTANT]) / 2; /* Align body so it ends at the end of the icon. */ geo->body_x = geo->title_x; geo->body_y = geo->icon_y + n->icon->h; - geo->body_y -= font_height(geo->theme->fonts[THEME_FONT_INTERFACE]) / 2; + geo->body_y -= mlk_font_height(geo->theme->fonts[THEME_FONT_INTERFACE]) / 2; } static void