Add dithering for gradients

This commit is contained in:
2026-03-04 00:48:02 -05:00
parent b01fa2261a
commit 5aa0d7466e
3 changed files with 10 additions and 2 deletions

View File

@@ -268,7 +268,7 @@ B32 ui_button(const char *id, const char *text) {
CLAY(eid,
.layout = {
.sizing = { .width = CLAY_SIZING_FIT(), .height = CLAY_SIZING_FIXED(WIDGET_BUTTON_HEIGHT) },
.padding = { uip(12), uip(12), 0, 0 },
.padding = { uip(12), uip(12), uip(1), 0 },
.childAlignment = { .y = CLAY_ALIGN_Y_CENTER },
},
.backgroundColor = base,
@@ -1099,7 +1099,7 @@ S32 ui_modal(const char *id, const char *title, const char *message,
CLAY(btn_id,
.layout = {
.sizing = { .width = CLAY_SIZING_FIT(), .height = CLAY_SIZING_FIXED(WIDGET_BUTTON_HEIGHT) },
.padding = { uip(16), uip(16), 0, 0 },
.padding = { uip(16), uip(16), uip(1), 0 },
.childAlignment = { .y = CLAY_ALIGN_Y_CENTER },
},
.backgroundColor = mbtn_base,