diff examples/example-notify/example-notify.c @ 508:7f7602bae0bd

examples: minor touches
author David Demelier <markand@malikania.fr>
date Fri, 03 Mar 2023 19:45:00 +0100
parents d7855791a2b8
children f45a023f6690
line wrap: on
line diff
--- a/examples/example-notify/example-notify.c	Thu Mar 02 21:36:43 2023 +0100
+++ b/examples/example-notify/example-notify.c	Fri Mar 03 19:45:00 2023 +0100
@@ -39,8 +39,7 @@
 static struct mlk_label help = {
 	.text = "Keys: <Space> to generate a notification.",
 	.x = 10,
-	.y = 10,
-	.flags = MLK_LABEL_FLAGS_SHADOW
+	.y = 10
 };
 static struct mlk_texture *icon;
 static struct mlk_state *states[1];
@@ -87,7 +86,7 @@
 {
 	(void)st;
 
-	mlk_painter_set_color(0xffffffff);
+	mlk_painter_set_color(MLK_EXAMPLE_BG);
 	mlk_painter_clear();
 	mlk_label_draw(&help);
 	mlk_notify_draw();