8#include "core/reflect.h"
9#include "ecs/component/ui/ui_shape.h"
11namespace Vkm::Engine {
21 enum class State : uint8_t { Normal, Hover, Pressed, Disabled };
23 glm::vec4 normalColor = {0.18f, 0.20f, 0.26f, 0.95f};
24 glm::vec4 hoverColor = {0.26f, 0.30f, 0.40f, 0.95f};
25 glm::vec4 pressedColor = {0.12f, 0.14f, 0.18f, 0.95f};
26 glm::vec4 disabledColor = {0.15f, 0.15f, 0.17f, 0.60f};
33 State state = State::Normal;
49 case State::Normal:
return normalColor;
50 case State::Hover:
return hoverColor;
51 case State::Pressed:
return pressedColor;
52 case State::Disabled:
return disabledColor;
How a filled quad is drawn beyond its flat tint: corners, an edge, a fade.
Definition ui_shape.h:15