Added direct theme support and will slowly move more things into this struct for configuring the look.
parent
b9deb3a0de
commit
a18d60dcb0
@ -1,15 +0,0 @@ |
||||
#pragma once |
||||
#include <SFML/Graphics/Color.hpp> |
||||
|
||||
namespace ColorValue { |
||||
constexpr const sf::Color BLACK{0, 0, 0}; |
||||
constexpr const sf::Color DARK_DARK{10, 10, 10}; |
||||
constexpr const sf::Color DARK_MID{30, 30, 30}; |
||||
constexpr const sf::Color DARK_LIGHT{60, 60, 60}; |
||||
constexpr const sf::Color MID{100, 100, 100}; |
||||
constexpr const sf::Color LIGHT_DARK{150, 150, 150}; |
||||
constexpr const sf::Color LIGHT_MID{200, 200, 200}; |
||||
constexpr const sf::Color LIGHT_LIGHT{230, 230, 230}; |
||||
constexpr const sf::Color WHITE{255, 255, 255}; |
||||
constexpr const sf::Color TRANSPARENT = sf::Color::Transparent; |
||||
} |
@ -0,0 +1,11 @@ |
||||
#include "guecs/theme.hpp" |
||||
|
||||
namespace guecs { |
||||
Backend* BACKEND = nullptr; |
||||
Theme THEME; |
||||
|
||||
void init(Backend* backend) { |
||||
BACKEND = backend; |
||||
THEME = BACKEND->theme(); |
||||
} |
||||
} |
Loading…
Reference in new issue