diff examples/example-debug/example-debug.c @ 507:d49a05e7a5b5

ui: separate delegate/style Now UI elements do have different styling properties: - _delegate: functions used to update, draw or perform specific actions on the UI element. - _style: basic properties that the delegate should support if possible.
author David Demelier <markand@malikania.fr>
date Thu, 02 Mar 2023 21:36:43 +0100
parents 41267f6e344d
children f45a023f6690
line wrap: on
line diff
--- a/examples/example-debug/example-debug.c	Thu Mar 02 08:54:00 2023 +0100
+++ b/examples/example-debug/example-debug.c	Thu Mar 02 21:36:43 2023 +0100
@@ -27,7 +27,6 @@
 #include <mlk/core/util.h>
 
 #include <mlk/ui/debug.h>
-#include <mlk/ui/theme.h>
 #include <mlk/ui/ui.h>
 
 #include <mlk/example/example.h>
@@ -72,7 +71,7 @@
 
 	struct mlk_debug_report report = {0};
 
-	mlk_painter_set_color(0x4f8fbaff);
+	mlk_painter_set_color(MLK_EXAMPLE_BG);
 	mlk_painter_clear();
 	mlk_debugf(&report, "Game running.");
 	mlk_debugf(&report, "mouse: %d, %d", mouse_x, mouse_y);