| 3474 | } |
| 3475 | |
| 3476 | void Clay__DebugViewRenderElementConfigHeader(Clay_String elementId, Clay__DebugElementConfigType type) { |
| 3477 | Clay__DebugElementConfigTypeLabelConfig config = Clay__DebugGetElementConfigTypeLabel(type); |
| 3478 | Clay_Color backgroundColor = config.color; |
| 3479 | backgroundColor.a = 90; |
| 3480 | CLAY_AUTO_ID({ .layout = { .padding = { 8, 8, 2, 2 } }, .backgroundColor = backgroundColor, .cornerRadius = CLAY_CORNER_RADIUS(4), .border = { .color = config.color, .width = { 1, 1, 1, 1, 0 } } }) { |
| 3481 | CLAY_TEXT(config.label, CLAY_TEXT_CONFIG({ .textColor = CLAY__DEBUGVIEW_COLOR_4, .fontSize = 16 })); |
| 3482 | } |
| 3483 | } |
| 3484 | |
| 3485 | void Clay__RenderDebugViewColor(Clay_Color color, Clay_TextElementConfig textConfig) { |
| 3486 | CLAY_AUTO_ID({ .layout = { .childAlignment = {.y = CLAY_ALIGN_Y_CENTER} } }) { |
no test coverage detected