chore: structured src/gui, run clang-format

This commit is contained in:
2025-12-18 13:23:50 +03:00
parent 613c2c80f5
commit 7641846600
55 changed files with 1647 additions and 1399 deletions

View File

@@ -0,0 +1,22 @@
#ifndef CLRSYNC_GUI_PREVIEW_RENDERER_HPP
#define CLRSYNC_GUI_PREVIEW_RENDERER_HPP
#include "color_text_edit/TextEditor.h"
#include "core/palette/palette.hpp"
class preview_renderer
{
public:
preview_renderer();
void render(const clrsync::core::palette &palette);
void apply_palette(const clrsync::core::palette &palette);
private:
void render_code_preview();
void render_terminal_preview(const clrsync::core::palette &palette);
TextEditor m_editor;
};
#endif // CLRSYNC_GUI_PREVIEW_RENDERER_HPP