first rough pass on theme editing

This commit is contained in:
Ryan Fleury committed 2025-04-26 19:01:35 -07:00
1 parent 282f6022e1
commit 1e82d31eba
5 files changed
+131 -160

No files matched your search

+2 -2
View File
@@ -397,9 +397,9 @@ rd_title_fstrs_from_cfg(Arena *arena, RD_Cfg *cfg)
if(str8_match(cfg->string, str8_lit("color"), 0))
{
String8 tags = rd_cfg_child_from_string(cfg, str8_lit("tags"))->first->string;
String8 color_string = rd_cfg_child_from_string(cfg, str8_lit("color"))->first->string;
String8 color_string = rd_cfg_child_from_string(cfg, str8_lit("value"))->first->string;
U32 color_u32 = e_value_from_stringf("(uint32)(%S)", color_string).u32;
Vec4F32 color = rgba_from_u32(color_u32);
Vec4F32 color = linear_from_srgba(rgba_from_u32(color_u32));
if(tags.size != 0)
{
dr_fstrs_push_new(arena, &result, &params, tags, .color = color);