Mercurial > molko
diff src/core/theme.c @ 105:f6b5e2fbbc81
inventory_dialog: add basic movements
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 31 Mar 2020 21:29:54 +0200 |
parents | 26fef20fd89d |
children | ed1a6bb02a78 |
line wrap: on
line diff
--- a/src/core/theme.c Tue Mar 31 21:05:00 2020 +0200 +++ b/src/core/theme.c Tue Mar 31 21:29:54 2020 +0200 @@ -15089,6 +15089,18 @@ static struct font default_font; static void +box(int x, int y, unsigned int w, unsigned int h) +{ + /* Some basic outlines. */ + painter_set_color(0x4d3533ff); + + painter_draw_line(x, y, x + w, y); + painter_draw_line(x, y + h, x + w, y + h); + painter_draw_line(x, y, x, y + h); + painter_draw_line(x + w, y, x + w, y + h); +} + +static void draw_frame(struct theme *t, const struct frame *frame) { if (frame->style == FRAME_STYLE_BOX) @@ -15097,6 +15109,7 @@ painter_set_color(0xce9248ff); painter_draw_rectangle(frame->x, frame->y, frame->w, frame->h); + box(frame->x, frame->y, frame->w, frame->h); } static void @@ -15155,6 +15168,8 @@ painter_draw_rectangle(button->x, button->y, button->w, button->h); label_draw(&label); + + box(button->x, button->y, button->w, button->h); } /* Default theme. */