SFML / imgui-sfml

Dear ImGui backend for use with SFML
MIT License
1.08k stars 163 forks source link

Cannot set the background color of an ImGui tab bar #286

Closed jit-zs closed 5 days ago

jit-zs commented 6 days ago

I have tried everything and it still hasn't worked. I've been using ImGui::PushStyleColor but i don't even know if thats the way to go

ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0.1, 0.1, 0.1, 1));
ImGui::PushStyleColor(ImGuiCol_TitleBgActive, ActiveBackground);
ImGui::PushStyleColor(ImGuiCol_HeaderActive, ActiveBackground);

ImGui::PushStyleColor(ImGuiCol_Tab, ImVec4(0.3, 0.3, 0.3, 1));
ImGui::PushStyleColor(ImGuiCol_TabActive, ActiveForeground);
ImGui::PushStyleColor(ImGuiCol_TabSelectedOverline, ActiveForegroundHighlight);
ImGui::PushStyleColor(ImGuiCol_ChildBg, ImVec4(1, 1, 1, 1));

ImGui::PushStyleColor(ImGuiCol_FrameBg, ActiveForeground);
ImGui::PushStyleColor(ImGuiCol_FrameBgActive, HightlightForeground);
ImGui::PushStyleColor(ImGuiCol_FrameBgHovered, ActiveForegroundHighlight);

ImGui::PushStyleColor(ImGuiCol_Border, ActiveBackground);
ImGui::PushStyleColor(ImGuiCol_DragDropTarget, ActiveBackground);

image