refactor(core): move AsarWrapper to core directory and update includes

- Relocated AsarWrapper implementation and header files from `src/app/core/` to `src/core/` to enhance modularity and organization.
- Updated all relevant include paths across the codebase to reflect the new location of AsarWrapper.
- Adjusted CMake configurations to ensure proper compilation of the core library.

Benefits:
- Improves project structure by separating core functionalities from application-specific code.
- Facilitates easier maintenance and understanding of the codebase by clarifying the organization of core components.
This commit is contained in:
scawful
2025-10-15 17:24:05 -04:00
parent 8845bf737c
commit fd91d17ebd
19 changed files with 399 additions and 363 deletions

View File

@@ -95,6 +95,14 @@ bool LayoutHelpers::BeginTableWithTheming(const char* str_id, int columns,
return ImGui::BeginTable(str_id, columns, flags, outer_size, inner_width);
}
void LayoutHelpers::EndTableWithTheming() {
ImGui::EndTable();
// Pop style colors (5 colors pushed in BeginTableWithTheming)
ImGui::PopStyleColor(5);
// Pop style var if it was pushed (CellPadding)
ImGui::PopStyleVar(1);
}
void LayoutHelpers::BeginCanvasPanel(const char* label, ImVec2* canvas_size) {
const auto& theme = GetTheme();

View File

@@ -36,6 +36,7 @@ class LayoutHelpers {
ImGuiTableFlags flags = 0,
const ImVec2& outer_size = ImVec2(0, 0),
float inner_width = 0.0f);
static void EndTableWithTheming();
static void EndTable() { ImGui::EndTable(); }
static void BeginCanvasPanel(const char* label, ImVec2* canvas_size = nullptr);