////////////////////////////////////////////////////////////////////////////////// // // // StyleAsCode exporter v1.2 - Style data exported as a values array // // // // USAGE: On init call: GuiLoadStyleCandy(); // // // // more info and bugs-report: github.com/raysan5/raygui // // feedback and support: ray[at]raylibtech.com // // // // Copyright (c) 2020-2023 raylib technologies (@raylibtech) // // // ////////////////////////////////////////////////////////////////////////////////// #define CANDY_STYLE_PROPS_COUNT 16 // Custom style name: candy static const GuiStyleProp candyStyleProps[CANDY_STYLE_PROPS_COUNT] = { { 0, 0, 0xe58b68ff }, // DEFAULT_BORDER_COLOR_NORMAL { 0, 1, 0xfeda96ff }, // DEFAULT_BASE_COLOR_NORMAL { 0, 2, 0xe59b5fff }, // DEFAULT_TEXT_COLOR_NORMAL { 0, 3, 0xee813fff }, // DEFAULT_BORDER_COLOR_FOCUSED { 0, 4, 0xfcd85bff }, // DEFAULT_BASE_COLOR_FOCUSED { 0, 5, 0xfc6955ff }, // DEFAULT_TEXT_COLOR_FOCUSED { 0, 6, 0xb34848ff }, // DEFAULT_BORDER_COLOR_PRESSED { 0, 7, 0xeb7272ff }, // DEFAULT_BASE_COLOR_PRESSED { 0, 8, 0xbd4a4aff }, // DEFAULT_TEXT_COLOR_PRESSED { 0, 9, 0x94795dff }, // DEFAULT_BORDER_COLOR_DISABLED { 0, 10, 0xc2a37aff }, // DEFAULT_BASE_COLOR_DISABLED { 0, 11, 0x9c8369ff }, // DEFAULT_TEXT_COLOR_DISABLED { 0, 16, 0x0000000f }, // DEFAULT_TEXT_SIZE { 0, 17, 0x00000000 }, // DEFAULT_TEXT_SPACING { 0, 18, 0xd77575ff }, // DEFAULT_LINE_COLOR { 0, 19, 0xfff5e1ff }, // DEFAULT_BACKGROUND_COLOR }; // WARNING: This style uses a custom font: (size: 15, spacing: 0) #define CANDY_COMPRESSED_DATA_SIZE 1129 // Font image pixels data compressed (DEFLATE) // NOTE: Original pixel data simplified to GRAYSCALE static unsigned char candyFontData[CANDY_COMPRESSED_DATA_SIZE] = { 0xed, 0xdd, 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 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x37, 0xf7, 0x0f }; // Font characters rectangles data static const Rectangle candyFontRecs[95] = { { 4, 4, 3 , 15 }, { 15, 4, 2 , 9 }, { 25, 4, 3 , 2 }, { 36, 4, 8 , 9 }, { 52, 4, 6 , 11 }, { 66, 4, 7 , 9 }, { 81, 4, 7 , 9 }, { 96, 4, 1 , 2 }, { 105, 4, 3 , 11 }, { 116, 4, 3 , 11 }, { 127, 4, 7 , 7 }, { 142, 4, 6 , 5 }, { 156, 4, 2 , 3 }, { 166, 4, 5 , 1 }, { 179, 4, 2 , 2 }, { 189, 4, 5 , 10 }, { 202, 4, 6 , 9 }, { 216, 4, 4 , 9 }, { 228, 4, 6 , 9 }, { 4, 27, 6 , 9 }, { 18, 27, 7 , 9 }, { 33, 27, 6 , 9 }, { 47, 27, 6 , 9 }, { 61, 27, 6 , 9 }, { 75, 27, 6 , 9 }, { 89, 27, 6 , 9 }, { 103, 27, 2 , 6 }, { 113, 27, 2 , 7 }, { 123, 27, 4 , 6 }, { 135, 27, 5 , 3 }, { 148, 27, 4 , 6 }, { 160, 27, 6 , 9 }, { 174, 27, 8 , 7 }, { 190, 27, 6 , 9 }, { 204, 27, 6 , 9 }, { 218, 27, 6 , 9 }, { 232, 27, 6 , 9 }, { 4, 50, 6 , 9 }, { 18, 50, 6 , 9 }, { 32, 50, 6 , 9 }, { 46, 50, 6 , 9 }, { 60, 50, 2 , 9 }, { 70, 50, 6 , 9 }, { 84, 50, 6 , 9 }, { 98, 50, 6 , 9 }, { 112, 50, 8 , 9 }, { 128, 50, 6 , 9 }, { 142, 50, 6 , 9 }, { 156, 50, 6 , 9 }, { 170, 50, 6 , 9 }, { 184, 50, 6 , 9 }, { 198, 50, 6 , 9 }, { 212, 50, 6 , 9 }, { 226, 50, 6 , 9 }, { 240, 50, 6 , 9 }, { 4, 73, 8 , 9 }, { 20, 73, 6 , 9 }, { 34, 73, 6 , 9 }, { 48, 73, 6 , 9 }, { 62, 73, 3 , 11 }, { 73, 73, 5 , 10 }, { 86, 73, 3 , 11 }, { 97, 73, 6 , 4 }, { 111, 73, 6 , 1 }, { 125, 73, 3 , 2 }, { 136, 73, 6 , 7 }, { 150, 73, 6 , 10 }, { 164, 73, 6 , 7 }, { 178, 73, 6 , 10 }, { 192, 73, 6 , 7 }, { 206, 73, 5 , 10 }, { 219, 73, 7 , 10 }, { 234, 73, 6 , 10 }, { 4, 96, 2 , 10 }, { 14, 96, 2 , 12 }, { 24, 96, 6 , 10 }, { 38, 96, 3 , 10 }, { 49, 96, 8 , 7 }, { 65, 96, 6 , 7 }, { 79, 96, 6 , 7 }, { 93, 96, 6 , 10 }, { 107, 96, 6 , 10 }, { 121, 96, 6 , 7 }, { 135, 96, 6 , 7 }, { 149, 96, 3 , 10 }, { 160, 96, 6 , 7 }, { 174, 96, 6 , 7 }, { 188, 96, 8 , 7 }, { 204, 96, 6 , 7 }, { 218, 96, 6 , 10 }, { 232, 96, 6 , 7 }, { 4, 119, 4 , 11 }, { 16, 119, 1 , 11 }, { 25, 119, 4 , 11 }, { 37, 119, 6 , 2 }, }; // Font characters info data // NOTE: No chars.image data provided static const GlyphInfo candyFontChars[95] = { { 32, 0, 12, 3, { 0 }}, { 33, 0, 3, 3, { 0 }}, { 34, 0, 2, 4, { 0 }}, { 35, 0, 3, 9, { 0 }}, { 36, 0, 2, 7, { 0 }}, { 37, 0, 3, 8, { 0 }}, { 38, 0, 3, 8, { 0 }}, { 39, 0, 2, 2, { 0 }}, { 40, 1, 2, 5, { 0 }}, { 41, 1, 2, 5, { 0 }}, { 42, 0, 4, 8, { 0 }}, { 43, 0, 6, 7, { 0 }}, { 44, 0, 10, 3, { 0 }}, { 45, 0, 7, 6, { 0 }}, { 46, 0, 10, 3, { 0 }}, { 47, 1, 3, 7, { 0 }}, { 48, 0, 3, 7, { 0 }}, { 49, 0, 3, 5, { 0 }}, { 50, 0, 3, 7, { 0 }}, { 51, 0, 3, 7, { 0 }}, { 52, 0, 3, 8, { 0 }}, { 53, 0, 3, 7, { 0 }}, { 54, 0, 3, 7, { 0 }}, { 55, 0, 3, 7, { 0 }}, { 56, 0, 3, 7, { 0 }}, { 57, 0, 3, 7, { 0 }}, { 58, 0, 6, 3, { 0 }}, { 59, 0, 6, 3, { 0 }}, { 60, 1, 5, 6, { 0 }}, { 61, 1, 7, 7, { 0 }}, { 62, 1, 5, 6, { 0 }}, { 63, 0, 3, 7, { 0 }}, { 64, 0, 4, 9, { 0 }}, { 65, 0, 3, 7, { 0 }}, { 66, 0, 3, 7, { 0 }}, { 67, 0, 3, 7, { 0 }}, { 68, 0, 3, 7, { 0 }}, { 69, 0, 3, 7, { 0 }}, { 70, 0, 3, 7, { 0 }}, { 71, 0, 3, 7, { 0 }}, { 72, 0, 3, 7, { 0 }}, { 73, 0, 3, 3, { 0 }}, { 74, 0, 3, 7, { 0 }}, { 75, 0, 3, 7, { 0 }}, { 76, 0, 3, 7, { 0 }}, { 77, 0, 3, 9, { 0 }}, { 78, 0, 3, 7, { 0 }}, { 79, 0, 3, 7, { 0 }}, { 80, 0, 3, 7, { 0 }}, { 81, 0, 3, 7, { 0 }}, { 82, 0, 3, 7, { 0 }}, { 83, 0, 3, 7, { 0 }}, { 84, 0, 3, 7, { 0 }}, { 85, 0, 3, 7, { 0 }}, { 86, 0, 3, 7, { 0 }}, { 87, 0, 3, 9, { 0 }}, { 88, 0, 3, 7, { 0 }}, { 89, 0, 3, 7, { 0 }}, { 90, 0, 3, 7, { 0 }}, { 91, 1, 2, 5, { 0 }}, { 92, 1, 3, 7, { 0 }}, { 93, 1, 2, 5, { 0 }}, { 94, 0, 3, 7, { 0 }}, { 95, 0, 11, 7, { 0 }}, { 96, 0, 0, 4, { 0 }}, { 97, 0, 5, 7, { 0 }}, { 98, 0, 2, 7, { 0 }}, { 99, 0, 5, 7, { 0 }}, { 100, 0, 2, 7, { 0 }}, { 101, 0, 5, 7, { 0 }}, { 102, 0, 2, 6, { 0 }}, { 103, 0, 5, 7, { 0 }}, { 104, 0, 2, 7, { 0 }}, { 105, 0, 2, 3, { 0 }}, { 106, 0, 2, 3, { 0 }}, { 107, 0, 2, 7, { 0 }}, { 108, 0, 2, 4, { 0 }}, { 109, 0, 5, 9, { 0 }}, { 110, 0, 5, 7, { 0 }}, { 111, 0, 5, 7, { 0 }}, { 112, 0, 5, 7, { 0 }}, { 113, 0, 5, 7, { 0 }}, { 114, 0, 5, 7, { 0 }}, { 115, 0, 5, 7, { 0 }}, { 116, 0, 2, 4, { 0 }}, { 117, 0, 5, 7, { 0 }}, { 118, 0, 5, 7, { 0 }}, { 119, 0, 5, 9, { 0 }}, { 120, 0, 5, 7, { 0 }}, { 121, 0, 5, 7, { 0 }}, { 122, 0, 5, 7, { 0 }}, { 123, 1, 2, 6, { 0 }}, { 124, 1, 2, 3, { 0 }}, { 125, 1, 2, 6, { 0 }}, { 126, 0, 0, 7, { 0 }}, }; // Style loading function: candy static void GuiLoadStyleCandy(void) { // Load style properties provided // NOTE: Default properties are propagated for (int i = 0; i < CANDY_STYLE_PROPS_COUNT; i++) { GuiSetStyle(candyStyleProps[i].controlId, candyStyleProps[i].propertyId, candyStyleProps[i].propertyValue); } // Custom font loading // NOTE: Compressed font image data (DEFLATE), it requires DecompressData() function int candyFontDataSize = 0; unsigned char *data = DecompressData(candyFontData, CANDY_COMPRESSED_DATA_SIZE, &candyFontDataSize); Image imFont = { data, 256, 256, 1, 2 }; Font font = { 0 }; font.baseSize = 15; font.glyphCount = 95; // Load texture from image font.texture = LoadTextureFromImage(imFont); UnloadImage(imFont); // Uncompressed data can be unloaded from memory // Copy char recs data from global fontRecs // NOTE: Required to avoid issues if trying to free font font.recs = (Rectangle *)malloc(font.glyphCount*sizeof(Rectangle)); memcpy(font.recs, candyFontRecs, font.glyphCount*sizeof(Rectangle)); // Copy font char info data from global fontChars // NOTE: Required to avoid issues if trying to free font font.glyphs = (GlyphInfo *)malloc(font.glyphCount*sizeof(GlyphInfo)); memcpy(font.glyphs, candyFontChars, font.glyphCount*sizeof(GlyphInfo)); GuiSetFont(font); // Setup a white rectangle on the font to be used on shapes drawing, // this way we make sure all gui can be drawn on a single pass because no texture change is required // NOTE: Setting up this rectangle is a manual process (for the moment) Rectangle whiteChar = { 129, 6, 3, 3 }; SetShapesTexture(font.texture, whiteChar); //----------------------------------------------------------------- // TODO: Custom user style setup: Set specific properties here (if required) // i.e. Controls specific BORDER_WIDTH, TEXT_PADDING, TEXT_ALIGNMENT }