#pragma once

#include "foundation/result.h"

#include <cstdint>
#include <string_view>

namespace pp::ui {

struct ColorRgba8 {
    std::uint8_t r = 0;
    std::uint8_t g = 0;
    std::uint8_t b = 0;
    std::uint8_t a = 255;
};

[[nodiscard]] pp::foundation::Result<ColorRgba8> parse_hex_color(std::string_view value) noexcept;

}
