linearize theme from srgba on load, use linear colors everywhere; begin simplifying ui colors

This commit is contained in:
Ryan Fleury committed 2025-02-18 10:39:43 -08:00
1 parent 42e3c406cd
commit e45bdfd90d
9 files changed
+377 -221

No files matched your search

+2 -2
View File
@@ -467,7 +467,7 @@ internal UI_BOX_CUSTOM_DRAW(rd_thread_box_draw_extensions)
if(u->hover_t > 0.001f)
{
Vec4F32 weak_thread_color = u->thread_color;
weak_thread_color.w *= 0.5f*u->hover_t;
weak_thread_color.w *= 0.15f*u->hover_t;
R_Rect2DInst *inst = dr_rect(r2f32p(box->rect.x0,
box->parent->rect.y0,
box->rect.x0 + ui_top_font_size()*22.f*u->hover_t,
@@ -481,7 +481,7 @@ internal UI_BOX_CUSTOM_DRAW(rd_thread_box_draw_extensions)
if(u->is_selected && u->do_glow)
{
Vec4F32 weak_thread_color = u->thread_color;
weak_thread_color.w *= 0.3f;
weak_thread_color.w *= 0.1f;
R_Rect2DInst *inst = dr_rect(r2f32p(box->rect.x0,
box->parent->rect.y0,
box->rect.x0 + ui_top_font_size()*22.f*u->alive_t,