#include "tokens.h" namespace fn_tokens { void apply_dark_theme() { ImGuiStyle& s = ImGui::GetStyle(); // Colors s.Colors[ImGuiCol_WindowBg] = colors::bg; s.Colors[ImGuiCol_ChildBg] = colors::surface; s.Colors[ImGuiCol_PopupBg] = colors::surface; s.Colors[ImGuiCol_FrameBg] = colors::surface; s.Colors[ImGuiCol_FrameBgHovered] = colors::surface_hover; s.Colors[ImGuiCol_FrameBgActive] = colors::surface_hover; s.Colors[ImGuiCol_Border] = colors::border; s.Colors[ImGuiCol_BorderShadow] = ImVec4(0, 0, 0, 0); s.Colors[ImGuiCol_Text] = colors::text; s.Colors[ImGuiCol_TextDisabled] = colors::text_dim; s.Colors[ImGuiCol_Button] = colors::primary; s.Colors[ImGuiCol_ButtonHovered] = colors::primary_hover; s.Colors[ImGuiCol_ButtonActive] = colors::primary; s.Colors[ImGuiCol_Header] = colors::surface_hover; s.Colors[ImGuiCol_HeaderHovered] = colors::primary; s.Colors[ImGuiCol_HeaderActive] = colors::primary_hover; s.Colors[ImGuiCol_Tab] = colors::surface; s.Colors[ImGuiCol_TabHovered] = colors::primary_hover; s.Colors[ImGuiCol_TabActive] = colors::primary; s.Colors[ImGuiCol_Separator] = colors::border; s.Colors[ImGuiCol_TableHeaderBg] = colors::surface_hover; s.Colors[ImGuiCol_TableBorderLight]= colors::border; s.Colors[ImGuiCol_TableBorderStrong]= colors::border; // Radius s.FrameRounding = radius::sm; s.ChildRounding = radius::md; s.WindowRounding = radius::md; s.PopupRounding = radius::md; s.TabRounding = radius::sm; s.GrabRounding = radius::sm; s.ScrollbarRounding = radius::md; // Spacing s.ItemSpacing = ImVec2(spacing::sm, spacing::sm); s.ItemInnerSpacing = ImVec2(spacing::xs, spacing::xs); s.FramePadding = ImVec2(spacing::sm, spacing::xs + 2.0f); s.WindowPadding = ImVec2(spacing::md, spacing::md); s.CellPadding = ImVec2(spacing::sm, spacing::xs); } } // namespace fn_tokens