#include "imgui.h"


void SetupImGuiStyle()
{
	// Classic Steam style (modified to use blue tones)
	ImGuiStyle& style = ImGui::GetStyle();

	style.Alpha = 1.0f;
	style.DisabledAlpha = 0.6000000238418579f;
	style.WindowPadding = ImVec2(8.0f, 8.0f);
	style.WindowRounding = 0.0f;
	style.WindowBorderSize = 1.0f;
	style.WindowMinSize = ImVec2(32.0f, 32.0f);
	style.WindowTitleAlign = ImVec2(0.0f, 0.5f);
	style.WindowMenuButtonPosition = ImGuiDir_Left;
	style.ChildRounding = 2.0f;
	style.ChildBorderSize = 1.0f;
	style.PopupRounding = 2.0f;
	style.PopupBorderSize = 1.0f;
	style.FramePadding = ImVec2(4.0f, 3.0f);
	style.FrameRounding = 2.0f;
	style.FrameBorderSize = 1.0f;
	style.ItemSpacing = ImVec2(8.0f, 4.0f);
	style.ItemInnerSpacing = ImVec2(4.0f, 4.0f);
	style.CellPadding = ImVec2(4.0f, 2.0f);
	style.IndentSpacing = 21.0f;
	style.ColumnsMinSpacing = 6.0f;
	style.ScrollbarSize = 14.0f;
	style.ScrollbarRounding = 2.0f;
	style.GrabMinSize = 10.0f;
	style.GrabRounding = 2.0f;
	style.TabRounding = 2.0f;
	style.TabBorderSize = 0.0f;
	style.TabMinWidthForCloseButton = 0.0f;
	style.ColorButtonPosition = ImGuiDir_Right;
	style.ButtonTextAlign = ImVec2(0.5f, 0.5f);
	style.SelectableTextAlign = ImVec2(0.0f, 0.0f);

	style.Colors[ImGuiCol_Text] = ImVec4(1.0f, 1.0f, 1.0f, 1.0f);
	style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.5f, 0.5f, 0.5f, 1.0f);
	style.Colors[ImGuiCol_WindowBg] = ImVec4(0.2f, 0.27f, 0.38f, 1.0f);
	style.Colors[ImGuiCol_ChildBg] = ImVec4(0.2f, 0.27f, 0.38f, 1.0f);
	style.Colors[ImGuiCol_PopupBg] = ImVec4(0.16f, 0.2f, 0.29f, 1.0f);
	style.Colors[ImGuiCol_Border] = ImVec4(0.4f, 0.5f, 0.65f, 0.5f);
	style.Colors[ImGuiCol_BorderShadow] = ImVec4(0.1f, 0.13f, 0.18f, 0.52f);
	style.Colors[ImGuiCol_FrameBg] = ImVec4(0.16f, 0.2f, 0.29f, 1.0f);
	style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.2f, 0.25f, 0.35f, 1.0f);
	style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.22f, 0.3f, 0.4f, 1.0f);
	style.Colors[ImGuiCol_TitleBg] = ImVec4(0.16f, 0.2f, 0.29f, 1.0f);
	style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.2f, 0.27f, 0.38f, 1.0f);
	style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.0f, 0.0f, 0.0f, 0.51f);
	style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.16f, 0.2f, 0.29f, 1.0f);
	style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.25f, 0.32f, 0.43f, 1.0f);
	style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.2f, 0.27f, 0.38f, 1.0f);
	style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.18f, 0.26f, 0.36f, 1.0f);
	style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.16f, 0.22f, 0.33f, 1.0f);
	style.Colors[ImGuiCol_CheckMark] = ImVec4(0.4f, 0.6f, 1.0f, 1.0f);
	style.Colors[ImGuiCol_SliderGrab] = ImVec4(0.25f, 0.32f, 0.43f, 1.0f);
	style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.4f, 0.5f, 0.65f, 0.5f);
	style.Colors[ImGuiCol_Button] = ImVec4(0.2f, 0.27f, 0.38f, 0.4f);
	style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.25f, 0.32f, 0.43f, 1.0f);
	style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.4f, 0.5f, 0.65f, 0.5f);
	style.Colors[ImGuiCol_Header] = ImVec4(0.25f, 0.32f, 0.43f, 1.0f);
	style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.25f, 0.32f, 0.43f, 0.6f);
	style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.4f, 0.5f, 0.65f, 0.5f);
	style.Colors[ImGuiCol_Separator] = ImVec4(0.1f, 0.13f, 0.18f, 1.0f);
	style.Colors[ImGuiCol_SeparatorHovered] = ImVec4(0.4f, 0.5f, 0.65f, 1.0f);
	style.Colors[ImGuiCol_SeparatorActive] = ImVec4(0.4f, 0.6f, 1.0f, 1.0f);
	style.Colors[ImGuiCol_ResizeGrip] = ImVec4(0.13f, 0.18f, 0.26f, 0.0f);
	style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.4f, 0.5f, 0.65f, 1.0f);
	style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(0.4f, 0.6f, 1.0f, 1.0f);
	style.Colors[ImGuiCol_Tab] = ImVec4(0.25f, 0.32f, 0.43f, 1.0f);
	style.Colors[ImGuiCol_TabHovered] = ImVec4(0.4f, 0.5f, 0.65f, 0.78f);
	style.Colors[ImGuiCol_TabActive] = ImVec4(0.4f, 0.6f, 1.0f, 1.0f);
	// If you need more specific blue tweaks for other elements, let me know!
}
