diff --git a/src/jngl/Label.cpp b/src/jngl/Label.cpp index 992f8f2b..8c1f283d 100644 --- a/src/jngl/Label.cpp +++ b/src/jngl/Label.cpp @@ -6,7 +6,7 @@ namespace jngl { -Label::Label(const std::string& str, Font& font, const Color color, const jngl::Vec2 position) +Label::Label(const std::string& str, Font& font, const Rgb color, const jngl::Vec2 position) : Widget(position), text(font, str), color(color) { text.setCenter(Vec2(0, 0)); } diff --git a/src/jngl/Label.hpp b/src/jngl/Label.hpp index 5e448bf6..7ff1dfeb 100644 --- a/src/jngl/Label.hpp +++ b/src/jngl/Label.hpp @@ -1,10 +1,10 @@ -// Copyright 2020-2022 Jan Niklas Hasse +// Copyright 2020-2024 Jan Niklas Hasse // For conditions of distribution and use, see copyright notice in LICENSE.txt /// Contains jngl::Label class /// @file #pragma once -#include "Color.hpp" +#include "Rgb.hpp" #include "TextLine.hpp" #include "Widget.hpp" #include "text.hpp" @@ -14,7 +14,7 @@ namespace jngl { /// Simple Widget displaying a line of text class Label : public Widget { public: - explicit Label(const std::string& str, Font&, Color, Vec2 position); + explicit Label(const std::string& str, Font&, Rgb, Vec2 position); void drawSelf(jngl::Mat3) const override; @@ -32,7 +32,7 @@ class Label : public Widget { private: jngl::TextLine text; - jngl::Color color; + jngl::Rgb color; }; } // namespace jngl