From 652c89c996f1447e64ccc61ceeaab3a80e7b404d Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Thu, 30 Apr 2026 23:24:58 +1200 Subject: Add theming! its 10:24pm and im sleepy --- include/saffron_widget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/saffron_widget.h') diff --git a/include/saffron_widget.h b/include/saffron_widget.h index 8b9fc3c..8e7ad12 100644 --- a/include/saffron_widget.h +++ b/include/saffron_widget.h @@ -2,6 +2,7 @@ #define SAFFRON_WIDGET_H #include +#include "saffron_theme.h" typedef enum { SAFFRON_SIZE_FIXED, // keep normal size @@ -28,6 +29,7 @@ typedef struct SaffronWidget { bool pixel_perfect; // Do we scale dynamically (SaffronSizeMode, etc) or use raw x, y, w, h values? If this is true, the SaffronSizeModes from earlier will be ignored. this pretty much tells the engine NOT to layout your widgets, don't expect it to allocate size for it. get better SaffronWidgetType type; void (*free)(struct SaffronWidget* self); + SaffronTheme* theme; } SaffronWidget; #endif -- cgit v1.2.3