SFML / imgui-sfml

Dear ImGui backend for use with SFML
MIT License
1.15k stars 172 forks source link

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

Closed jit-zs closed 4 months ago

jit-zs commented 4 months 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