Mercurial > molko
diff examples/example-message/example-message.c @ 504:52a305833381
ui: rework styles
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 01 Mar 2023 14:07:10 +0100 |
parents | 41267f6e344d |
children | 7f7602bae0bd |
line wrap: on
line diff
--- a/examples/example-message/example-message.c Wed Mar 01 10:51:25 2023 +0100 +++ b/examples/example-message/example-message.c Wed Mar 01 14:07:10 2023 +0100 @@ -99,6 +99,7 @@ mlk_game_loop(); } +#if 0 static void my_draw_frame(const struct mlk_theme *th, const struct mlk_frame *f) { @@ -107,6 +108,7 @@ mlk_painter_set_color(0xff0000ff); mlk_painter_draw_rectangle(f->x, f->y, f->w, f->h); } +#endif static void basic(void) @@ -296,6 +298,7 @@ static void custom(void) { +#if 0 const char * const text[] = { "This one will destroy your eyes.", "Because it use a terrible custom theme." @@ -312,11 +315,11 @@ }; /* Borrow default theme and change its frame drawing. */ - mlk_theme_shallow(&theme, NULL); theme.draw_frame = my_draw_frame; theme.colors[MLK_THEME_COLOR_NORMAL] = 0x0000ffff; run(&msg); +#endif } static void