Mercurial > molko
comparison 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 |
comparison
equal
deleted
inserted
replaced
450:b26dd49f69ff | 451:90a097b1aa0f |
---|---|
89 } | 89 } |
90 | 90 |
91 /* Align title to the right of the icon at the same y coordinate. */ | 91 /* Align title to the right of the icon at the same y coordinate. */ |
92 geo->title_x = geo->icon_x + n->icon->w + geo->theme->padding; | 92 geo->title_x = geo->icon_x + n->icon->w + geo->theme->padding; |
93 geo->title_y = geo->icon_y; | 93 geo->title_y = geo->icon_y; |
94 geo->title_y -= font_height(geo->theme->fonts[THEME_FONT_IMPORTANT]) / 2; | 94 geo->title_y -= mlk_font_height(geo->theme->fonts[THEME_FONT_IMPORTANT]) / 2; |
95 | 95 |
96 /* Align body so it ends at the end of the icon. */ | 96 /* Align body so it ends at the end of the icon. */ |
97 geo->body_x = geo->title_x; | 97 geo->body_x = geo->title_x; |
98 geo->body_y = geo->icon_y + n->icon->h; | 98 geo->body_y = geo->icon_y + n->icon->h; |
99 geo->body_y -= font_height(geo->theme->fonts[THEME_FONT_INTERFACE]) / 2; | 99 geo->body_y -= mlk_font_height(geo->theme->fonts[THEME_FONT_INTERFACE]) / 2; |
100 } | 100 } |
101 | 101 |
102 static void | 102 static void |
103 draw_frame(const struct geo *geo) | 103 draw_frame(const struct geo *geo) |
104 { | 104 { |