diff libmlk-ui/mlk/ui/notify.c @ 505:6100c643dba0

ui: finally ditch theme
author David Demelier <markand@malikania.fr>
date Wed, 01 Mar 2023 16:24:07 +0100
parents 52a305833381
children d49a05e7a5b5
line wrap: on
line diff
--- a/libmlk-ui/mlk/ui/notify.c	Wed Mar 01 14:07:10 2023 +0100
+++ b/libmlk-ui/mlk/ui/notify.c	Wed Mar 01 16:24:07 2023 +0100
@@ -29,7 +29,6 @@
 #include "frame.h"
 #include "label.h"
 #include "notify.h"
-#include "theme.h"
 
 #define WIDTH   (mlk_window.w / 3)
 #define HEIGHT  (mlk_window.h / 10)
@@ -60,6 +59,7 @@
 static void
 geometry(struct geo *geo, const struct mlk_notify *n, size_t index)
 {
+#if 0
 	int x, y;
 
 	/* Determine theme. */
@@ -97,6 +97,7 @@
 	geo->body_x  = geo->title_x;
 	geo->body_y  = geo->icon_y + n->icon->h;
 	geo->body_y -= mlk_font_height(geo->theme->fonts[MLK_THEME_FONT_INTERFACE]) / 2;
+#endif
 }
 
 static void
@@ -121,6 +122,7 @@
 static void
 draw_title(const struct geo *geo, const struct mlk_notify *n)
 {
+#if 0
 	const struct mlk_label l = {
 		.x = geo->title_x,
 		.y = geo->title_y,
@@ -129,11 +131,13 @@
 	};
 
 	mlk_label_draw(&l);
+#endif
 }
 
 static void
 draw_body(const struct geo *geo, const struct mlk_notify *n)
 {
+#if 0
 	const struct mlk_label l = {
 		.x = geo->body_x,
 		.y = geo->body_y,
@@ -142,6 +146,7 @@
 	};
 
 	mlk_label_draw(&l);
+#endif
 }
 
 static void