#ifndef STYLE_H #define STYLE_H #include #include namespace cera { //////////////////////////////////// // WINDOW STYLE //////////////////////////////////// constexpr uint16_t windowPadding{1}; constexpr Clay_Color windowColor{20, 20, 20, 255}; //////////////////////////////////// // CONTAINER STYLE //////////////////////////////////// constexpr uint16_t containerGap{10}; constexpr double defaultRadius{5.0}; constexpr Clay_Color panelBackground{ 0,0,0,0 }; constexpr Clay_Color panelBorder { 150, 150, 150, 150 }; constexpr Clay_Padding panelPadding = { 24, 24, 24, 24, }; Clay_ElementDeclaration ListContainer(Clay_ElementDeclaration baseCfg = {}); Clay_ElementDeclaration PanelContainer(Clay_ElementDeclaration baseCfg = {}); Clay_ElementDeclaration LeftPanelContainer(Clay_ElementDeclaration baseCfg = {}); Clay_ElementDeclaration RightPanelContainer(Clay_ElementDeclaration baseCfg = {}); Clay_ElementDeclaration Window(); //////////////////////////////////// // TEXT STYLE //////////////////////////////////// constexpr float paragraphGap = 10; constexpr uint16_t baseFontSize = 16; constexpr uint16_t headerSizes[] = {64, 32, 28, 16}; constexpr Clay_Color textColor{170, 170, 170, 255}; //////////////////////////////////// // BUTTONS //////////////////////////////////// constexpr Clay_Color warningButton = { 177, 56, 52, 255 }; constexpr Clay_Color proceedButton = { 49, 181, 99, 255 }; constexpr Clay_Color actionButton = { 49, 142, 181, 255 }; constexpr Clay_Padding buttonPadding = { 24, 24, 4, 4, }; constexpr Clay_CornerRadius buttonRadii = { 3, 3, 3, 3 }; Clay_Color ToHoveredColor(Clay_Color color); //////////////////////////////////// // COMPILATIONS // | Functions and expressions that combine styling data from the settings above. //////////////////////////////////// constexpr Clay_Sizing layoutExpand = { .width = CLAY_SIZING_GROW(0), .height = CLAY_SIZING_GROW(0) }; constexpr Clay_CornerRadius defaultRadiusAll = { defaultRadius, defaultRadius, defaultRadius, defaultRadius }; namespace color { constexpr Clay_Color transparent{ 255, 255, 255, 0 }; constexpr Clay_Color black{ 0, 0, 0, 255 }; constexpr Clay_Color white{ 255, 255, 255, 255 }; } } #endif // !STYLE_H