Add skeleton of TextRenderer

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-10-05 06:30:24 +03:00
parent 59acba3264
commit 6ec78cf752
8 changed files with 226 additions and 37 deletions

View File

@@ -1,6 +1,5 @@
#pragma once
#include <memory_resource>
#include <unordered_set>
#include <vector>
@@ -18,6 +17,7 @@ extern "C" {
#include <wayland-egl.h>
#include <xkbcommon/xkbcommon.h>
#include "TextRenderer.hpp"
#include "Theme.hpp"
#include "common.hpp"
@@ -139,6 +139,9 @@ private:
}
} m_kbd;
std::optional<TextRenderer> m_tr { std::nullopt };
FontHandle m_font;
enum_array<Theme, ColorScheme> m_themes { make_default_themes() };
Theme m_active_theme { Theme::Light };