X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FTextInput.hpp;h=66f2ded94c018f67300e5d5d635c49c2ab1bf63f;hb=dcd54cacda98c2c0f7cf0c7a9131fb858d8ee10a;hp=44999faac002259ecdca9c1cbdb21821abb2aec0;hpb=efc3c1ba52cbe0fc9a4010c37c2d7c7020a0b481;p=blank.git diff --git a/src/ui/TextInput.hpp b/src/ui/TextInput.hpp index 44999fa..66f2ded 100644 --- a/src/ui/TextInput.hpp +++ b/src/ui/TextInput.hpp @@ -39,8 +39,8 @@ public: void Position(const glm::vec3 &p, Gravity g, Gravity pv) noexcept; void Width(float) noexcept; - void Foreground(const glm::vec4 &col) noexcept { fg = col; dirty_cursor = true; } - void Background(const glm::vec4 &col) noexcept { bg = col; dirty_box = true; } + void Foreground(const PrimitiveMesh::Color &col) noexcept { fg = col; dirty_cursor = true; } + void Background(const PrimitiveMesh::Color &col) noexcept { bg = col; dirty_box = true; } void Handle(const SDL_TextInputEvent &); void Handle(const SDL_TextEditingEvent &); @@ -59,8 +59,8 @@ private: PrimitiveMesh bg_mesh; PrimitiveMesh cursor_mesh; - glm::vec4 bg; - glm::vec4 fg; + PrimitiveMesh::Color bg; + PrimitiveMesh::Color fg; glm::vec3 position; glm::vec2 size;