diff options
| author | Arslaan Pathan <[email protected]> | 2026-04-30 23:24:58 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-04-30 23:24:58 +1200 |
| commit | 652c89c996f1447e64ccc61ceeaab3a80e7b404d (patch) | |
| tree | a945461e287c66fd8dba0500bc06d0379d78907e /src/saffron_window.c | |
| parent | 2cc161aabfe5c1343ca504b79a6a1c7706048a91 (diff) | |
| download | saffron-652c89c996f1447e64ccc61ceeaab3a80e7b404d.tar.xz saffron-652c89c996f1447e64ccc61ceeaab3a80e7b404d.zip | |
Add theming!
its 10:24pm and im sleepy
Diffstat (limited to 'src/saffron_window.c')
| -rw-r--r-- | src/saffron_window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saffron_window.c b/src/saffron_window.c index 5687f16..41bc050 100644 --- a/src/saffron_window.c +++ b/src/saffron_window.c @@ -1,3 +1,4 @@ +#include "saffron_theme.h" #include <SDL3/SDL_render.h> #include <SDL3/SDL_video.h> #include <stdio.h> @@ -17,6 +18,7 @@ SaffronWindow* saffron_window_new(const char* title, int w, int h) { Uint32 flags = SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIGH_PIXEL_DENSITY; window->sdl_window = SDL_CreateWindow(title, w, h, flags); window->renderer = SDL_CreateRenderer(window->sdl_window, NULL); + window->root->theme = SF_MACRO_DEFAULT_THEME; return window; } |
