Fixed push color in main tab as well.

This commit is contained in:
cake
2025-12-11 05:41:53 +01:00
parent 1b2db4c698
commit 09b78e1896

View File

@@ -211,12 +211,12 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase
var accentHover = accent.WithAlpha(0.90f); var accentHover = accent.WithAlpha(0.90f);
var accentActive = accent; var accentActive = accent;
ImGui.PushStyleColor(ImGuiCol.Tab, baseTab); using (ImRaii.PushColor(ImGuiCol.Tab, baseTab))
ImGui.PushStyleColor(ImGuiCol.TabHovered, accentHover); using (ImRaii.PushColor(ImGuiCol.TabHovered, accentHover))
ImGui.PushStyleColor(ImGuiCol.TabActive, accentActive); using (ImRaii.PushColor(ImGuiCol.TabActive, accentActive))
ImGui.PushStyleColor(ImGuiCol.TabUnfocused, baseTabDim); using (ImRaii.PushColor(ImGuiCol.TabUnfocused, baseTabDim))
ImGui.PushStyleColor(ImGuiCol.TabUnfocusedActive, accentActive.WithAlpha(0.80f)); using (ImRaii.PushColor(ImGuiCol.TabUnfocusedActive, accentActive.WithAlpha(0.80f)))
{
using (var tabbar = ImRaii.TabBar("syncshell_tab_" + GroupFullInfo.GID)) using (var tabbar = ImRaii.TabBar("syncshell_tab_" + GroupFullInfo.GID))
{ {
if (tabbar) if (tabbar)
@@ -227,8 +227,8 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase
DrawProfile(); DrawProfile();
} }
} }
}
ImGui.PopStyleColor(5);
ImGui.PopStyleVar(3); ImGui.PopStyleVar(3);
ImGuiHelpers.ScaledDummy(2f); ImGuiHelpers.ScaledDummy(2f);