diff --git a/src/temp.c b/src/temp.c index 8414cdb..f40f178 100644 --- a/src/temp.c +++ b/src/temp.c @@ -59,12 +59,12 @@ static int draw_fg(hexagram_gauge *gauge, cairo_t *cr) { cairo_show_text(cr, temp->text.buf); if (temp->value <= COLD_THRESHOLD) { - int icon_y_offset = abs(ICON_HEIGHT - HEXAGRAM_TEXT_FONT_SIZE) * 2; + int icon_y_offset = extents.y_bearing / 2 - ICON_HEIGHT / 2; if (hexagram_icon_draw(&temp->icon, cr, text_x_offset + extents.width - ICON_WIDTH, - gauge->y - icon_y_offset, + gauge->y + icon_y_offset, COLD) < 0) { goto error_icon_draw; }