mirror of
https://github.com/nicbarker/clay.git
synced 2026-02-06 12:48:49 +00:00
Fix for garbage padding and MSVC fixes
This commit is contained in:
parent
50f88d7cf6
commit
3145e12491
3 changed files with 58 additions and 33 deletions
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
const uint32_t FONT_ID_BODY_24 = 0;
|
||||
const uint32_t FONT_ID_BODY_16 = 1;
|
||||
#define COLOR_ORANGE (Clay_Color) {225, 138, 50, 255}
|
||||
#define COLOR_BLUE (Clay_Color) {111, 173, 162, 255}
|
||||
#define COLOR_ORANGE {225, 138, 50, 255}
|
||||
#define COLOR_BLUE {111, 173, 162, 255}
|
||||
|
||||
Texture2D profilePicture;
|
||||
#define RAYLIB_VECTOR2_TO_CLAY_VECTOR2(vector) (Clay_Vector2) { .x = vector.x, .y = vector.y }
|
||||
|
|
@ -28,7 +28,7 @@ Clay_ElementDeclaration headerButtonStyle = {
|
|||
void RenderHeaderButton(Clay_String text) {
|
||||
CLAY(headerButtonStyle) {
|
||||
if (Clay_Hovered()) {
|
||||
Clay_CurrentConfigRectangle()->color = COLOR_ORANGE;
|
||||
Clay_CurrentConfigRectangle()->color = (Clay_Color) COLOR_ORANGE;
|
||||
}
|
||||
CLAY_TEXT(text, CLAY_TEXT_CONFIG(headerTextConfig));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue