Mercurial > molko
diff examples/example-message/example-message.c @ 495:2af25db99273
ui: theme -> mlk_theme
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 28 Feb 2023 13:40:55 +0100 |
parents | 734b598534c4 |
children | 8d5a266a1774 |
line wrap: on
line diff
--- a/examples/example-message/example-message.c Tue Feb 28 13:32:01 2023 +0100 +++ b/examples/example-message/example-message.c Tue Feb 28 13:40:55 2023 +0100 @@ -109,7 +109,7 @@ } static void -my_draw_frame(const struct theme *th, const struct mlk_frame *f) +my_draw_frame(const struct mlk_theme *th, const struct mlk_frame *f) { (void)th; @@ -309,7 +309,7 @@ "This one will destroy your eyes.", "Because it use a terrible custom theme." }; - struct theme theme; + struct mlk_theme theme; struct message msg = { .x = MX, .y = MY, @@ -321,9 +321,9 @@ }; /* Borrow default theme and change its frame drawing. */ - theme_shallow(&theme, NULL); + mlk_theme_shallow(&theme, NULL); theme.draw_frame = my_draw_frame; - theme.colors[THEME_COLOR_NORMAL] = 0x0000ffff; + theme.colors[MLK_THEME_COLOR_NORMAL] = 0x0000ffff; run(&msg); }