From 15b9b273247099ba0eac75a5769592bf7bcb89dc Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 1 Apr 2026 19:52:33 +0200 Subject: feat: ui refactor of doom and despair --- src/ui/source_view.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/source_view.h') diff --git a/src/ui/source_view.h b/src/ui/source_view.h index 8b4c0a3..5673d69 100644 --- a/src/ui/source_view.h +++ b/src/ui/source_view.h @@ -10,6 +10,7 @@ #include struct ImDrawList; +struct ImFont; namespace Hsdbg { @@ -50,6 +51,8 @@ namespace Hsdbg auto set_syntax_color(size_t kind, unsigned int color) -> void { m_syntax_colors[kind] = color; } auto set_current_line_color(unsigned int color) -> void { m_current_line_color = color; } + auto set_mono_font(ImFont* font) -> void { m_mono_font = font; } + auto path() const -> const std::filesystem::path& { return m_path; } auto line_count() const -> size_t { return m_lines.size(); } auto is_open() const -> bool { return !m_lines.empty(); } @@ -67,6 +70,7 @@ namespace Hsdbg auto draw_macro_span(ImDrawList* draw_list, const std::string& line, const SourceSpan& span) -> void; + ImFont* m_mono_font = nullptr; std::filesystem::path m_path; std::vector m_lines; std::vector> m_spans; -- cgit v1.3