Added direct theme support and will slowly move more things into this struct for configuring the look.

This commit is contained in:
Zed A. Shaw 2025-05-09 11:20:22 -04:00
parent b9deb3a0de
commit a18d60dcb0
9 changed files with 48 additions and 67 deletions

View file

@ -2,14 +2,8 @@
#include "guecs/sfml/backend.hpp"
namespace guecs {
static Backend* BACKEND = nullptr;
using std::make_shared;
void init(Backend* backend) {
BACKEND = backend;
}
void Textual::init(lel::Cell &cell, shared_ptr<sf::Font> font_ptr) {
dbc::check(font_ptr != nullptr, "you failed to initialize this WideText");
if(font == nullptr) font = font_ptr;