Initial UI implementation by AI

This commit is contained in:
Dynamitos committed 2026-10-13 21:49:28 +02:00
1 parent f2a3f59ab1
commit 908b52441f
29 files changed
+884 -186

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include "UI/Style/Class.h"
#include <string>
#include <string_view>
namespace Seele {
namespace UI {
// standard font aliases. the name must match what the importer registered the
// font as (e.g. the arial import in main.cpp). the import (AssetImporter::importFont)
// must happen before the first System::style() call — see the invariant in System.h.
// a font *class* is a tag type with a static apply() that sets Style::fontName;
// the name is runtime data (a string literal can't be a C++ template arg), and
// Text::applyStyle resolves it to a PFontAsset (falling back to Theme::defaultFont).
struct Font_Arial {
static void apply(Style& s, const Theme&) { s.fontName = "arial.ttf"; }
};
} // namespace UI
} // namespace Seele