diff libui/ui/frame.c @ 174:6992085d47fd

ui: major theme overhaul, closes #2509 @1h - The font does not contain a color anymore, - Add a new color argument to font_render, - Theme are stored `const` in UI elements to promise no modifications, - Also make all <ui>_draw function to take a const widget too.
author David Demelier <markand@malikania.fr>
date Thu, 22 Oct 2020 15:16:43 +0200
parents 1008a796a9e7
children
line wrap: on
line diff
--- a/libui/ui/frame.c	Wed Oct 21 12:50:11 2020 +0200
+++ b/libui/ui/frame.c	Thu Oct 22 15:16:43 2020 +0200
@@ -32,7 +32,7 @@
 }
 
 void
-frame_draw_default(struct theme *t, const struct frame *frame)
+frame_draw_default(const struct theme *t, const struct frame *frame)
 {
 	assert(t);
 	assert(frame);